relm4::factory::widgets::traits

Trait Position

source
pub trait Position<Pos, Index> {
    // Required method
    fn position(&self, index: &Index) -> Pos;
}
Expand description

Returns the position of an element inside a container like gtk::Grid where the position isn’t clearly defined by the index.

Required Methods§

source

fn position(&self, index: &Index) -> Pos

Returns the position.

This function can be called very often if widgets are moved a lot, so it should be cheap to call.

Implementors§

source§

impl<C, I> Position<(), I> for C