pub struct DefineDynamicText {Show 24 fields
pub id: u16,
pub bounds: Rect,
pub word_wrap: bool,
pub multiline: bool,
pub password: bool,
pub readonly: bool,
pub auto_size: bool,
pub no_select: bool,
pub border: bool,
pub was_static: bool,
pub html: bool,
pub use_glyph_font: bool,
pub font_id: Option<u16>,
pub font_class: Option<String>,
pub font_size: Option<u16>,
pub color: Option<StraightSRgba8>,
pub max_length: Option<usize>,
pub align: TextAlignment,
pub margin_left: u16,
pub margin_right: u16,
pub indent: u16,
pub leading: i16,
pub variable_name: Option<String>,
pub text: Option<String>,
}
Fields§
§id: u16
§bounds: Rect
§word_wrap: bool
§multiline: bool
§password: bool
§readonly: bool
§auto_size: bool
§no_select: bool
§border: bool
§was_static: bool
§html: bool
§use_glyph_font: bool
§font_id: Option<u16>
§font_class: Option<String>
§font_size: Option<u16>
§color: Option<StraightSRgba8>
§max_length: Option<usize>
§align: TextAlignment
§margin_left: u16
§margin_right: u16
§indent: u16
§leading: i16
§variable_name: Option<String>
§text: Option<String>
Trait Implementations§
Source§impl Clone for DefineDynamicText
impl Clone for DefineDynamicText
Source§fn clone(&self) -> DefineDynamicText
fn clone(&self) -> DefineDynamicText
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 DefineDynamicText
impl Debug for DefineDynamicText
Source§impl<'de> Deserialize<'de> for DefineDynamicText
impl<'de> Deserialize<'de> for DefineDynamicText
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DefineDynamicText
impl Hash for DefineDynamicText
Source§impl Ord for DefineDynamicText
impl Ord for DefineDynamicText
Source§fn cmp(&self, other: &DefineDynamicText) -> Ordering
fn cmp(&self, other: &DefineDynamicText) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DefineDynamicText
impl PartialEq for DefineDynamicText
Source§impl PartialOrd for DefineDynamicText
impl PartialOrd for DefineDynamicText
Source§impl Serialize for DefineDynamicText
impl Serialize for DefineDynamicText
impl Eq for DefineDynamicText
impl StructuralPartialEq for DefineDynamicText
Auto Trait Implementations§
impl Freeze for DefineDynamicText
impl RefUnwindSafe for DefineDynamicText
impl Send for DefineDynamicText
impl Sync for DefineDynamicText
impl Unpin for DefineDynamicText
impl UnwindSafe for DefineDynamicText
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