Enum conrod_core::widget::MaybeParent [−][src]
pub enum MaybeParent { None, Some(Id), Unspecified, }
Expand description
The builder argument for the Widget’s parent.
Variants
The user specified the widget should not have any parents, so the Root will be used.
Some(Id)
The user gave a specific parent widget.
No parent widget was specified, so we will assume they want the last parent.
Implementations
Convert the MaybeParent into an Option
If Unspecified
, check the positioning to retrieve the Id from there.
If None
, the Ui
’s window
widget will be used.
Note: This method does not check whether or not using the window
widget as the parent
would cause a cycle. If it is important that the inferred parent should not cause a cycle,
use get
instead.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MaybeParent
impl Send for MaybeParent
impl Sync for MaybeParent
impl Unpin for MaybeParent
impl UnwindSafe for MaybeParent
Blanket Implementations
Mutably borrows from an owned value. Read more