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
void initial_value(int value)
Set the initial value for the slider.
Definition: resslider.h:224
Base class for gadget memory resources.
Definition: resgadget.h:42
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
WimpColour bar_colour() const
Get the bar colour.
Definition: resslider.h:157
bool generate_value_changed() const
Check if value changed event will be generated.
Definition: resslider.h:107
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
bool vertical() const
Check if the slider is vertical instead of horizontal.
Definition: resslider.h:133
void bar_colour(WimpColour value)
Set the bar colour.
Definition: resslider.h:163
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
Class to represent a standard desktop WIMP colour.
Definition: colour.h:146
void step_size(int value)
Set the step size for the slider.
Definition: resslider.h:212
WimpColour background_colour() const
Get the background colour.
Definition: resslider.h:169
ResSlider & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: resslider.h:71
Class for Slider gadget template.
Definition: resslider.h:37
bool bar_is_draggable() const
Check if the bar can be dragged.
Definition: resslider.h:145
void bar_is_draggable(bool value)
Set if the bar can be dragged.
Definition: resslider.h:151
ResSlider & operator=(const ResSlider &other)
Assign from another slider gadget resource.
Definition: resslider.h:83
void generate_value_changed(bool value)
Set if value changed event will be generated.
Definition: resslider.h:113
ResSlider()
Construct a slider gadget resource.
Definition: resslider.h:94
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 lower_bound(int value)
Set the minimum value for the slider.
Definition: resslider.h:188
ResSlider(const ResGadget &other)
Construct an slider gadget resource.
Definition: resslider.h:49
int initial_value() const
Get the initial value for the slider.
Definition: resslider.h:218
ResSlider(const ResSlider &other)
Construct an slider gadget resource.
Definition: resslider.h:59
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
int lower_bound() const
Get the minimum value for the slider.
Definition: resslider.h:182
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 upper_bound() const
Get the maximum value for the slider.
Definition: resslider.h:194
void background_colour(WimpColour value)
Set the background colour.
Definition: resslider.h:175
int step_size() const
Get the step size for the slider.
Definition: resslider.h:206
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void vertical(bool value)
Set if the slider is vertical instead of horizontal.
Definition: resslider.h:139