Function oxygengine_user_interface::raui::core::widget::component::containers::content_box::content_box
source · pub fn content_box(context: WidgetContext<'_, '_>) -> WidgetNode
Expand description
A generic container for other widgets
content_box
’s serve two basic purposes: allowing you to apply transformations and clipping
to all contained widgets and giving contained widgets more control over their layout inside of
the box.
Transform & Clipping
The transformation and clipping options on the content_box
can be set by setting the
ContentBoxProps
on the component.
Child Widget Layout
With a content_box
you can get more control over the layout of it’s children by adding the
ContentBoxItemLayout
properties to any of it’s children.