[−][src]Struct orbtk::primitives::TextWidget
Fields
rect: Cell<Rect>
selector: CloneCell<Selector>
text: CloneCell<String>
Methods
impl TextWidget
[src]
pub fn new() -> Arc<Self>
[src]
pub fn text<S: Into<String>>(&self, text: S) -> &Self
[src]
pub fn inner_text(&self) -> &CloneCell<String>
[src]
Trait Implementations
impl Place for TextWidget
[src]
fn position(&self, x: i32, y: i32) -> &Self
[src]
fn size(&self, width: u32, height: u32) -> &Self
[src]
fn placement(
&self,
vertical_placement: VerticalPlacement,
horizontal_placement: HorizontalPlacement
) -> &Self
[src]
&self,
vertical_placement: VerticalPlacement,
horizontal_placement: HorizontalPlacement
) -> &Self
impl Style for TextWidget
[src]
fn selector(&self) -> &CloneCell<Selector>
[src]
fn with_class<S: Into<String>>(&self, class: S) -> &Self
[src]
fn without_class<S: Into<String>>(&self, class: S) -> &Self
[src]
fn with_pseudo_class<S: Into<String>>(&self, pseudo_class: S) -> &Self
[src]
fn without_pseudo_class<S: Into<String>>(&self, pseudo_class: S) -> &Self
[src]
impl Widget for TextWidget
[src]
fn name(&self) -> &str
[src]
fn rect(&self) -> &Cell<Rect>
[src]
fn vertical_placement(&self) -> &Cell<VerticalPlacement>
[src]
fn horizontal_placement(&self) -> &Cell<HorizontalPlacement>
[src]
fn margin(&self) -> &Cell<Thickness>
[src]
fn local_position(&self) -> &Cell<Point>
[src]
fn draw(&self, renderer: &mut dyn Renderer, _focused: bool, theme: &Theme)
[src]
fn event(
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_caught: &mut bool
) -> bool
[src]
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_caught: &mut bool
) -> bool
fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>>
[src]
fn preview_event(
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_handled: bool
) -> bool
[src]
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_handled: bool
) -> bool
fn add(&self, widget: Arc<dyn Widget>)
[src]
fn update(&self)
[src]
fn arrange(&self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TextWidget
impl !Send for TextWidget
impl !Sync for TextWidget
impl Unpin for TextWidget
impl !UnwindSafe for TextWidget
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,