Skip to content

Commit

Permalink
pub node
Browse files Browse the repository at this point in the history
  • Loading branch information
robtfm committed Oct 17, 2024
1 parent 985cbb2 commit 5cd52a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/bevy_ui/src/ui_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ use thiserror::Error;
pub struct Node {
/// The order of the node in the UI layout.
/// Nodes with a higher stack index are drawn on top of and receive interactions before nodes with lower stack indices.
pub(crate) stack_index: u32,
pub stack_index: u32,
/// The size of the node as width and height in logical pixels
///
/// automatically calculated by [`super::layout::ui_layout_system`]
pub(crate) calculated_size: Vec2,
pub calculated_size: Vec2,
/// The width of this node's outline.
/// If this value is `Auto`, negative or `0.` then no outline will be rendered.
///
/// Automatically calculated by [`super::layout::resolve_outlines_system`].
pub(crate) outline_width: f32,
pub outline_width: f32,
/// The amount of space between the outline and the edge of the node.
pub(crate) outline_offset: f32,
pub outline_offset: f32,
/// The unrounded size of the node as width and height in logical pixels.
///
/// Automatically calculated by [`super::layout::ui_layout_system`].
pub(crate) unrounded_size: Vec2,
pub unrounded_size: Vec2,
}

impl Node {
Expand Down

0 comments on commit 5cd52a4

Please sign in to comment.