25 #ifndef TBX_RES_RESNUMBERRANGE_H
26 #define TBX_RES_RESNUMBERRANGE_H
28 #include "resgadget.h"
29 #include "resjustification.h"
30 #include "../colour.h"
31 #include "../handles.h"
43 enum {TYPE_ID = 832 };
328 #endif // TBX_RES_RESNUMBERRANGE_H
ResJustification justification() const
Get the horizontal position of the number range in its bounding box.
Definition: resnumberrange.h:180
void lower_bound(int value)
Set the minimum value for the number range.
Definition: resnumberrange.h:223
int lower_bound() const
Get the minimum value for the number range.
Definition: resnumberrange.h:217
slider to the right of the display area
Definition: resnumberrange.h:159
Base class for gadget memory resources.
Definition: resgadget.h:42
void slider_colour(WimpColour value)
Set slider foreground colour.
Definition: resnumberrange.h:198
bool writable() const
Check if number range is writable.
Definition: resnumberrange.h:122
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
bool has_adjuster_arrows() const
Check if the number range shows adjuster arrows.
Definition: resnumberrange.h:146
bool no_display_area() const
Check if display area is omitted from the number range.
Definition: resnumberrange.h:134
void precision(int value)
Set the precision of the number range.
Definition: resnumberrange.h:285
WimpColour slider_background_colour() const
Get slider background colour.
Definition: resnumberrange.h:204
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
void has_adjuster_arrows(bool value)
Set if the number range shows adjuster arrows.
Definition: resnumberrange.h:152
ComponentId after() const
Get the component ID of the gadget after this one in the Tab order.
Definition: resnumberrange.h:303
no slider
Definition: resnumberrange.h:158
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
SliderType
Enumaration for how slider is shown.
Definition: resnumberrange.h:156
Class to represent a standard desktop WIMP colour.
Definition: colour.h:146
void writable(bool value)
Set if number range is writable.
Definition: resnumberrange.h:128
int display_length() const
Get the length of the display field.
Definition: resnumberrange.h:315
void generate_value_changed(bool value)
Set if the value changed event will be generated.
Definition: resnumberrange.h:116
void step_size(int value)
Set the step size value for the number range.
Definition: resnumberrange.h:247
SliderType slider_type() const
Get how the slider is displayed.
Definition: resnumberrange.h:167
int precision() const
Get the precision of the number range.
Definition: resnumberrange.h:272
int upper_bound() const
Get the maximum value for the number range.
Definition: resnumberrange.h:229
ResNumberRange()
Construct a number range gadget resource.
Definition: resnumberrange.h:96
void slider_type(SliderType value)
Set how the slider is displayed.
Definition: resnumberrange.h:173
void slider_background_colour(WimpColour value)
Set slider background colour.
Definition: resnumberrange.h:210
int initial_value() const
Get the initial value for the number range.
Definition: resnumberrange.h:253
ComponentId before() const
Get the component ID of the gadget before this one in the Tab order.
Definition: resnumberrange.h:291
void display_length(int value)
Set the length of the display field.
Definition: resnumberrange.h:321
ResNumberRange(const ResGadget &other)
Construct an number range gadget resource.
Definition: resnumberrange.h:51
void initial_value(int value)
Set the initial value for the number range.
Definition: resnumberrange.h:259
WimpColour slider_colour() const
Get slider foreground colour.
Definition: resnumberrange.h:192
void before(ComponentId value)
Set the component ID of the gadget before this one in the Tab order.
Definition: resnumberrange.h:297
ResNumberRange(const ResNumberRange &other)
Construct an number range gadget resource.
Definition: resnumberrange.h:61
void no_display_area(bool value)
Set if display area is omitted from the number range.
Definition: resnumberrange.h:140
ResNumberRange & operator=(const ResNumberRange &other)
Assign from another number range gadget resource.
Definition: resnumberrange.h:85
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
Class for NumberRange gadget template.
Definition: resnumberrange.h:39
void justification(ResJustification value)
Set the horizontal position of the number range in its bounding box.
Definition: resnumberrange.h:186
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
int step_size() const
Get the step size value for the number range.
Definition: resnumberrange.h:241
ResNumberRange & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: resnumberrange.h:73
void upper_bound(int value)
Set the maximum value for the number range.
Definition: resnumberrange.h:235
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void after(ComponentId value)
Set the component ID of the gadget after this one in the Tab order.
Definition: resnumberrange.h:309
slider to the left of the display area
Definition: resnumberrange.h:160
bool generate_value_changed() const
Check if the value changed event will be generated.
Definition: resnumberrange.h:110