Struct gdnative_bindings_lily::EditorSpinSlider [−][src]
pub struct EditorSpinSlider { /* fields omitted */ }
Expand description
tools class EditorSpinSlider
inherits Range
(unsafe).
Official documentation
See the documentation of this class in the Godot engine’s official documentation. The method descriptions are generated from it and typically contain code samples in GDScript, not Rust.
Class hierarchy
EditorSpinSlider inherits methods from:
Tool
This class is used to interact with Godot’s editor.
Safety
All types in the Godot API have “interior mutability” in Rust parlance.
To enforce that the official thread-safety guidelines are
followed, the typestate pattern is used in the Ref
and TRef
smart pointers,
and the Instance
API. The typestate Access
in these types tracks whether the
access is unique, shared, or exclusive to the current thread. For more information,
see the type-level documentation on Ref
.
Implementations
Methods from Deref<Target = Range>
Page size. Used mainly for ScrollBar. ScrollBar’s length is its size multiplied by page
over the difference between min_value
and max_value
.
If greater than 0, value
will always be rounded to a multiple of step
. If rounded
is also true
, value
will first be rounded to a multiple of step
then rounded to the nearest integer.
If true
, [member value] may be greater than [member max_value].
If true
, [member value] may be less than [member min_value].
If true
, and min_value
is greater than 0, value
will be represented exponentially rather than linearly.
If true
, value
will always be rounded to the nearest integer.
If true
, [member value] may be greater than [member max_value].
If true
, [member value] may be less than [member min_value].
The value mapped between 0 and 1.
If true
, and min_value
is greater than 0, value
will be represented exponentially rather than linearly.
Maximum value. Range is clamped if value
is greater than max_value
.
Minimum value. Range is clamped if value
is less than min_value
.
Page size. Used mainly for ScrollBar. ScrollBar’s length is its size multiplied by page
over the difference between min_value
and max_value
.
If greater than 0, value
will always be rounded to a multiple of step
. If rounded
is also true
, value
will first be rounded to a multiple of step
then rounded to the nearest integer.
If true
, value
will always be rounded to the nearest integer.
Binds two ranges together along with any ranges previously grouped with either of them. When any of range’s member variables change, it will share the new value with all other ranges in its group.
Stops range from sharing its member variables with any other.
Trait Implementations
type RefKind = ManuallyManaged
type RefKind = ManuallyManaged
Creates an explicitly null reference of Self
as a method argument. This makes type
inference easier for the compiler compared to Option
. Read more
Creates a new instance of Self
using a zero-argument constructor, as a Unique
reference. Read more
Performs a dynamic reference downcast to target type. Read more
Performs a static reference upcast to a supertype that is guaranteed to be valid. Read more
Creates a persistent reference to the same Godot object with shared thread access. Read more
unsafe fn assume_thread_local(&self) -> Ref<Self, ThreadLocal> where
Self: GodotObject<RefKind = RefCounted>,
unsafe fn assume_thread_local(&self) -> Ref<Self, ThreadLocal> where
Self: GodotObject<RefKind = RefCounted>,
Creates a persistent reference to the same Godot object with thread-local thread access. Read more
Creates a persistent reference to the same Godot object with unique access. Read more
Recovers a instance ID previously returned by Object::get_instance_id
if the object is
still alive. See also TRef::try_from_instance_id
. Read more
Auto Trait Implementations
impl RefUnwindSafe for EditorSpinSlider
impl !Send for EditorSpinSlider
impl !Sync for EditorSpinSlider
impl Unpin for EditorSpinSlider
impl UnwindSafe for EditorSpinSlider