Class: GPhoto2::RangeCameraWidget
- Inherits:
-
CameraWidget
- Object
- CameraWidget
- GPhoto2::RangeCameraWidget
- Defined in:
- lib/gphoto2/camera_widgets/range_camera_widget.rb
Constant Summary
Constants included from FFI::GPhoto2
FFI::GPhoto2::CameraCaptureType, FFI::GPhoto2::CameraDriverStatus, FFI::GPhoto2::CameraEventType, FFI::GPhoto2::CameraFileAccessType, FFI::GPhoto2::CameraFileInfoFields, FFI::GPhoto2::CameraFileOperation, FFI::GPhoto2::CameraFilePermissions, FFI::GPhoto2::CameraFileStatus, FFI::GPhoto2::CameraFileType, FFI::GPhoto2::CameraFolderOperation, FFI::GPhoto2::CameraOperation, FFI::GPhoto2::CameraWidgetType, FFI::GPhoto2::GphotoDeviceType
Instance Attribute Summary
Attributes included from Struct
Instance Method Summary collapse
Methods inherited from CameraWidget
#children, factory, #finalize, #flatten, #initialize, #label, #name, #to_s, #type, #value, #value=
Methods included from Struct
Constructor Details
This class inherits a constructor from GPhoto2::CameraWidget
Instance Method Details
#range ⇒ Array<Number>
4 5 6 7 |
# File 'lib/gphoto2/camera_widgets/range_camera_widget.rb', line 4 def range min, max, inc = get_range (min..max).step(inc).to_a end |