pub struct LuaFontPrototype;Expand description
Prototype of a font.
Implementations§
Source§impl LuaFontPrototype
impl LuaFontPrototype
pub fn border(&self) -> bool
Sourcepub fn border_color(&self) -> Color
pub fn border_color(&self) -> Color
The border color, if any.
pub fn filtered(&self) -> bool
pub fn from(&self) -> &str
Sourcepub fn object_name(&self) -> &str
pub fn object_name(&self) -> &str
The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
pub fn size(&self) -> i32
pub fn spacing(&self) -> f32
Sourcepub fn valid(&self) -> bool
pub fn valid(&self) -> bool
Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
Trait Implementations§
Source§impl Clone for LuaFontPrototype
impl Clone for LuaFontPrototype
Source§fn clone(&self) -> LuaFontPrototype
fn clone(&self) -> LuaFontPrototype
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LuaFontPrototype
Source§impl Debug for LuaFontPrototype
impl Debug for LuaFontPrototype
Source§impl Default for LuaFontPrototype
impl Default for LuaFontPrototype
Source§fn default() -> LuaFontPrototype
fn default() -> LuaFontPrototype
Returns the “default value” for a type. Read more
impl Eq for LuaFontPrototype
Source§impl From<LuaFontPrototype> for LuaAny
impl From<LuaFontPrototype> for LuaAny
Source§fn from(_: LuaFontPrototype) -> Self
fn from(_: LuaFontPrototype) -> Self
Converts to this type from the input type.
impl LuaObject for LuaFontPrototype
Source§impl PartialEq for LuaFontPrototype
impl PartialEq for LuaFontPrototype
impl StructuralPartialEq for LuaFontPrototype
Auto Trait Implementations§
impl Freeze for LuaFontPrototype
impl RefUnwindSafe for LuaFontPrototype
impl Send for LuaFontPrototype
impl Sync for LuaFontPrototype
impl Unpin for LuaFontPrototype
impl UnsafeUnpin for LuaFontPrototype
impl UnwindSafe for LuaFontPrototype
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