class GPhoto2::CameraWidget::Radio
Direct Known Subclasses
Defined in:
gphoto2/camera_widgets/radio.crInstance Method Summary
-
#<<(step : Int32) : String | Nil
Moves the cursor to the previous choice.
-
#>>(step : Int32) : String | Nil
Moves the cursor to the next choice.
-
#choices : Array(String)
Returns valid choices for a configuration widget.
-
#move_by(step : Int32) : String | Nil
Moves the cursor by the given step.
Instance methods inherited from class GPhoto2::CameraWidget::Base
==(other : self)==(other : Symbol)
==(other) ==, as_button : GPhoto2::CameraWidget::Button as_button, as_button? : GPhoto2::CameraWidget::Button | Nil as_button?, as_date : GPhoto2::CameraWidget::Date as_date, as_date? : GPhoto2::CameraWidget::Date | Nil as_date?, as_menu : GPhoto2::CameraWidget::Menu as_menu, as_menu? : GPhoto2::CameraWidget::Menu | Nil as_menu?, as_radio : GPhoto2::CameraWidget::Radio as_radio, as_radio? : GPhoto2::CameraWidget::Radio | Nil as_radio?, as_range : GPhoto2::CameraWidget::Range as_range, as_range? : GPhoto2::CameraWidget::Range | Nil as_range?, as_section : GPhoto2::CameraWidget::Section as_section, as_section? : GPhoto2::CameraWidget::Section | Nil as_section?, as_text : GPhoto2::CameraWidget::Text as_text, as_text? : GPhoto2::CameraWidget::Text | Nil as_text?, as_toggle : GPhoto2::CameraWidget::Toggle as_toggle, as_toggle? : GPhoto2::CameraWidget::Toggle | Nil as_toggle?, as_window : GPhoto2::CameraWidget::Window as_window, as_window? : GPhoto2::CameraWidget::Window | Nil as_window?, children : Array(Base) children, close : Nil close, flatten(map = {} of String => Base) : Hash(String, Base) flatten, id : Int32 id, in?(other : ::Range)
in?(other : Enumerable) in?, info : String info, label : String label, name : String name, parent : Base | Nil parent, readonly? : Bool readonly?, to_s(io : IO) to_s, type : Type type, value value, value=(value) value=, value? value?
Constructor methods inherited from class GPhoto2::CameraWidget::Base
new(ptr : Pointer(LibGPhoto2::CameraWidget), parent : GPhoto2::CameraWidget::Base | Nil = nil)
new
Instance methods inherited from module GPhoto2::Struct(LibGPhoto2::CameraWidget)
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::CameraWidget)
new(ptr : Pointer(T) | Nil = nil)
new
Instance Method Detail
def choices : Array(String)
#
Returns valid choices for a configuration widget.
camera[:whitebalance].as_radio.choices
# => ["Automatic", "Daylight", "Fluorescent", "Tungsten", ...]