[][src]Struct tm_sys::ffi::tm_docking_api

#[repr(C)]pub struct tm_docking_api {
    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

impl Clone for tm_docking_api[src]

impl Copy for tm_docking_api[src]

impl Debug for tm_docking_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.