oa::ui::Ui
GPU-retained UI compositor. Borrows one Engine for its lifetime; must be closed explicitly before the engine or any resource it references is released.
Declaration
pub struct Ui<'engine> { /* private fields */ }Public Rust declaration.
Public Methods
pub fn tab_bar( &mut self, _id: &str, rect: PixelRect, items: &[UiTabItem], state_out: &mut UiTabBarState, ) -> UiTabBarResultpub fn tree_row( &mut self, id: &str, rect: PixelRect, label: &str, config: UiTreeRowConfig, ) -> UiTreeRowResultpub fn plot_line_bindless( &mut self, values_idx: u32, count: u32, y_min: f32, y_max: f32, color: Color, )pub fn plot_line_at( &mut self, values: &[f32], rect: PixelRect, y_min: f32, y_max: f32, color: Color, line_width: f32, ) -> Result<()>pub fn line_at( &mut self, from: [f32; 2], to: [f32; 2], color: Color, thickness: f32, bounds: PixelRect, ) -> Result<()>pub fn text_at( &mut self, text: &str, origin: [f32; 2], config: TextLayoutConfig, color: Color, clip: PixelRect, ) -> Result<()>pub fn rect_outline_raw( &mut self, rect: PixelRect, color: Color, thickness: u32, clip: PixelRect, )pub fn timeline( &mut self, id: &str, rect: PixelRect, fraction: &mut f32, out_active: Option<&mut bool>, ) -> boolpub fn waveform_timeline( &mut self, id: &str, rect: PixelRect, envelope: &[f32], fraction: &mut f32, ) -> boolpub fn begin_scroll_panel( &mut self, id: &str, rect: PixelRect, content_height: i32, config: UiScrollConfig, ) -> UiScrollRegionpub fn virtual_rows( &mut self, item_count: i32, row_height: i32, row_gap: i32, overscan_rows: i32, ) -> UiVirtualRangepub fn split_pane( &mut self, id: &str, rect: PixelRect, ratio: &mut f32, config: UiSplitConfig, ) -> UiSplitRegionpub fn property_row( &mut self, _id: &str, rect: PixelRect, label: &str, value: &str, config: UiPropertyRowConfig, ) -> UiPropertyRegionpub fn dropdown( &mut self, label: &str, items: &[&str], selected: &mut i32, _config: UiDropdownConfig, ) -> boolpub fn heatmap_inline( &mut self, _label: &str, data: &[f32], config: UiHeatmapConfig, ) -> Result<()>pub fn icon_button( &mut self, id: &str, rect: PixelRect, icon: UiIcon, enabled: bool, style_kind: UiIconButtonStyle, ) -> boolpub fn chevron_button( &mut self, id: &str, rect: PixelRect, direction: UiChevronDirection, enabled: bool, ) -> boolpub fn text_button( &mut self, id: &str, rect: PixelRect, text: &str, text_color: Color, enabled: bool, ) -> boolpub fn image_plane( &mut self, texture: &Texture, channel: u32, dst_x: i32, dst_y: i32, ) -> Result<()>pub fn plot_line_xy_at( &mut self, x: &[f32], y: &[f32], rect: PixelRect, y_min: f32, y_max: f32, color: Color, line_width: f32, ) -> Result<()>pub fn plot_line_ring_at( &mut self, data: &[f32], offset: usize, rect: PixelRect, y_min: f32, y_max: f32, color: Color, line_width: f32, ) -> Result<()>pub fn rect_outlines( &mut self, rects: &[PixelRect], clip: PixelRect, color: Color, thickness: u32, )Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
Initialise the UI layer. Creates pipelines and the compose image. width and height should match the presentation surface extent.
Initialise the UI layer. Creates pipelines and the compose image. width and height should match the presentation surface extent.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.