class GPhoto2::CameraFileInfo::File

Overview

Represents file information.

Included Modules

Defined in:

gphoto2/camera_file_info/file.cr

Instance Method Summary

Instance methods inherited from module GPhoto2::ManagedStruct(LibGPhoto2::CameraFileInfoFile)

ptr : Pointer(T) ptr

Constructor methods inherited from module GPhoto2::ManagedStruct(LibGPhoto2::CameraFileInfoFile)

new(ptr : Pointer(T) | Nil = nil) new

Instance methods inherited from module GPhoto2::Struct(LibGPhoto2::CameraFileInfoFile)

ptr : Pointer(T) ptr, ptr? : Pointer(T) | Nil ptr?, to_unsafe : Pointer(T) to_unsafe, wrapped : T wrapped

Constructor methods inherited from module GPhoto2::Struct(LibGPhoto2::CameraFileInfoFile)

new(ptr : Pointer(T) | Nil = nil) new

Instance methods inherited from class GPhoto2::CameraFileInfo::Base

field?(field : Fields) field?, fields : Fields fields, size : UInt64 | Nil size, status : Status | Nil status, type : String | Nil type

Instance Method Detail

def height : Int32 | Nil #

Returns the height in pixels.


[View source]
def mtime : Time | Nil #

Returns modification time.


[View source]
def readable? #

Returns true if the file is readable, false otherwise.


[View source]
def removable? #

Returns true if the file is removable, false otherwise.


[View source]
def width : Int32 | Nil #

Returns the width in pixels.


[View source]