Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_widget_set_range ( CameraWidget range,
float  min,
float  max,
float  increment 
)

Sets some range parameters of the CameraWidget.

Parameters:
range a CameraWidget of type GP_WIDGET_RANGE
min 
max 
increment 
Returns:
a gphoto2 error code.

Definition at line 680 of file gphoto2-widget.c.

References CHECK_NULL, GP_ERROR_BAD_PARAMETERS, GP_OK, GP_WIDGET_RANGE, _CameraWidget::increment, _CameraWidget::max, _CameraWidget::min, and _CameraWidget::type.

{
      CHECK_NULL (range);
      
      if (range->type != GP_WIDGET_RANGE)
            return (GP_ERROR_BAD_PARAMETERS);

      range->min = min;
      range->max = max;
      range->increment = increment;

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index