Struct oxygengine_user_interface::widget::unit::text::TextBoxNode
source · pub struct TextBoxNode {
pub id: WidgetId,
pub props: Props,
pub text: String,
pub width: TextBoxSizeValue,
pub height: TextBoxSizeValue,
pub horizontal_align: TextBoxHorizontalAlign,
pub vertical_align: TextBoxVerticalAlign,
pub direction: TextBoxDirection,
pub font: TextBoxFont,
pub color: Color,
pub transform: Transform,
}
Fields§
§id: WidgetId
§props: Props
§text: String
§width: TextBoxSizeValue
§height: TextBoxSizeValue
§horizontal_align: TextBoxHorizontalAlign
§vertical_align: TextBoxVerticalAlign
§direction: TextBoxDirection
§font: TextBoxFont
§color: Color
§transform: Transform
Implementations§
source§impl TextBoxNode
impl TextBoxNode
pub fn remap_props<F>(&mut self, f: F)where F: FnMut(Props) -> Props,
Trait Implementations§
source§impl Clone for TextBoxNode
impl Clone for TextBoxNode
source§fn clone(&self) -> TextBoxNode
fn clone(&self) -> TextBoxNode
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 TextBoxNode
impl Debug for TextBoxNode
source§impl Default for TextBoxNode
impl Default for TextBoxNode
source§fn default() -> TextBoxNode
fn default() -> TextBoxNode
Returns the “default value” for a type. Read more
source§impl From<TextBoxNode> for WidgetNode
impl From<TextBoxNode> for WidgetNode
source§fn from(data: TextBoxNode) -> WidgetNode
fn from(data: TextBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<TextBoxNode> for WidgetUnitNode
impl From<TextBoxNode> for WidgetUnitNode
source§fn from(unit: TextBoxNode) -> WidgetUnitNode
fn from(unit: TextBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TextBoxNode
impl Send for TextBoxNode
impl Sync for TextBoxNode
impl Unpin for TextBoxNode
impl !UnwindSafe for TextBoxNode
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more