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 () |
Minimum value. More... | |
int | getPageSize () |
Page size. More... | |
int | getValue () |
Current value. More... | |
DefaultRangeModel | new () |
Create range model from 0 to 100 with 10 page an 1 increment. More... | |
DefaultRangeModel | new (int minimum, int maximum, int pageSize, int value, int increment) |
Create range model with values adjusted to satisfy invariants. More... | |
void | removeListener (RangeModelListener listener) |
Remove listener. More... | |
void | setAll (int minimum, int maximum, int pageSize, int value, int increment) |
Set all 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. 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.DefaultRangeModel.addListener | ( | RangeModelListener | listener | ) |
Add listener.
ENullPointer | listener is null. |
EInvalidParam | listener is present. |
Implements Dragengine.Gui.RangeModel.
int Dragengine.Gui.DefaultRangeModel.getIncrement | ( | ) |
Increment for changing the value by small increments.
Implements Dragengine.Gui.RangeModel.
int Dragengine.Gui.DefaultRangeModel.getMaximum | ( | ) |
Maximum value.
Implements Dragengine.Gui.RangeModel.
int Dragengine.Gui.DefaultRangeModel.getMinimum | ( | ) |
Minimum value.
Implements Dragengine.Gui.RangeModel.
int Dragengine.Gui.DefaultRangeModel.getPageSize | ( | ) |
Page size.
Implements Dragengine.Gui.RangeModel.
int Dragengine.Gui.DefaultRangeModel.getValue | ( | ) |
Current value.
Implements Dragengine.Gui.RangeModel.
DefaultRangeModel Dragengine.Gui.DefaultRangeModel.new | ( | ) |
Create range model from 0 to 100 with 10 page an 1 increment.
DefaultRangeModel Dragengine.Gui.DefaultRangeModel.new | ( | int | minimum, |
int | maximum, | ||
int | pageSize, | ||
int | value, | ||
int | increment | ||
) |
Create range model with values adjusted to satisfy invariants.
void Dragengine.Gui.DefaultRangeModel.removeListener | ( | RangeModelListener | listener | ) |
void Dragengine.Gui.DefaultRangeModel.setAll | ( | int | minimum, |
int | maximum, | ||
int | pageSize, | ||
int | value, | ||
int | increment | ||
) |
Set all properties.
maximum is clampted to minimum or larger. pageSize is clamped to 1 or larger. value is clamped to the range from minimum to maximum.
Implements Dragengine.Gui.RangeModel.
void Dragengine.Gui.DefaultRangeModel.setIncrement | ( | int | increment | ) |
Set increment for changing the value by small increments.
Implements Dragengine.Gui.RangeModel.
void Dragengine.Gui.DefaultRangeModel.setMaximum | ( | int | maximum | ) |
Set maximum value.
If maximum is less than minimum the minimum is set to the maximum. Value is clamped to the range from minimum to maximum.
Implements Dragengine.Gui.RangeModel.
void Dragengine.Gui.DefaultRangeModel.setMinimum | ( | int | minimum | ) |
Set minimum value.
If minimum is larger than maximum the maximum is set to the minimum. Value is clamped to the range from minimum to maximum.
Implements Dragengine.Gui.RangeModel.
void Dragengine.Gui.DefaultRangeModel.setPageSize | ( | int | pageSize | ) |
void Dragengine.Gui.DefaultRangeModel.setValue | ( | int | value | ) |
Set current value.
Value is clamped to the range from minimum to maximum.
Implements Dragengine.Gui.RangeModel.