pub fn node_content_container<'a, Message>(
content: impl Into<Element<'a, Message, Theme, Renderer>>,
corner_radius: f32,
border_width: f32,
position: ContentPosition,
) -> Container<'a, Message, Theme, Renderer>where
Message: Clone + 'a,Expand description
Creates a container for node content with proper rounded corners.
Automatically calculates the inner radius and padding based on the node’s geometry to ensure content fits precisely within the clipped area.
§Arguments
content- The content to wrapcorner_radius- The node’s corner radius (typically 5.0)border_width- The node’s border width (typically 1.0)position- Which corners should be rounded
§Example
ⓘ
let body = node_content_container(
my_widgets,
5.0,
1.0,
ContentPosition::Bottom,
);