Trait WidgetProps

Source
pub trait WidgetProps {
Show 15 methods // Required methods fn with_pos(self, x: i32, y: i32) -> Self where Self: Sized; fn with_size(self, width: i32, height: i32) -> Self where Self: Sized; fn with_label(self, title: &str) -> Self where Self: Sized; fn with_align(self, align: Align) -> Self where Self: Sized; fn with_type<T: WidgetType>(self, typ: T) -> Self where Self: Sized; fn below_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self where Self: Sized; fn above_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self where Self: Sized; fn right_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self where Self: Sized; fn left_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self where Self: Sized; fn center_of<W: WidgetExt>(self, w: &W) -> Self where Self: Sized; fn center_x<W: WidgetExt>(self, w: &W) -> Self where Self: Sized; fn center_y<W: WidgetExt>(self, w: &W) -> Self where Self: Sized; fn center_of_parent(self) -> Self where Self: Sized; fn size_of<W: WidgetExt>(self, w: &W) -> Self where Self: Sized; fn size_of_parent(self) -> Self where Self: Sized;
}
Expand description

Builder pattern helper

Required Methods§

Source

fn with_pos(self, x: i32, y: i32) -> Self
where Self: Sized,

Initialize to a position x, y

Source

fn with_size(self, width: i32, height: i32) -> Self
where Self: Sized,

Initialize to size width, height

Source

fn with_label(self, title: &str) -> Self
where Self: Sized,

Initialize with a label

Source

fn with_align(self, align: Align) -> Self
where Self: Sized,

Initialize with alignment

Source

fn with_type<T: WidgetType>(self, typ: T) -> Self
where Self: Sized,

Initialize with type

Source

fn below_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self
where Self: Sized,

Initialize at bottom of another widget

Source

fn above_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self
where Self: Sized,

Initialize above of another widget

Source

fn right_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self
where Self: Sized,

Initialize right of another widget

Source

fn left_of<W: WidgetExt>(self, wid: &W, padding: i32) -> Self
where Self: Sized,

Initialize left of another widget

Source

fn center_of<W: WidgetExt>(self, w: &W) -> Self
where Self: Sized,

Initialize center of another widget

Source

fn center_x<W: WidgetExt>(self, w: &W) -> Self
where Self: Sized,

Initialize center of another widget on the x axis

Source

fn center_y<W: WidgetExt>(self, w: &W) -> Self
where Self: Sized,

Initialize center of another widget on the y axis

Source

fn center_of_parent(self) -> Self
where Self: Sized,

Initialize center of parent

Source

fn size_of<W: WidgetExt>(self, w: &W) -> Self
where Self: Sized,

Initialize to the size of another widget

Source

fn size_of_parent(self) -> Self
where Self: Sized,

Initialize to the size of the parent

Implementors§

Source§

impl WidgetProps for Browser

Source§

impl WidgetProps for CheckBrowser

Source§

impl WidgetProps for FileBrowser

Source§

impl WidgetProps for HoldBrowser

Source§

impl WidgetProps for MultiBrowser

Source§

impl WidgetProps for SelectBrowser

Source§

impl WidgetProps for Button

Source§

impl WidgetProps for CheckButton

Source§

impl WidgetProps for LightButton

Source§

impl WidgetProps for RadioButton

Source§

impl WidgetProps for RadioLightButton

Source§

impl WidgetProps for RadioRoundButton

Source§

impl WidgetProps for RepeatButton

Source§

impl WidgetProps for ReturnButton

Source§

impl WidgetProps for RoundButton

Source§

impl WidgetProps for ShortcutButton

Source§

impl WidgetProps for ToggleButton

Source§

impl WidgetProps for Frame

Source§

impl WidgetProps for ColorChooser

Source§

impl WidgetProps for Flex

Source§

impl WidgetProps for Grid

Source§

impl WidgetProps for Group

Source§

impl WidgetProps for Pack

Source§

impl WidgetProps for Scroll

Source§

impl WidgetProps for Tabs

Source§

impl WidgetProps for Tile

Source§

impl WidgetProps for Wizard

Source§

impl WidgetProps for FileInput

Source§

impl WidgetProps for FloatInput

Source§

impl WidgetProps for Input

Source§

impl WidgetProps for IntInput

Source§

impl WidgetProps for MultilineInput

Source§

impl WidgetProps for SecretInput

Source§

impl WidgetProps for Choice

Source§

impl WidgetProps for MenuBar

Source§

impl WidgetProps for MenuButton

Source§

impl WidgetProps for SysMenuBar

Source§

impl WidgetProps for Chart

Source§

impl WidgetProps for Clock

Source§

impl WidgetProps for HelpView

Source§

impl WidgetProps for InputChoice

Source§

impl WidgetProps for Progress

Source§

impl WidgetProps for Spinner

Source§

impl WidgetProps for MultilineOutput

Source§

impl WidgetProps for Output

Source§

impl WidgetProps for Table

Source§

impl WidgetProps for TableRow

Source§

impl WidgetProps for Terminal

Source§

impl WidgetProps for TextDisplay

Source§

impl WidgetProps for TextEditor

Source§

impl WidgetProps for Tree

Source§

impl WidgetProps for Adjuster

Source§

impl WidgetProps for Counter

Source§

impl WidgetProps for Dial

Source§

impl WidgetProps for FillDial

Source§

impl WidgetProps for FillSlider

Source§

impl WidgetProps for HorFillSlider

Source§

impl WidgetProps for HorNiceSlider

Source§

impl WidgetProps for HorSlider

Source§

impl WidgetProps for HorValueSlider

Source§

impl WidgetProps for LineDial

Source§

impl WidgetProps for NiceSlider

Source§

impl WidgetProps for Roller

Source§

impl WidgetProps for Scrollbar

Source§

impl WidgetProps for Slider

Source§

impl WidgetProps for ValueInput

Source§

impl WidgetProps for ValueOutput

Source§

impl WidgetProps for ValueSlider

Source§

impl WidgetProps for Widget

Source§

impl WidgetProps for DoubleWindow

Source§

impl WidgetProps for GlWidgetWindow

Source§

impl WidgetProps for GlutWindow

Source§

impl WidgetProps for MenuWindow

Source§

impl WidgetProps for OverlayWindow

Source§

impl WidgetProps for SingleWindow