79 lines
1.9 KiB
Markdown
79 lines
1.9 KiB
Markdown
# UITrackpadComponent.limit
|
|
|
|
[← UITrackpadComponent](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 2/3 · [önceki](limit.md) · [sonraki](limit-3.md)
|
|
|
|
UITrackpadComponent
|
|
|
|
public UITrackpadComponent()
|
|
|
|
Method Detail
|
|
value
|
|
|
|
public UITrackpadComponent value(double value)
|
|
|
|
Set the value that of trackpad component.
|
|
|
|
min
|
|
|
|
public UITrackpadComponent min(double min)
|
|
|
|
Set the minimum that this trackpad component can let the user pick.
|
|
|
|
max
|
|
|
|
public UITrackpadComponent max(double max)
|
|
|
|
Set the maximum that this trackpad component can let the user pick.
|
|
|
|
integer
|
|
|
|
public UITrackpadComponent integer()
|
|
|
|
|
|
|
|
Set this trackpad component to accept only whole numbers.
|
|
|
|
integer
|
|
|
|
public UITrackpadComponent integer(boolean integer)
|
|
|
|
Toggle integer option, when passed true then this trackpad component will accept only whole numbers,
|
|
and when passed false, then both whole and floating point numbers can be accepted by this trackpad.
|
|
|
|
limit
|
|
|
|
public UITrackpadComponent limit(double min,
|
|
double max)
|
|
|
|
Convenience method that allows to set minimum and maximum, i.e. value range, that this trackpad field
|
|
can accept.
|
|
|
|
limit
|
|
|
|
public UITrackpadComponent limit(double min,
|
|
double max,
|
|
boolean integer)
|
|
|
|
Convenience method that allows to set minimum, maximum, and integer options that this trackpad field
|
|
can accept.
|
|
|
|
amplitudes
|
|
|
|
public UITrackpadComponent amplitudes(double normal)
|
|
|
|
Changes the amplitudes of this trackpad fields, i.e. how much value changes when moving the cursor
|
|
horizontally. Weak (Alt amplitude gets set 5 times weaker than input value, and strong (Shift) amplitude
|
|
gets set 5 times stronger than input value.
|
|
|
|
amplitudes
|
|
|
|
public UITrackpadComponent amplitudes(double normal,
|
|
double weak,
|
|
double strong)
|
|
|
|
Changes the amplitudes of this trackpad fields, i.e. how much value changes when moving the cursor
|
|
horizontally.
|
|
|