layout: Mark some things as pub
Browse files at this commit1706a46b2b89178e98d74eea55965b60f70b62cbParent: 3789d851 changed file +11 -11
- src/layout/mod.rs +11 -11
src/layout/mod.rsmodified+11 -11
| @@ -56,10 +56,10 @@ use crate::niri_render_elements; | |||
| 56 | use crate::render_helpers::NiriRenderer; | 56 | use crate::render_helpers::NiriRenderer; |
| 57 | use crate::utils::output_size; | 57 | use crate::utils::output_size; |
| 58 | 58 | ||
| 59 | -mod focus_ring; | 59 | +pub mod focus_ring; |
| 60 | -mod monitor; | 60 | +pub mod monitor; |
| 61 | -mod tile; | 61 | +pub mod tile; |
| 62 | -mod workspace; | 62 | +pub mod workspace; |
| 63 | 63 | ||
| 64 | niri_render_elements! { | 64 | niri_render_elements! { |
| 65 | LayoutElementRenderElement => { | 65 | LayoutElementRenderElement => { |
| @@ -146,16 +146,16 @@ enum MonitorSet<W: LayoutElement> { | |||
| 146 | #[derive(Debug, PartialEq)] | 146 | #[derive(Debug, PartialEq)] |
| 147 | pub struct Options { | 147 | pub struct Options { |
| 148 | /// Padding around windows in logical pixels. | 148 | /// Padding around windows in logical pixels. |
| 149 | - gaps: i32, | 149 | + pub gaps: i32, |
| 150 | /// Extra padding around the working area in logical pixels. | 150 | /// Extra padding around the working area in logical pixels. |
| 151 | - struts: Struts, | 151 | + pub struts: Struts, |
| 152 | - focus_ring: niri_config::FocusRing, | 152 | + pub focus_ring: niri_config::FocusRing, |
| 153 | - border: niri_config::FocusRing, | 153 | + pub border: niri_config::FocusRing, |
| 154 | - center_focused_column: CenterFocusedColumn, | 154 | + pub center_focused_column: CenterFocusedColumn, |
| 155 | /// Column widths that `toggle_width()` switches between. | 155 | /// Column widths that `toggle_width()` switches between. |
| 156 | - preset_widths: Vec<ColumnWidth>, | 156 | + pub preset_widths: Vec<ColumnWidth>, |
| 157 | /// Initial width for new columns. | 157 | /// Initial width for new columns. |
| 158 | - default_width: Option<ColumnWidth>, | 158 | + pub default_width: Option<ColumnWidth>, |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | impl Default for Options { | 161 | impl Default for Options { |