Skip to main content

BuiltinFunctionTypes

Struct BuiltinFunctionTypes 

Source
pub struct BuiltinFunctionTypes {
Show 95 fields pub GetWindowScaleFactor: Arc<Function>, pub GetWindowDefaultFontSize: Arc<Function>, pub AnimationTick: Arc<Function>, pub Debug: Arc<Function>, pub Mod: Arc<Function>, pub Round: Arc<Function>, pub Ceil: Arc<Function>, pub Floor: Arc<Function>, pub Sqrt: Arc<Function>, pub Abs: Arc<Function>, pub Cos: Arc<Function>, pub Sin: Arc<Function>, pub Tan: Arc<Function>, pub ACos: Arc<Function>, pub ASin: Arc<Function>, pub ATan: Arc<Function>, pub ATan2: Arc<Function>, pub DecimalSeparator: Arc<Function>, pub DefaultWindowTitle: Arc<Function>, pub Log: Arc<Function>, pub Ln: Arc<Function>, pub Pow: Arc<Function>, pub Exp: Arc<Function>, pub ToFixed: Arc<Function>, pub ToPrecision: Arc<Function>, pub ToStringUnlocalized: Arc<Function>, pub SetFocusItem: Arc<Function>, pub ClearFocusItem: Arc<Function>, pub ShowPopupWindow: Arc<Function>, pub ClosePopupWindow: Arc<Function>, pub ShowPopupMenu: Arc<Function>, pub ShowPopupMenuInternal: Arc<Function>, pub SetSelectionOffsets: Arc<Function>, pub ItemFontMetrics: Arc<Function>, pub StringToFloat: Arc<Function>, pub StringIsFloat: Arc<Function>, pub StringIsEmpty: Arc<Function>, pub StringCharacterCount: Arc<Function>, pub StringToLowercase: Arc<Function>, pub StringToUppercase: Arc<Function>, pub StringStartsWith: Arc<Function>, pub StringEndsWith: Arc<Function>, pub StringReplaceAll: Arc<Function>, pub KeysToString: Arc<Function>, pub ImplicitLayoutInfo: Arc<Function>, pub ColorRgbaStruct: Arc<Function>, pub ColorHsvaStruct: Arc<Function>, pub ColorOklchStruct: Arc<Function>, pub ColorBrighter: Arc<Function>, pub ColorDarker: Arc<Function>, pub ColorTransparentize: Arc<Function>, pub ColorWithAlpha: Arc<Function>, pub ColorMix: Arc<Function>, pub ImageSize: Arc<Function>, pub ArrayLength: Arc<Function>, pub ArrayPush: Arc<Function>, pub ArrayRemove: Arc<Function>, pub ArrayInsert: Arc<Function>, pub ArrayAny: Arc<Function>, pub ArrayAll: Arc<Function>, pub ArrayFindIndex: Arc<Function>, pub Rgb: Arc<Function>, pub Hsv: Arc<Function>, pub Oklch: Arc<Function>, pub ColorScheme: Arc<Function>, pub AccentColor: Arc<Function>, pub SupportsNativeMenuBar: Arc<Function>, pub SetupMenuBar: Arc<Function>, pub SetupSystemTrayIcon: Arc<Function>, pub MonthDayCount: Arc<Function>, pub MonthOffset: Arc<Function>, pub FormatDate: Arc<Function>, pub TextInputFocused: Arc<Function>, pub DateNow: Arc<Function>, pub ValidDate: Arc<Function>, pub ParseDate: Arc<Function>, pub SetTextInputFocused: Arc<Function>, pub ItemAbsolutePosition: Arc<Function>, pub RegisterCustomFontByPath: Arc<Function>, pub RegisterCustomFontByMemory: Arc<Function>, pub RegisterBitmapFont: Arc<Function>, pub Translate: Arc<Function>, pub Use24HourFormat: Arc<Function>, pub UpdateTimers: Arc<Function>, pub DetectOperatingSystem: Arc<Function>, pub StartTimer: Arc<Function>, pub StopTimer: Arc<Function>, pub RestartTimer: Arc<Function>, pub ParseMarkdown: Arc<Function>, pub StringToStyledText: Arc<Function>, pub ColorToStyledText: Arc<Function>, pub OpenUrl: Arc<Function>, pub MacosBringAllWindowsToFront: Arc<Function>, pub PathPointAt: Arc<Function>, pub PathAngleAt: Arc<Function>,
}

Fields§

§GetWindowScaleFactor: Arc<Function>§GetWindowDefaultFontSize: Arc<Function>§AnimationTick: Arc<Function>§Debug: Arc<Function>§Mod: Arc<Function>§Round: Arc<Function>§Ceil: Arc<Function>§Floor: Arc<Function>§Sqrt: Arc<Function>§Abs: Arc<Function>§Cos: Arc<Function>§Sin: Arc<Function>§Tan: Arc<Function>§ACos: Arc<Function>§ASin: Arc<Function>§ATan: Arc<Function>§ATan2: Arc<Function>§DecimalSeparator: Arc<Function>§DefaultWindowTitle: Arc<Function>§Log: Arc<Function>§Ln: Arc<Function>§Pow: Arc<Function>§Exp: Arc<Function>§ToFixed: Arc<Function>§ToPrecision: Arc<Function>§ToStringUnlocalized: Arc<Function>§SetFocusItem: Arc<Function>§ClearFocusItem: Arc<Function>§ShowPopupWindow: Arc<Function>§ClosePopupWindow: Arc<Function>§ShowPopupMenu: Arc<Function>§ShowPopupMenuInternal: Arc<Function>§SetSelectionOffsets: Arc<Function>§ItemFontMetrics: Arc<Function>§StringToFloat: Arc<Function>§StringIsFloat: Arc<Function>§StringIsEmpty: Arc<Function>§StringCharacterCount: Arc<Function>§StringToLowercase: Arc<Function>§StringToUppercase: Arc<Function>§StringStartsWith: Arc<Function>§StringEndsWith: Arc<Function>§StringReplaceAll: Arc<Function>§KeysToString: Arc<Function>§ImplicitLayoutInfo: Arc<Function>§ColorRgbaStruct: Arc<Function>§ColorHsvaStruct: Arc<Function>§ColorOklchStruct: Arc<Function>§ColorBrighter: Arc<Function>§ColorDarker: Arc<Function>§ColorTransparentize: Arc<Function>§ColorWithAlpha: Arc<Function>§ColorMix: Arc<Function>§ImageSize: Arc<Function>§ArrayLength: Arc<Function>§ArrayPush: Arc<Function>§ArrayRemove: Arc<Function>§ArrayInsert: Arc<Function>§ArrayAny: Arc<Function>§ArrayAll: Arc<Function>§ArrayFindIndex: Arc<Function>§Rgb: Arc<Function>§Hsv: Arc<Function>§Oklch: Arc<Function>§ColorScheme: Arc<Function>§AccentColor: Arc<Function>§SupportsNativeMenuBar: Arc<Function>§SetupMenuBar: Arc<Function>§SetupSystemTrayIcon: Arc<Function>§MonthDayCount: Arc<Function>§MonthOffset: Arc<Function>§FormatDate: Arc<Function>§TextInputFocused: Arc<Function>§DateNow: Arc<Function>§ValidDate: Arc<Function>§ParseDate: Arc<Function>§SetTextInputFocused: Arc<Function>§ItemAbsolutePosition: Arc<Function>§RegisterCustomFontByPath: Arc<Function>§RegisterCustomFontByMemory: Arc<Function>§RegisterBitmapFont: Arc<Function>§Translate: Arc<Function>§Use24HourFormat: Arc<Function>§UpdateTimers: Arc<Function>§DetectOperatingSystem: Arc<Function>§StartTimer: Arc<Function>§StopTimer: Arc<Function>§RestartTimer: Arc<Function>§ParseMarkdown: Arc<Function>§StringToStyledText: Arc<Function>§ColorToStyledText: Arc<Function>§OpenUrl: Arc<Function>§MacosBringAllWindowsToFront: Arc<Function>§PathPointAt: Arc<Function>§PathAngleAt: Arc<Function>

Implementations§

Source§

impl BuiltinFunctionTypes

Source

pub fn new() -> Self

Source

pub fn ty(&self, function: &BuiltinFunction) -> Arc<Function>

Trait Implementations§

Source§

impl Default for BuiltinFunctionTypes

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.