[][src]Struct orbtk_widgets::Cursor

pub struct Cursor { /* fields omitted */ }

The Cursor widget represents a text cursor used to mark text.

CSS element: cursor

Methods

impl Cursor[src]

pub fn attach<P: Component + Debug>(self, property: AttachedProperty<P>) -> Self[src]

Sets or shares an attached property.

pub fn id(self, id: impl Into<String>) -> Self[src]

Sets the id selector.

pub fn element(self, element: impl Into<String>) -> Self[src]

Sets the element selector.

pub fn class(self, class: impl Into<String>) -> Self[src]

Inserts class selector.

pub fn position(self, position: impl IntoPropertySource<Point>) -> Self[src]

Sets or shares the position of the widget. (Be careful the position could be adjusted by layouts).

pub fn constraint(self, constraint: impl IntoPropertySource<Constraint>) -> Self[src]

Sets or shares the constraint property.

pub fn vertical_alignment(
    self,
    vertical_alignment: impl IntoPropertySource<Alignment>
) -> Self
[src]

Sets or shares the vertical alignment property.

pub fn horizontal_alignment(
    self,
    horizontal_alignment: impl IntoPropertySource<Alignment>
) -> Self
[src]

Sets or shares the horizontal alignment property.

pub fn visibility(self, visibility: impl IntoPropertySource<Visibility>) -> Self[src]

Sets or shares the visibility property.

pub fn margin(self, margin: impl IntoPropertySource<Thickness>) -> Self[src]

Sets or shares the margin property.

pub fn enabled(self, enabled: impl IntoPropertySource<bool>) -> Self[src]

Sets or shares the enabled property.

pub fn clip(self, clip: impl IntoPropertySource<bool>) -> Self[src]

Sets or shares the clip property.

pub fn opacity(self, opacity: impl IntoPropertySource<f32>) -> Self[src]

pub fn width(self, width: f64) -> Self[src]

Inserts a new width.

pub fn height(self, height: f64) -> Self[src]

Inserts a new height.

pub fn size(self, width: f64, height: f64) -> Self[src]

Inserts a new size.

pub fn min_width(self, min_width: f64) -> Self[src]

Inserts a new min_width.

pub fn min_height(self, min_height: f64) -> Self[src]

Inserts a new min_height.

pub fn min_size(self, min_width: f64, min_height: f64) -> Self[src]

Inserts a new min_size.

pub fn max_width(self, max_width: f64) -> Self[src]

Inserts a new max_width.

pub fn max_height(self, max_height: f64) -> Self[src]

Inserts a new max_height.

pub fn max_size(self, max_width: f64, max_height: f64) -> Self[src]

Inserts a new min_size.

pub fn name<P: Into<String>>(self, name: P) -> Self[src]

Sets the debug name of the widget.

pub fn text_selection<P: IntoPropertySource<TextSelection>>(
    self,
    text_selection: P
) -> Self
[src]

Sets or shares the text selection property.

pub fn background<P: IntoPropertySource<Brush>>(self, background: P) -> Self[src]

Sets or shares the background property.

pub fn text_block<P: IntoPropertySource<u32>>(self, text_block: P) -> Self[src]

Sets or shares the id of the text block reference.

pub fn focused<P: IntoPropertySource<bool>>(self, focused: P) -> Self[src]

Sets or shares the focused property.

pub fn expanded<P: IntoPropertySource<bool>>(self, expanded: P) -> Self[src]

Sets or shares the expanded property.

Trait Implementations

impl Default for Cursor[src]

impl Template for Cursor[src]

impl Widget for Cursor[src]

Auto Trait Implementations

impl !RefUnwindSafe for Cursor

impl !Send for Cursor

impl !Sync for Cursor

impl Unpin for Cursor

impl !UnwindSafe for Cursor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Component for E where
    E: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,