[][src]Struct orbtk::widgets::Window

pub struct Window { /* fields omitted */ }

The Window widget provides access to the properties of an application window. It also contains global properties like keyboard modifier and focused widget.

style: window

Implementations

impl Window[src]

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

Sets the id selector.

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

Sets the style selector (replaces the old selector property).

pub fn position(self, position: impl IntoPropertySource<Point>) -> Window[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>
) -> Window
[src]

Sets or shares the constraint property.

pub fn on_changed_filter(
    self,
    filter: impl IntoPropertySource<Filter>
) -> Window
[src]

Sets or shares the filter for the on_changed property callback.

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

Sets or shares the vertical alignment property.

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

Sets or shares the horizontal alignment property.

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

👎 Deprecated:

Use v_align instead

Sets or shares the vertical alignment property.

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

👎 Deprecated:

Use h_align instead

Sets or shares the horizontal alignment property.

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

Sets or shares the visibility property.

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

Sets or shares the margin property.

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

Sets or shares the enabled property.

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

Sets or shares the clip property.

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

Sets or shares the opacity property.

pub fn width(self, width: impl Into<f64>) -> Window[src]

Inserts a new width.

pub fn height(self, height: impl Into<f64>) -> Window[src]

Inserts a new height.

pub fn size(self, width: impl Into<f64>, height: impl Into<f64>) -> Window[src]

Inserts a new size.

pub fn min_width(self, min_width: impl Into<f64>) -> Window[src]

Inserts a new min_width.

pub fn min_height(self, min_height: impl Into<f64>) -> Window[src]

Inserts a new min_height.

pub fn min_size(
    self,
    min_width: impl Into<f64>,
    min_height: impl Into<f64>
) -> Window
[src]

Inserts a new min_size.

pub fn max_width(self, max_width: impl Into<f64>) -> Window[src]

Inserts a new max_width.

pub fn max_height(self, max_height: impl Into<f64>) -> Window[src]

Inserts a new max_height.

pub fn max_size(
    self,
    max_width: impl Into<f64>,
    max_height: impl Into<f64>
) -> Window
[src]

Inserts a new min_size.

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

Sets the debug name of the widget.

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

Sets or shares the background property.

pub fn title<P>(self, title: P) -> Window where
    P: IntoPropertySource<String>, 
[src]

Sets or shares the title property.

pub fn resizeable<P>(self, resizeable: P) -> Window where
    P: IntoPropertySource<bool>, 
[src]

Sets or shares the resizeable property.

pub fn always_on_top<P>(self, always_on_top: P) -> Window where
    P: IntoPropertySource<bool>, 
[src]

Sets or shares the property if this window should always be on top.

pub fn borderless<P>(self, borderless: P) -> Window where
    P: IntoPropertySource<bool>, 
[src]

Sets or shares the flag if the window is borderless.

pub fn active<P>(self, active: P) -> Window where
    P: IntoPropertySource<bool>, 
[src]

Sets or shares a value that describes if the current window is active.

pub fn dirty_widgets<P>(self, dirty_widgets: P) -> Window where
    P: IntoPropertySource<Vec<Entity>>, 
[src]

Internal property to handle dirty widgets.

impl Window[src]

pub fn get(ctx: WidgetContainer<'a>) -> WindowCtx<'a>[src]

Gets a widget context that wraps the given widgets an provides access to the its properties.

Trait Implementations

impl ChangedHandler for Window[src]

impl Default for Window[src]

impl Template for Window[src]

impl Widget for Window[src]

fn new() -> Window[src]

Creates a new widget.

Auto Trait Implementations

impl !RefUnwindSafe for Window

impl !Send for Window

impl !Sync for Window

impl Unpin for Window

impl !UnwindSafe for Window

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>,