[−][src]Struct orbtk::Overlay
The Overlay
is used to draw its children on the top of all other widgets in the tree.
Methods
impl Overlay
[src]
pub fn attach<P>(self, property: AttachedProperty<P>) -> Overlay where
P: Debug + Component,
[src]
P: Debug + Component,
Sets or shares an attached property.
pub fn id(self, id: impl Into<String>) -> Overlay
[src]
Sets the id selector.
pub fn element(self, element: impl Into<String>) -> Overlay
[src]
Sets the element selector.
pub fn class(self, class: impl Into<String>) -> Overlay
[src]
Inserts class selector.
pub fn position(self, position: impl IntoPropertySource<Point>) -> Overlay
[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>
) -> Overlay
[src]
self,
constraint: impl IntoPropertySource<Constraint>
) -> Overlay
Sets or shares the constraint property.
pub fn vertical_alignment(
self,
vertical_alignment: impl IntoPropertySource<Alignment>
) -> Overlay
[src]
self,
vertical_alignment: impl IntoPropertySource<Alignment>
) -> Overlay
Sets or shares the vertical alignment property.
pub fn horizontal_alignment(
self,
horizontal_alignment: impl IntoPropertySource<Alignment>
) -> Overlay
[src]
self,
horizontal_alignment: impl IntoPropertySource<Alignment>
) -> Overlay
Sets or shares the horizontal alignment property.
pub fn visibility(
self,
visibility: impl IntoPropertySource<Visibility>
) -> Overlay
[src]
self,
visibility: impl IntoPropertySource<Visibility>
) -> Overlay
Sets or shares the visibility property.
pub fn margin(self, margin: impl IntoPropertySource<Thickness>) -> Overlay
[src]
Sets or shares the margin property.
pub fn enabled(self, enabled: impl IntoPropertySource<bool>) -> Overlay
[src]
Sets or shares the enabled property.
pub fn clip(self, clip: impl IntoPropertySource<bool>) -> Overlay
[src]
Sets or shares the clip property.
pub fn opacity(self, opacity: impl IntoPropertySource<f32>) -> Overlay
[src]
pub fn width(self, width: f64) -> Overlay
[src]
Inserts a new width.
pub fn height(self, height: f64) -> Overlay
[src]
Inserts a new height.
pub fn size(self, width: f64, height: f64) -> Overlay
[src]
Inserts a new size.
pub fn min_width(self, min_width: f64) -> Overlay
[src]
Inserts a new min_width.
pub fn min_height(self, min_height: f64) -> Overlay
[src]
Inserts a new min_height.
pub fn min_size(self, min_width: f64, min_height: f64) -> Overlay
[src]
Inserts a new min_size.
pub fn max_width(self, max_width: f64) -> Overlay
[src]
Inserts a new max_width.
pub fn max_height(self, max_height: f64) -> Overlay
[src]
Inserts a new max_height.
pub fn max_size(self, max_width: f64, max_height: f64) -> Overlay
[src]
Inserts a new min_size.
pub fn name<P>(self, name: P) -> Overlay where
P: Into<String>,
[src]
P: Into<String>,
Sets the debug name of the widget.
Trait Implementations
impl Default for Overlay
[src]
impl Template for Overlay
[src]
fn template(self, Entity, &mut BuildContext) -> Overlay
[src]
fn layout(&self) -> Box<dyn Layout + 'static>
[src]
fn render_object(&self) -> Box<dyn RenderObject + 'static>
[src]
impl Widget for Overlay
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Overlay
impl !Send for Overlay
impl !Sync for Overlay
impl Unpin for Overlay
impl !UnwindSafe for Overlay
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> Component for E where
E: Any,
[src]
E: Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,