Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UPanel and UPanelWindow

UPanel

File: src/widget/panel.rs

Basic fields:

  • width and height limits
  • background styling
  • panel frame behavior

Its role is to provide a ready-to-use panel container.

UPanelWindow

UPanelWindow adds border and corner resize behavior on top of UPanel.

Fields:

  • min_width
  • min_height
  • border_hit_thickness

Current Behavior

  • eight resize handles: N, S, E, W, NE, NW, SE, SW
  • resize only, no drag-to-move behavior yet
  • cursor icons only change on active resize handles
  • the panel is converted to Absolute + Px on the first resize for predictable behavior

Live Example

  • use cargo run --example widgets_containers for a resizable UPanelWindow and a scrollable companion viewport

Historical Example

For a current panel-window scene, run cargo run --example widgets_containers.