25 #ifndef TBX_RES_RESSLIDER_H
26 #define TBX_RES_RESSLIDER_H
28 #include "resgadget.h"
29 #include "../colour.h"
41 enum {TYPE_ID = 576 };
231 #endif // TBX_RES_RESSLIDER_H
bool generate_value_changed_while_dragging() const
Check if the value changed event will be generated when the slider is dragged.
Definition: resslider.h:120
void background_colour(WimpColour value)
Set the background colour.
Definition: resslider.h:175
void vertical(bool value)
Set if the slider is vertical instead of horizontal.
Definition: resslider.h:139
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
Class to represent a standard desktop WIMP colour.
Definition: colour.h:147
Class for Slider gadget template.
Definition: resslider.h:38
Base class for gadget memory resources.
Definition: resgadget.h:43
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void generate_value_changed_while_dragging(bool value)
Set if the value changed event will be generated when the slider is dragged.
Definition: resslider.h:127
int step_size() const
Get the step size for the slider.
Definition: resslider.h:206
void bar_colour(WimpColour value)
Set the bar colour.
Definition: resslider.h:163
bool bar_is_draggable() const
Check if the bar can be dragged.
Definition: resslider.h:145
void step_size(int value)
Set the step size for the slider.
Definition: resslider.h:212
ResSlider & operator=(const ResSlider &other)
Assign from another slider gadget resource.
Definition: resslider.h:83
ResSlider()
Construct a slider gadget resource.
Definition: resslider.h:94
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
bool generate_value_changed() const
Check if value changed event will be generated.
Definition: resslider.h:107
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
ResSlider & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: resslider.h:71
ResSlider(const ResGadget &other)
Construct an slider gadget resource.
Definition: resslider.h:49
ResSlider(const ResSlider &other)
Construct an slider gadget resource.
Definition: resslider.h:59
int initial_value() const
Get the initial value for the slider.
Definition: resslider.h:218
void generate_value_changed(bool value)
Set if value changed event will be generated.
Definition: resslider.h:113
void lower_bound(int value)
Set the minimum value for the slider.
Definition: resslider.h:188
void bar_is_draggable(bool value)
Set if the bar can be dragged.
Definition: resslider.h:151
WimpColour bar_colour() const
Get the bar colour.
Definition: resslider.h:157
WimpColour background_colour() const
Get the background colour.
Definition: resslider.h:169
void initial_value(int value)
Set the initial value for the slider.
Definition: resslider.h:224
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
void upper_bound(int value)
Set the maximum value for the slider.
Definition: resslider.h:200
int lower_bound() const
Get the minimum value for the slider.
Definition: resslider.h:182
bool vertical() const
Check if the slider is vertical instead of horizontal.
Definition: resslider.h:133
int upper_bound() const
Get the maximum value for the slider.
Definition: resslider.h:194