oa::ui::UiTabItem

A single tab entry passed to crate::ui::Ui::tab_bar. Donor: oa::UiTabItem.

StRust public API

Declaration

pub struct UiTabItem { pub id: String, pub label: String, pub dirty: bool, pub closable: bool, pub enabled: bool, }
Public Rust declaration.

Public Methods

fn clone(&self) -> UiTabItem
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub fn new(id: impl Into<String>, label: impl Into<String>) -> Self
fn default() -> UiTabItem

Public Data Members

idStringfield
labelStringfield
dirtyboolfield
closableboolfield
enabledboolfield

Public Method Documentation

fn clone( &self ) -> UiTabItem
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub fn new( id: impl Into<String>, label: impl Into<String> ) -> Self
No public source comment is attached to this declaration.
fn default() -> UiTabItem
No public source comment is attached to this declaration.