pub struct ElementBase {
pub margins: [i32; 4],
pub min_size: [i32; 2],
pub alignment: Alignment,
pub flags: u32,
pub color: u32,
pub cursor: i32,
pub border: Option<String>,
pub tooltip_dialog: Option<String>,
pub string_table: Option<String>,
pub tooltip: String,
}Expand description
Shared by every element.
Original: UI::ElementDescription, Runtime 0x180119390.
Fields§
§margins: [i32; 4]left, right, top, bottom
min_size: [i32; 2]The smallest size, in pixels.
alignment: AlignmentHow the element sits in the space it is given.
flags: u32The element’s flags (flags).
color: u32ARGB, multiplied into everything the element draws.
cursor: i32The mouse cursor shown over it (Element::GetMouseCursorIndex; an index into the game’s
cursors: 0 Arrow, 1 Hand, 2 Hourglass, 3 Move, 4 Query, 5 Place). Only the StandardDialog
title bar sets one (3).
border: Option<String>The element drawn behind it as a border.
tooltip_dialog: Option<String>The dialog shown as the tooltip, when the tooltip is a dialog.
string_table: Option<String>The string table the element’s own strings come from.
tooltip: StringThe tooltip text, or its key in the string table.
Trait Implementations§
Source§impl Clone for ElementBase
impl Clone for ElementBase
Source§fn clone(&self) -> ElementBase
fn clone(&self) -> ElementBase
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 moreSource§impl Debug for ElementBase
impl Debug for ElementBase
Source§impl Default for ElementBase
impl Default for ElementBase
Source§fn default() -> ElementBase
fn default() -> ElementBase
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ElementBase
impl RefUnwindSafe for ElementBase
impl Send for ElementBase
impl Sync for ElementBase
impl Unpin for ElementBase
impl UnsafeUnpin for ElementBase
impl UnwindSafe for ElementBase
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