[][src]Trait gtk::OverlayExt

pub trait OverlayExt: 'static {
    fn add_overlay<P: IsA<Widget>>(&self, widget: &P);
fn get_overlay_pass_through<P: IsA<Widget>>(&self, widget: &P) -> bool;
fn reorder_overlay<P: IsA<Widget>>(&self, child: &P, index_: i32);
fn set_overlay_pass_through<P: IsA<Widget>>(
        &self,
        widget: &P,
        pass_through: bool
    );
fn get_child_index<T: IsA<Widget>>(&self, item: &T) -> i32;
fn set_child_index<T: IsA<Widget>>(&self, item: &T, index: i32); }

Trait containing all Overlay methods.

Implementors

Overlay

Required methods

fn add_overlay<P: IsA<Widget>>(&self, widget: &P)

Adds widget to self.

The widget will be stacked on top of the main widget added with ContainerExt::add.

The position at which widget is placed is determined from its Widget:halign and Widget:valign properties.

widget

a Widget to be added to the container

fn get_overlay_pass_through<P: IsA<Widget>>(&self, widget: &P) -> bool

Convenience function to get the value of the Overlay:pass-through child property for widget.

Feature: v3_18

widget

an overlay child of Overlay

Returns

whether the widget is a pass through child.

fn reorder_overlay<P: IsA<Widget>>(&self, child: &P, index_: i32)

Moves child to a new index in the list of self children. The list contains overlays in the order that these were added to self by default. See also Overlay:index.

A widget’s index in the self children list determines which order the children are drawn if they overlap. The first child is drawn at the bottom. It also affects the default focus chain order.

Feature: v3_18

child

the overlaid Widget to move

index_

the new index for child in the list of overlay children of self, starting from 0. If negative, indicates the end of the list

fn set_overlay_pass_through<P: IsA<Widget>>(
    &self,
    widget: &P,
    pass_through: bool
)

Convenience function to set the value of the Overlay:pass-through child property for widget.

Feature: v3_18

widget

an overlay child of Overlay

pass_through

whether the child should pass the input through

fn get_child_index<T: IsA<Widget>>(&self, item: &T) -> i32

fn set_child_index<T: IsA<Widget>>(&self, item: &T, index: i32)

Loading content...

Implementors

impl<O: IsA<Overlay>> OverlayExt for O[src]

Loading content...