pub enum BuiltinFunction {
Show 53 variants
GetWindowScaleFactor,
GetWindowDefaultFontSize,
AnimationTick,
Debug,
Mod,
Round,
Ceil,
Floor,
Abs,
Sqrt,
Cos,
Sin,
Tan,
ACos,
ASin,
ATan,
Log,
Pow,
SetFocusItem,
ClearFocusItem,
ShowPopupWindow,
ClosePopupWindow,
SetSelectionOffsets,
ItemMemberFunction(String),
StringToFloat,
StringIsFloat,
ColorRgbaStruct,
ColorHsvaStruct,
ColorBrighter,
ColorDarker,
ColorTransparentize,
ColorMix,
ColorWithAlpha,
ImageSize,
ArrayLength,
Rgb,
Hsv,
ColorScheme,
Use24HourFormat,
MonthDayCount,
MonthOffset,
FormatDate,
DateNow,
ValidDate,
ParseDate,
TextInputFocused,
SetTextInputFocused,
ImplicitLayoutInfo(Orientation),
ItemAbsolutePosition,
RegisterCustomFontByPath,
RegisterCustomFontByMemory,
RegisterBitmapFont,
Translate,
}
Expand description
A function built into the run-time
Variants§
GetWindowScaleFactor
GetWindowDefaultFontSize
AnimationTick
Debug
Mod
Round
Ceil
Floor
Abs
Sqrt
Cos
Sin
Tan
ACos
ASin
ATan
Log
Pow
SetFocusItem
ClearFocusItem
ShowPopupWindow
ClosePopupWindow
SetSelectionOffsets
ItemMemberFunction(String)
A function that belongs to an item (such as TextInput’s select-all function).
StringToFloat
the “42”.to_float()
StringIsFloat
the “42”.is_float()
ColorRgbaStruct
ColorHsvaStruct
ColorBrighter
ColorDarker
ColorTransparentize
ColorMix
ColorWithAlpha
ImageSize
ArrayLength
Rgb
Hsv
ColorScheme
Use24HourFormat
MonthDayCount
MonthOffset
FormatDate
DateNow
ValidDate
ParseDate
TextInputFocused
SetTextInputFocused
ImplicitLayoutInfo(Orientation)
ItemAbsolutePosition
RegisterCustomFontByPath
RegisterCustomFontByMemory
RegisterBitmapFont
Translate
Implementations§
Trait Implementations§
source§impl Clone for BuiltinFunction
impl Clone for BuiltinFunction
source§fn clone(&self) -> BuiltinFunction
fn clone(&self) -> BuiltinFunction
Returns a copy 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 BuiltinFunction
impl Debug for BuiltinFunction
source§impl PartialEq for BuiltinFunction
impl PartialEq for BuiltinFunction
source§fn eq(&self, other: &BuiltinFunction) -> bool
fn eq(&self, other: &BuiltinFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BuiltinFunction
impl StructuralPartialEq for BuiltinFunction
Auto Trait Implementations§
impl Freeze for BuiltinFunction
impl RefUnwindSafe for BuiltinFunction
impl Send for BuiltinFunction
impl Sync for BuiltinFunction
impl Unpin for BuiltinFunction
impl UnwindSafe for BuiltinFunction
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more