TabVt

Struct TabVt 

Source
#[repr(C)]
pub struct TabVt {
Show 33 fields pub name: *const c_char, pub name_hash: StrhashT, pub create_menu_name: Option<unsafe extern "C" fn() -> *const c_char>, pub create_menu_category: Option<unsafe extern "C" fn() -> *const c_char>, pub create: Option<unsafe extern "C" fn(context: *mut TabCreateContextT, ui: *mut UiO) -> *mut TabI>, pub destroy: Option<unsafe extern "C" fn(inst: *mut TabO)>, pub ui: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, uistyle: *const UiStyleT, rect: RectT)>, pub ui_serial: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, uistyle: *const UiStyleT, rect: RectT)>, pub hidden_update: Option<unsafe extern "C" fn(inst: *mut TabO)>, pub title: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO) -> *const c_char>, pub has_custom_tabbar_border_color: Option<unsafe extern "C" fn(inst: *mut TabO, color: *mut ColorSrgbT) -> bool>, pub set_root: Option<unsafe extern "C" fn(inst: *mut TabO, tt: *mut TheTruthO, root: TtIdT)>, pub root: Option<unsafe extern "C" fn(inst: *mut TabO) -> TabVtRootT>, pub restore_settings: Option<unsafe extern "C" fn(inst: *mut TabO, tt: *mut TheTruthO, settings_id: TtIdT)>, pub save_settings: Option<unsafe extern "C" fn(inst: *mut TabO, tt: *mut TheTruthO) -> TtIdT>, pub save_settings_from_object: Option<unsafe extern "C" fn(tt: *mut TheTruthO, settings: *const c_void) -> TtIdT>, pub can_close: Option<unsafe extern "C" fn(inst: *mut TabO) -> bool>, pub focus_event: Option<unsafe extern "C" fn(inst: *mut TabO, from: *mut TabI, event: TabFocusEvent, tt: *mut TheTruthO, object: TtIdT, selection: *const TtIdT, selection_n: u32)>, pub feed_events: Option<unsafe extern "C" fn(inst: *mut TabO, events: *const InputEventT, count: u32, args: *mut DockingFeedEventsArgsT)>, pub process_dropped_os_files: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, files: *mut *mut c_char, num_files: u32)>, pub toolbars: Option<unsafe extern "C" fn(inst: *mut TabO, ta: *mut TempAllocatorI) -> *mut ToolbarI>, pub custom_padding: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, content_r: *mut RectT, safety_padding: f32)>, pub need_update: Option<unsafe extern "C" fn(inst: *mut TabO) -> bool>, pub hot_reload: Option<unsafe extern "C" fn(inst: *mut TabO)>, pub entity_context: Option<unsafe extern "C" fn(inst: *mut TabO) -> *mut EntityContextO>, pub viewer_render_args: Option<unsafe extern "C" fn(inst: *mut TabO, args: *mut ViewerRenderArgsT)>, pub cant_be_pinned: bool, pub run_as_job: bool, pub dont_restore_at_startup: bool, pub always_restore_settings: bool, pub _padding_272: [c_char; 4], pub menu_title: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO) -> *const c_char>, pub menu: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, uistyle: *const UiStyleT, submenu_pos: Vec2T)>,
}

Fields§

§name: *const c_char§name_hash: StrhashT§create_menu_name: Option<unsafe extern "C" fn() -> *const c_char>§create_menu_category: Option<unsafe extern "C" fn() -> *const c_char>§create: Option<unsafe extern "C" fn(context: *mut TabCreateContextT, ui: *mut UiO) -> *mut TabI>§destroy: Option<unsafe extern "C" fn(inst: *mut TabO)>§ui: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, uistyle: *const UiStyleT, rect: RectT)>§ui_serial: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, uistyle: *const UiStyleT, rect: RectT)>§hidden_update: Option<unsafe extern "C" fn(inst: *mut TabO)>§title: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO) -> *const c_char>§has_custom_tabbar_border_color: Option<unsafe extern "C" fn(inst: *mut TabO, color: *mut ColorSrgbT) -> bool>§set_root: Option<unsafe extern "C" fn(inst: *mut TabO, tt: *mut TheTruthO, root: TtIdT)>§root: Option<unsafe extern "C" fn(inst: *mut TabO) -> TabVtRootT>§restore_settings: Option<unsafe extern "C" fn(inst: *mut TabO, tt: *mut TheTruthO, settings_id: TtIdT)>§save_settings: Option<unsafe extern "C" fn(inst: *mut TabO, tt: *mut TheTruthO) -> TtIdT>§save_settings_from_object: Option<unsafe extern "C" fn(tt: *mut TheTruthO, settings: *const c_void) -> TtIdT>§can_close: Option<unsafe extern "C" fn(inst: *mut TabO) -> bool>§focus_event: Option<unsafe extern "C" fn(inst: *mut TabO, from: *mut TabI, event: TabFocusEvent, tt: *mut TheTruthO, object: TtIdT, selection: *const TtIdT, selection_n: u32)>§feed_events: Option<unsafe extern "C" fn(inst: *mut TabO, events: *const InputEventT, count: u32, args: *mut DockingFeedEventsArgsT)>§process_dropped_os_files: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, files: *mut *mut c_char, num_files: u32)>§toolbars: Option<unsafe extern "C" fn(inst: *mut TabO, ta: *mut TempAllocatorI) -> *mut ToolbarI>§custom_padding: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, content_r: *mut RectT, safety_padding: f32)>§need_update: Option<unsafe extern "C" fn(inst: *mut TabO) -> bool>§hot_reload: Option<unsafe extern "C" fn(inst: *mut TabO)>§entity_context: Option<unsafe extern "C" fn(inst: *mut TabO) -> *mut EntityContextO>§viewer_render_args: Option<unsafe extern "C" fn(inst: *mut TabO, args: *mut ViewerRenderArgsT)>§cant_be_pinned: bool§run_as_job: bool§dont_restore_at_startup: bool§always_restore_settings: bool§_padding_272: [c_char; 4]§menu_title: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO) -> *const c_char>§menu: Option<unsafe extern "C" fn(inst: *mut TabO, ui: *mut UiO, uistyle: *const UiStyleT, submenu_pos: Vec2T)>

Trait Implementations§

Source§

impl Default for TabVt

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for TabVt

§

impl RefUnwindSafe for TabVt

§

impl !Send for TabVt

§

impl !Sync for TabVt

§

impl Unpin for TabVt

§

impl UnwindSafe for TabVt

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.