Skip to content

Commit

Permalink
might revert this later
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 11, 2024
1 parent d584f11 commit c9f0123
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/torin/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ impl AreaModel for Area {
self.origin.y += offset_y.get();
}

#[inline(always)]
fn align_content(
&mut self,
available_area: &Area,
Expand Down Expand Up @@ -83,6 +84,7 @@ impl AreaModel for Area {
}
}

#[inline(always)]
pub fn get_align_axis(
direction: &DirectionMode,
alignment_direction: AlignmentDirection,
Expand Down
2 changes: 2 additions & 0 deletions crates/torin/src/measure_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ impl<'a> MeasureMode<'a> {
/// The intended usage is to call this after the first measurement and before the second,
/// this way the second measurement will align the content relatively to the parent element instead
/// of overflowing due to being aligned relatively to the upper parent element
#[inline(always)]
pub fn fit_bounds_when_unspecified_and_aligned(
&mut self,
parent_node: &Node,
Expand Down Expand Up @@ -128,6 +129,7 @@ impl<'a> MeasureMode<'a> {
}

/// Stack a Node into another Node
#[inline(always)]
pub fn stack_into_node(
&mut self,
parent_node: &Node,
Expand Down

0 comments on commit c9f0123

Please sign in to comment.