Struct conrod::CommonBuilder
[−]
[src]
pub struct CommonBuilder { pub maybe_width: Option<Scalar>, pub maybe_height: Option<Scalar>, pub maybe_position: Option<Position>, pub maybe_h_align: Option<HorizontalAlign>, pub maybe_v_align: Option<VerticalAlign>, pub maybe_depth: Option<Depth>, pub maybe_parent_id: MaybeParent, pub is_floating: bool, pub scrolling: Scrolling, }
A struct containing builder data common to all Widget types. This type allows us to do a blanket impl of Positionable and Sizeable for T: Widget.
Fields
maybe_width: Option<Scalar>
The width of a Widget.
maybe_height: Option<Scalar>
The height of a Widget.
maybe_position: Option<Position>
The position of a Widget.
maybe_h_align: Option<HorizontalAlign>
The horizontal alignment of a Widget.
maybe_v_align: Option<VerticalAlign>
The vertical alignment of a Widget.
maybe_depth: Option<Depth>
The rendering Depth of the Widget.
maybe_parent_id: MaybeParent
The parent widget of the Widget.
is_floating: bool
Whether or not the Widget is a "floating" Widget.
scrolling: Scrolling
Builder data for scrollable widgets.
Methods
impl CommonBuilder
[src]
fn new() -> CommonBuilder
Construct an empty, initialised CommonBuilder.
Trait Implementations
impl Decodable for CommonBuilder
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<CommonBuilder, __D::Error>
impl Encodable for CommonBuilder
[src]
impl Debug for CommonBuilder
[src]
impl Copy for CommonBuilder
[src]
impl Clone for CommonBuilder
[src]
fn clone(&self) -> CommonBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more