tm_docking_api

Struct tm_docking_api 

Source
#[repr(C)]
pub struct tm_docking_api {
Show 31 fields pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o)>, pub add_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, r: tm_rect_t)>, pub remove_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>, pub root: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> *mut tm_docking_tabwell_o>, pub split_tabwell: Option<unsafe extern "C" fn(parent: *mut tm_docking_tabwell_o, split: tm_docking_tabwell_split, bias: f32, sibling: *mut *mut tm_docking_tabwell_o) -> *mut tm_docking_tabwell_o>, pub add_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, tabwell: *mut tm_docking_tabwell_o, tab: *mut tm_tab_i)>, pub remove_tab: Option<unsafe extern "C" fn(tab: *mut tm_tab_i)>, pub move_tab: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, ui: *mut tm_ui_o, tabwell: *mut tm_docking_tabwell_o)>, pub clear: Option<unsafe extern "C" fn()>, pub feed_events: Option<unsafe extern "C" fn(events: *const tm_input_event_t, count: u32, args: *mut tm_docking_feed_events_args_t)>, pub ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, ui_renderer: *mut tm_ui_renderer_o, rect: tm_rect_t, font: u32, font_info: *const tm_font_t, font_scale: f32, ui_has_focus: bool, dropped_files: *const tm_os_dropped_file_t, num_dropped_files: u32, context: *mut tm_tab_create_context_t, settings_tt: *mut tm_the_truth_o, settings_obj: tm_tt_id_t)>, pub is_dragging_tab: Option<unsafe extern "C" fn(pos: *mut tm_vec2_t) -> *mut tm_tab_i>, pub should_create_new_ui_for_tab: Option<unsafe extern "C" fn(create_context: *mut tm_tab_create_context_t, rect: *mut tm_rect_t) -> *mut tm_tab_i>, pub focused_tabwell: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> *mut tm_docking_tabwell_o>, pub focused_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> *mut tm_tab_i>, pub tabwell_info: Option<unsafe extern "C" fn(tw: *mut tm_docking_tabwell_o) -> tm_docking_tabwell_info_t>, pub tab_info: Option<unsafe extern "C" fn(tabs: *mut tm_docking_tab_info_t, n: u32, filter_ui: *mut tm_ui_o, filter_visible: bool) -> u32>, pub root_history: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, n: *mut u32) -> *mut tm_tab_vt_root_t>, pub clear_root_history_with_greater_counter: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, counter: u64)>, pub tab_ui: Option<unsafe extern "C" fn(tab: *mut tm_tab_i) -> *mut tm_ui_o>, pub can_remove_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> bool>, pub set_focus_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, tab: *mut tm_tab_i)>, pub close_focused_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> bool>, pub close_all_tabs: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>, pub send_focus_event: Option<unsafe extern "C" fn(from: *mut tm_tab_i, event: tm_tab_focus_event, tt: *mut tm_the_truth_o, object: tm_tt_id_t, selection: *const tm_tt_id_t, selection_n: u32)>, pub destroy_truth: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o)>, pub find_tab: Option<unsafe extern "C" fn(type_name_hash: u64, opt: *const tm_docking_find_tab_opt_t) -> tm_docking_find_tab_t>, pub find_tabs: Option<unsafe extern "C" fn(type_name_hash: u64, ta: *mut tm_temp_allocator_i) -> *mut tm_docking_find_tab_t>, pub pin_type: Option<unsafe extern "C" fn(tab: *mut tm_tab_i) -> u32>, pub pin_object: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, tt: *mut tm_the_truth_o, root: tm_tt_id_t)>, pub draw_toolbars: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, ui: *mut tm_ui_o, tab_r: tm_rect_t, font: u32, font_info: *const tm_font_t, font_scale: f32, settings_tt: *mut tm_the_truth_o, settings_obj: tm_tt_id_t) -> tm_rect_t>,
}

Fields§

§create_truth_types: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o)>§add_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, r: tm_rect_t)>§remove_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>§root: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> *mut tm_docking_tabwell_o>§split_tabwell: Option<unsafe extern "C" fn(parent: *mut tm_docking_tabwell_o, split: tm_docking_tabwell_split, bias: f32, sibling: *mut *mut tm_docking_tabwell_o) -> *mut tm_docking_tabwell_o>§add_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, tabwell: *mut tm_docking_tabwell_o, tab: *mut tm_tab_i)>§remove_tab: Option<unsafe extern "C" fn(tab: *mut tm_tab_i)>§move_tab: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, ui: *mut tm_ui_o, tabwell: *mut tm_docking_tabwell_o)>§clear: Option<unsafe extern "C" fn()>§feed_events: Option<unsafe extern "C" fn(events: *const tm_input_event_t, count: u32, args: *mut tm_docking_feed_events_args_t)>§ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, ui_renderer: *mut tm_ui_renderer_o, rect: tm_rect_t, font: u32, font_info: *const tm_font_t, font_scale: f32, ui_has_focus: bool, dropped_files: *const tm_os_dropped_file_t, num_dropped_files: u32, context: *mut tm_tab_create_context_t, settings_tt: *mut tm_the_truth_o, settings_obj: tm_tt_id_t)>§is_dragging_tab: Option<unsafe extern "C" fn(pos: *mut tm_vec2_t) -> *mut tm_tab_i>§should_create_new_ui_for_tab: Option<unsafe extern "C" fn(create_context: *mut tm_tab_create_context_t, rect: *mut tm_rect_t) -> *mut tm_tab_i>§focused_tabwell: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> *mut tm_docking_tabwell_o>§focused_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> *mut tm_tab_i>§tabwell_info: Option<unsafe extern "C" fn(tw: *mut tm_docking_tabwell_o) -> tm_docking_tabwell_info_t>§tab_info: Option<unsafe extern "C" fn(tabs: *mut tm_docking_tab_info_t, n: u32, filter_ui: *mut tm_ui_o, filter_visible: bool) -> u32>§root_history: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, n: *mut u32) -> *mut tm_tab_vt_root_t>§clear_root_history_with_greater_counter: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, counter: u64)>§tab_ui: Option<unsafe extern "C" fn(tab: *mut tm_tab_i) -> *mut tm_ui_o>§can_remove_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> bool>§set_focus_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, tab: *mut tm_tab_i)>§close_focused_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> bool>§close_all_tabs: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>§send_focus_event: Option<unsafe extern "C" fn(from: *mut tm_tab_i, event: tm_tab_focus_event, tt: *mut tm_the_truth_o, object: tm_tt_id_t, selection: *const tm_tt_id_t, selection_n: u32)>§destroy_truth: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o)>§find_tab: Option<unsafe extern "C" fn(type_name_hash: u64, opt: *const tm_docking_find_tab_opt_t) -> tm_docking_find_tab_t>§find_tabs: Option<unsafe extern "C" fn(type_name_hash: u64, ta: *mut tm_temp_allocator_i) -> *mut tm_docking_find_tab_t>§pin_type: Option<unsafe extern "C" fn(tab: *mut tm_tab_i) -> u32>§pin_object: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, tt: *mut tm_the_truth_o, root: tm_tt_id_t)>§draw_toolbars: Option<unsafe extern "C" fn(tab: *mut tm_tab_i, ui: *mut tm_ui_o, tab_r: tm_rect_t, font: u32, font_info: *const tm_font_t, font_scale: f32, settings_tt: *mut tm_the_truth_o, settings_obj: tm_tt_id_t) -> tm_rect_t>

Trait Implementations§

Source§

impl Clone for tm_docking_api

Source§

fn clone(&self) -> tm_docking_api

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for tm_docking_api

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.