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)
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) -> Self
fn from(data: TextBoxNode) -> Self
Converts to this type from the input type.
source§impl From<TextBoxNode> for WidgetUnitNode
impl From<TextBoxNode> for WidgetUnitNode
source§fn from(unit: TextBoxNode) -> Self
fn from(unit: TextBoxNode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TextBoxNode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)