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:
rangea CameraWidget of type GP_WIDGET_RANGE
min
max
increment
Returns:
a gphoto2 error code.

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

References GP_ERROR_BAD_PARAMETERS, GP_OK, and GP_WIDGET_RANGE.

{
      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