relm4/factory/
positions.rs

1//! Position types for various widgets.
2
3/// Storing information about where new widgets can be placed
4/// inside a [`gtk::Grid`].
5#[derive(Debug)]
6pub struct GridPosition {
7    /// The number of the column.
8    pub column: i32,
9    /// The number of the row.
10    pub row: i32,
11    /// The amount of columns the widget should take.
12    pub width: i32,
13    /// The amount of rows the widget should take.
14    pub height: i32,
15}
16
17#[derive(Debug)]
18/// Position used for [`gtk::Fixed`].
19pub struct FixedPosition {
20    /// Position on the x-axis.
21    pub x: f64,
22    /// Position on the y-axis.
23    pub y: f64,
24}