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
Class for NumberRange gadget template.
Definition: resnumberrange.h:40
void display_length(int value)
Set the length of the display field.
Definition: resnumberrange.h:321
void initial_value(int value)
Set the initial value for the number range.
Definition: resnumberrange.h:259
ResJustification justification() const
Get the horizontal position of the number range in its bounding box.
Definition: resnumberrange.h:180
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
bool generate_value_changed() const
Check if the value changed event will be generated.
Definition: resnumberrange.h:110
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
Class to represent a standard desktop WIMP colour.
Definition: colour.h:147
WimpColour slider_colour() const
Get slider foreground colour.
Definition: resnumberrange.h:192
WimpColour slider_background_colour() const
Get slider background colour.
Definition: resnumberrange.h:204
void slider_type(SliderType value)
Set how the slider is displayed.
Definition: resnumberrange.h:173
void step_size(int value)
Set the step size value for the number range.
Definition: resnumberrange.h:247
int display_length() const
Get the length of the display field.
Definition: resnumberrange.h:315
Base class for gadget memory resources.
Definition: resgadget.h:43
void no_display_area(bool value)
Set if display area is omitted from the number range.
Definition: resnumberrange.h:140
ResNumberRange()
Construct a number range gadget resource.
Definition: resnumberrange.h:96
bool has_adjuster_arrows() const
Check if the number range shows adjuster arrows.
Definition: resnumberrange.h:146
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
ResNumberRange(const ResGadget &other)
Construct an number range gadget resource.
Definition: resnumberrange.h:51
void slider_background_colour(WimpColour value)
Set slider background colour.
Definition: resnumberrange.h:210
void before(ComponentId value)
Set the component ID of the gadget before this one in the Tab order.
Definition: resnumberrange.h:297
void upper_bound(int value)
Set the maximum value for the number range.
Definition: resnumberrange.h:235
bool writable() const
Check if number range is writable.
Definition: resnumberrange.h:122
@ SLIDER_LEFT
slider to the left of the display area
Definition: resnumberrange.h:160
void after(ComponentId value)
Set the component ID of the gadget after this one in the Tab order.
Definition: resnumberrange.h:309
void justification(ResJustification value)
Set the horizontal position of the number range in its bounding box.
Definition: resnumberrange.h:186
ResNumberRange & operator=(const ResNumberRange &other)
Assign from another number range gadget resource.
Definition: resnumberrange.h:85
SliderType slider_type() const
Get how the slider is displayed.
Definition: resnumberrange.h:167
ResNumberRange(const ResNumberRange &other)
Construct an number range gadget resource.
Definition: resnumberrange.h:61
ResNumberRange & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: resnumberrange.h:73
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
void precision(int value)
Set the precision of the number range.
Definition: resnumberrange.h:285
int step_size() const
Get the step size value for the number range.
Definition: resnumberrange.h:241
int upper_bound() const
Get the maximum value for the number range.
Definition: resnumberrange.h:229
void has_adjuster_arrows(bool value)
Set if the number range shows adjuster arrows.
Definition: resnumberrange.h:152
@ NO_SLIDER
no slider
Definition: resnumberrange.h:158
void lower_bound(int value)
Set the minimum value for the number range.
Definition: resnumberrange.h:223
ComponentId before() const
Get the component ID of the gadget before this one in the Tab order.
Definition: resnumberrange.h:291
int precision() const
Get the precision of the number range.
Definition: resnumberrange.h:272
ResJustification
Standard justification of resource gadget flags.
Definition: resjustification.h:11
void slider_colour(WimpColour value)
Set slider foreground colour.
Definition: resnumberrange.h:198
SliderType
Enumaration for how slider is shown.
Definition: resnumberrange.h:157
ComponentId after() const
Get the component ID of the gadget after this one in the Tab order.
Definition: resnumberrange.h:303
int lower_bound() const
Get the minimum value for the number range.
Definition: resnumberrange.h:217
bool no_display_area() const
Check if display area is omitted from the number range.
Definition: resnumberrange.h:134
void writable(bool value)
Set if number range is writable.
Definition: resnumberrange.h:128
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
@ SLIDER_RIGHT
slider to the right of the display area
Definition: resnumberrange.h:159
int initial_value() const
Get the initial value for the number range.
Definition: resnumberrange.h:253
void generate_value_changed(bool value)
Set if the value changed event will be generated.
Definition: resnumberrange.h:116