pub struct LayoutPreset { /* private fields */ }Implementations§
Source§impl LayoutPreset
impl LayoutPreset
Sourcepub const TOP_LEFT: LayoutPreset
pub const TOP_LEFT: LayoutPreset
Godot enumerator name: PRESET_TOP_LEFT
Sourcepub const TOP_RIGHT: LayoutPreset
pub const TOP_RIGHT: LayoutPreset
Godot enumerator name: PRESET_TOP_RIGHT
Sourcepub const BOTTOM_LEFT: LayoutPreset
pub const BOTTOM_LEFT: LayoutPreset
Godot enumerator name: PRESET_BOTTOM_LEFT
Sourcepub const BOTTOM_RIGHT: LayoutPreset
pub const BOTTOM_RIGHT: LayoutPreset
Godot enumerator name: PRESET_BOTTOM_RIGHT
Sourcepub const CENTER_LEFT: LayoutPreset
pub const CENTER_LEFT: LayoutPreset
Godot enumerator name: PRESET_CENTER_LEFT
Sourcepub const CENTER_TOP: LayoutPreset
pub const CENTER_TOP: LayoutPreset
Godot enumerator name: PRESET_CENTER_TOP
Sourcepub const CENTER_RIGHT: LayoutPreset
pub const CENTER_RIGHT: LayoutPreset
Godot enumerator name: PRESET_CENTER_RIGHT
Sourcepub const CENTER_BOTTOM: LayoutPreset
pub const CENTER_BOTTOM: LayoutPreset
Godot enumerator name: PRESET_CENTER_BOTTOM
Sourcepub const CENTER: LayoutPreset
pub const CENTER: LayoutPreset
Godot enumerator name: PRESET_CENTER
Sourcepub const LEFT_WIDE: LayoutPreset
pub const LEFT_WIDE: LayoutPreset
Godot enumerator name: PRESET_LEFT_WIDE
Sourcepub const TOP_WIDE: LayoutPreset
pub const TOP_WIDE: LayoutPreset
Godot enumerator name: PRESET_TOP_WIDE
Sourcepub const RIGHT_WIDE: LayoutPreset
pub const RIGHT_WIDE: LayoutPreset
Godot enumerator name: PRESET_RIGHT_WIDE
Sourcepub const BOTTOM_WIDE: LayoutPreset
pub const BOTTOM_WIDE: LayoutPreset
Godot enumerator name: PRESET_BOTTOM_WIDE
Sourcepub const VCENTER_WIDE: LayoutPreset
pub const VCENTER_WIDE: LayoutPreset
Godot enumerator name: PRESET_VCENTER_WIDE
Sourcepub const HCENTER_WIDE: LayoutPreset
pub const HCENTER_WIDE: LayoutPreset
Godot enumerator name: PRESET_HCENTER_WIDE
Sourcepub const FULL_RECT: LayoutPreset
pub const FULL_RECT: LayoutPreset
Godot enumerator name: PRESET_FULL_RECT
Trait Implementations§
Source§impl Clone for LayoutPreset
impl Clone for LayoutPreset
Source§fn clone(&self) -> LayoutPreset
fn clone(&self) -> LayoutPreset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutPreset
impl Debug for LayoutPreset
Source§impl EngineEnum for LayoutPreset
impl EngineEnum for LayoutPreset
fn try_from_ord(ord: i32) -> Option<LayoutPreset>
Source§fn ord(self) -> i32
fn ord(self) -> i32
Ordinal value of the enumerator, as specified in Godot.
This is not necessarily unique.
Source§fn values() -> &'static [LayoutPreset]
fn values() -> &'static [LayoutPreset]
Returns a slice of distinct enum values. Read more
Source§fn all_constants() -> &'static [EnumConstant<LayoutPreset>]
fn all_constants() -> &'static [EnumConstant<LayoutPreset>]
Returns metadata for all enum constants. Read more
fn from_ord(ord: i32) -> Self
Source§impl FromGodot for LayoutPreset
impl FromGodot for LayoutPreset
Source§fn try_from_godot(
via: <LayoutPreset as GodotConvert>::Via,
) -> Result<LayoutPreset, ConvertError>
fn try_from_godot( via: <LayoutPreset as GodotConvert>::Via, ) -> Result<LayoutPreset, ConvertError>
Converts the Godot representation to this type, returning
Err on failure.Source§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
Source§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant, returning Err on failure.Source§impl GodotConvert for LayoutPreset
impl GodotConvert for LayoutPreset
Source§fn godot_shape() -> GodotShape
fn godot_shape() -> GodotShape
Which “shape” this type has for property registration (e.g. builtin, enum, …). Read more
Source§impl Hash for LayoutPreset
impl Hash for LayoutPreset
Source§impl PartialEq for LayoutPreset
impl PartialEq for LayoutPreset
Source§impl ToGodot for LayoutPreset
impl ToGodot for LayoutPreset
Source§type Pass = ByValue
type Pass = ByValue
Whether arguments of this type are passed by value or by reference. Read more
Source§fn to_godot(&self) -> <LayoutPreset as GodotConvert>::Via
fn to_godot(&self) -> <LayoutPreset as GodotConvert>::Via
Converts this type to Godot representation, optimizing for zero-copy when possible. Read more
Source§fn to_godot_owned(&self) -> Self::Via
fn to_godot_owned(&self) -> Self::Via
Converts this type to owned Godot representation. Read more
Source§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
Source§impl Var for LayoutPreset
impl Var for LayoutPreset
Source§type PubType = LayoutPreset
type PubType = LayoutPreset
Type used in generated Rust getters/setters for
#[var(pub)].Source§fn var_get(field: &LayoutPreset) -> <LayoutPreset as GodotConvert>::Via
fn var_get(field: &LayoutPreset) -> <LayoutPreset as GodotConvert>::Via
Get property value via FFI-level
Via type. Called for internal (non-pub) getters registered with Godot.Source§fn var_set(field: &mut LayoutPreset, value: <LayoutPreset as GodotConvert>::Via)
fn var_set(field: &mut LayoutPreset, value: <LayoutPreset as GodotConvert>::Via)
Set property value via FFI-level
Via type. Called for internal (non-pub) setters registered with Godot.Source§fn var_pub_get(field: &LayoutPreset) -> <LayoutPreset as Var>::PubType
fn var_pub_get(field: &LayoutPreset) -> <LayoutPreset as Var>::PubType
Get property value as
PubType. Called for #[var(pub)] getters exposed in Rust API.Source§fn var_pub_set(field: &mut LayoutPreset, value: <LayoutPreset as Var>::PubType)
fn var_pub_set(field: &mut LayoutPreset, value: <LayoutPreset as Var>::PubType)
Set property value as
PubType. Called for #[var(pub)] setters exposed in Rust API.impl Copy for LayoutPreset
impl Element for LayoutPreset
impl Eq for LayoutPreset
impl Export for LayoutPreset
impl StructuralPartialEq for LayoutPreset
Auto Trait Implementations§
impl Freeze for LayoutPreset
impl RefUnwindSafe for LayoutPreset
impl Send for LayoutPreset
impl Sync for LayoutPreset
impl Unpin for LayoutPreset
impl UnsafeUnpin for LayoutPreset
impl UnwindSafe for LayoutPreset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more