[][src]Trait image_capture_core::scanner_functional_units::ICScannerFeatureRange

pub trait ICScannerFeatureRange: Sized {
    unsafe fn currentValue(self) -> CGFloat;
unsafe fn setCurrentValue(self, currentValue: CGFloat);
unsafe fn defaultValue(self) -> CGFloat;
unsafe fn minValue(self) -> CGFloat;
unsafe fn maxValue(self) -> CGFloat;
unsafe fn stepSize(self) -> CGFloat; }

ICScannerFeatureRange object is used to represent a property of a scanner functional unit whose value lies within a range.

Required methods

unsafe fn currentValue(self) -> CGFloat

The current value. Attempting to set the current value to a value that is not coincident with a step will result in a value corresponding to the nearest step being assigned to the current value.

unsafe fn setCurrentValue(self, currentValue: CGFloat)

Set the current value

unsafe fn defaultValue(self) -> CGFloat

The default value. Attempting to set the default value to a value that is not coincident with a step will result in a value corresponding to the nearest step being assigned to the default value.

unsafe fn minValue(self) -> CGFloat

The minimum value.

unsafe fn maxValue(self) -> CGFloat

The maximum value.

unsafe fn stepSize(self) -> CGFloat

The step size.

Loading content...

Implementations on Foreign Types

impl ICScannerFeatureRange for id[src]

Loading content...

Implementors

Loading content...