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
sourceimpl TextBoxNode
impl TextBoxNode
pub fn remap_props<F>(&mut self, f: F)where
F: FnMut(Props) -> Props,
Trait Implementations
sourceimpl Clone for TextBoxNode
impl Clone for TextBoxNode
sourcefn clone(&self) -> TextBoxNode
fn clone(&self) -> TextBoxNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TextBoxNode
impl Debug for TextBoxNode
sourceimpl Default for TextBoxNode
impl Default for TextBoxNode
sourcefn default() -> TextBoxNode
fn default() -> TextBoxNode
Returns the “default value” for a type. Read more
sourceimpl From<TextBoxNode> for WidgetNode
impl From<TextBoxNode> for WidgetNode
sourcefn from(data: TextBoxNode) -> WidgetNode
fn from(data: TextBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<TextBoxNode> for WidgetUnitNode
impl From<TextBoxNode> for WidgetUnitNode
sourcefn from(unit: TextBoxNode) -> WidgetUnitNode
fn from(unit: TextBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl TryFrom<TextBoxNode> for TextBox
impl TryFrom<TextBoxNode> for TextBox
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more