class GPhoto2::Port

Included Modules

Defined in:

gphoto2/port.cr

Constructors

Instance Method Summary

Instance methods inherited from module GPhoto2::Struct(LibGPhoto2Port::GPPort)

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(LibGPhoto2Port::GPPort)

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

Constructor Detail

def self.new #

NOTE allocates memory.


[View source]

Instance Method Detail

def close : Nil #

Closes the port.


[View source]
def finalize #

Finalizes object by freeing allocated memory.


[View source]
def info : PortInfo #

[View source]
def info=(info : PortInfo) : PortInfo #

[View source]
def open : Nil #

Opens the port.


[View source]
def reset : Nil #

Resets the port.


[View source]