forge
Explore
Log in

Don't you dare go Hollow

cdcd5a2835cd4d48d9b51cce4b94fbd1a6eb8b5cIvan MolodetskikhParent: 737e99e
src/layout/workspace.rsmodified+4 -6
@@ -191,13 +191,10 @@ struct InteractiveResize<W: LayoutElement> {
191 pub enum ColumnWidth {191 pub enum ColumnWidth {
192 /// Proportion of the current view width.192 /// Proportion of the current view width.
193 Proportion(f64),193 Proportion(f64),
194- /// One of the proportion presets.
195- ///
196- /// This is separate from Proportion in order to be able to reliably cycle between preset
197- /// proportions.
198- Preset(usize),
199 /// Fixed width in logical pixels.194 /// Fixed width in logical pixels.
200 Fixed(f64),195 Fixed(f64),
196+ /// One of the preset widths.
197+ Preset(usize),
201 }198 }
202 199
203 /// Height of a window in a column.200 /// Height of a window in a column.
@@ -222,10 +219,11 @@ pub enum WindowHeight {
222 Auto { weight: f64 },219 Auto { weight: f64 },
223 /// Fixed *window* height in logical pixels.220 /// Fixed *window* height in logical pixels.
224 Fixed(f64),221 Fixed(f64),
225- /// One of the *tile* height proportion presets.222+ /// One of the preset heights (tile or window).
226 Preset(usize),223 Preset(usize),
227 }224 }
228 225
226+/// Resolved width or height in logical pixels.
229 #[derive(Debug, Clone, Copy)]227 #[derive(Debug, Clone, Copy)]
230 pub enum ResolvedSize {228 pub enum ResolvedSize {
231 /// Size of the tile including borders.229 /// Size of the tile including borders.