Drag[en]gine Script Module DragonScript
1.23
|
Value of scrollbar like widgets. More...
Public Member Functions | |
void | addListener (RangeModelListener listener) |
Add listener. More... | |
int | getIncrement () |
Increment for changing the value by small increments. More... | |
int | getMaximum () |
Maximum value. More... | |
int | getMinimum () |
Minimal value. More... | |
int | getPageSize () |
Size of a page. More... | |
int | getValue () |
Current value. More... | |
void | removeListener (RangeModelListener listener) |
Remove listener. More... | |
void | setAll (int minimum, int maximum, int pageSize, int value, int increment) |
Set properties. More... | |
void | setIncrement (int increment) |
Set increment for changing the value by small increments. More... | |
void | setMaximum (int maximum) |
Set maximum value. More... | |
void | setMinimum (int minimum) |
Set minimum value. More... | |
void | setPageSize (int pageSize) |
Set page size. More... | |
void | setValue (int value) |
Set current value clamped to the range. More... | |
Value of scrollbar like widgets.
Provides value range, page size and current value. The range model is responsible for checking all constraints are met at all time. These are the constraints:
If a parameter is changed breaking one or more of these constraints the range model implementor has to adjusted the parameters to fix the constraints.
The increment is used by scroll bars to change the value is the users clicks the scroll buttons.
void Dragengine.Gui.RangeModel.addListener | ( | RangeModelListener | listener | ) |
Add listener.
Implemented in Dragengine.Gui.DefaultRangeModel.
int Dragengine.Gui.RangeModel.getIncrement | ( | ) |
Increment for changing the value by small increments.
Implemented in Dragengine.Gui.DefaultRangeModel.
int Dragengine.Gui.RangeModel.getMaximum | ( | ) |
Maximum value.
Implemented in Dragengine.Gui.DefaultRangeModel.
int Dragengine.Gui.RangeModel.getMinimum | ( | ) |
Minimal value.
Implemented in Dragengine.Gui.DefaultRangeModel.
int Dragengine.Gui.RangeModel.getPageSize | ( | ) |
Size of a page.
Implemented in Dragengine.Gui.DefaultRangeModel.
int Dragengine.Gui.RangeModel.getValue | ( | ) |
Current value.
Implemented in Dragengine.Gui.DefaultRangeModel.
void Dragengine.Gui.RangeModel.removeListener | ( | RangeModelListener | listener | ) |
Remove listener.
Implemented in Dragengine.Gui.DefaultRangeModel.
void Dragengine.Gui.RangeModel.setAll | ( | int | minimum, |
int | maximum, | ||
int | pageSize, | ||
int | value, | ||
int | increment | ||
) |
Set properties.
If the constraints would be broken the maximum value is adjusted then the current value until the condititions hold again.
EInvalidParam | pageSize is less than 1. |
Implemented in Dragengine.Gui.DefaultRangeModel.
void Dragengine.Gui.RangeModel.setIncrement | ( | int | increment | ) |
Set increment for changing the value by small increments.
Implemented in Dragengine.Gui.DefaultRangeModel.
void Dragengine.Gui.RangeModel.setMaximum | ( | int | maximum | ) |
Set maximum value.
If the constraints would be broken the maximum value is adjusted then the current value until the conditions hold again.
Implemented in Dragengine.Gui.DefaultRangeModel.
void Dragengine.Gui.RangeModel.setMinimum | ( | int | minimum | ) |
Set minimum value.
If the constraints would be broken the maximum value is adjusted then the current value until the condititions hold again.
Implemented in Dragengine.Gui.DefaultRangeModel.
void Dragengine.Gui.RangeModel.setPageSize | ( | int | pageSize | ) |
Set page size.
If the constraints would be broken the current value is adjusted.
EInvalidParam | pageSize is less than 1. |
Implemented in Dragengine.Gui.DefaultRangeModel.
void Dragengine.Gui.RangeModel.setValue | ( | int | value | ) |
Set current value clamped to the range.
Implemented in Dragengine.Gui.DefaultRangeModel.