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

int gp_widget_get_range ( CameraWidget range,
float *  min,
float *  max,
float *  increment 
)

Retrieves 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 705 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 && min && max && increment);
      if (range->type != GP_WIDGET_RANGE)
            return (GP_ERROR_BAD_PARAMETERS);

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

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index