Implement pure version of PaneGrid widget
This commit is contained in:
parent
9f27969d14
commit
6dd187ff08
13 changed files with 2107 additions and 417 deletions
|
|
@ -10,7 +10,9 @@ pub enum Axis {
|
|||
}
|
||||
|
||||
impl Axis {
|
||||
pub(super) fn split(
|
||||
/// Splits the provided [`Rectangle`] on the current [`Axis`] with the
|
||||
/// given `ratio` and `spacing`.
|
||||
pub fn split(
|
||||
&self,
|
||||
rectangle: &Rectangle,
|
||||
ratio: f32,
|
||||
|
|
@ -54,7 +56,8 @@ impl Axis {
|
|||
}
|
||||
}
|
||||
|
||||
pub(super) fn split_line_bounds(
|
||||
/// Calculates the bounds of the split line in a [`Rectangle`] region.
|
||||
pub fn split_line_bounds(
|
||||
&self,
|
||||
rectangle: Rectangle,
|
||||
ratio: f32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue