[][src]Struct tm_rs::ffi::tm_docking_api

#[repr(C)]pub struct tm_docking_api {
    pub create_truth_types: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>,
    pub add_ui: Option<unsafe extern "C" fn(*mut tm_ui_o, tm_rect_t)>,
    pub remove_ui: Option<unsafe extern "C" fn(*mut tm_ui_o)>,
    pub root: Option<unsafe extern "C" fn(*mut tm_ui_o) -> *mut tm_docking_tabwell_o>,
    pub split_tabwell: Option<unsafe extern "C" fn(*mut tm_docking_tabwell_o, i32, f32, *mut *mut tm_docking_tabwell_o) -> *mut tm_docking_tabwell_o>,
    pub add_tab: Option<unsafe extern "C" fn(*mut tm_ui_o, *mut tm_docking_tabwell_o, *mut tm_tab_i)>,
    pub remove_tab: Option<unsafe extern "C" fn(*mut tm_tab_i)>,
    pub move_tab: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut tm_ui_o, *mut tm_docking_tabwell_o)>,
    pub clear: Option<unsafe extern "C" fn()>,
    pub feed_events: Option<unsafe extern "C" fn(*const tm_input_event_t, u32, *mut tm_docking_feed_events_args_t)>,
    pub ui: Option<unsafe extern "C" fn(*mut tm_ui_o, *mut tm_ui_renderer_o, tm_rect_t, u32, *const tm_font_t, f32, bool, *const tm_os_dropped_file_t, u32, *mut tm_tab_create_context_t, *mut tm_the_truth_o, tm_tt_id_t)>,
    pub is_dragging_tab: Option<unsafe extern "C" fn(*mut tm_vec2_t) -> *mut tm_tab_i>,
    pub should_create_new_ui_for_tab: Option<unsafe extern "C" fn(*mut tm_tab_create_context_t, *mut tm_rect_t) -> *mut tm_tab_i>,
    pub focused_tabwell: Option<unsafe extern "C" fn(*mut tm_ui_o) -> *mut tm_docking_tabwell_o>,
    pub focused_tab: Option<unsafe extern "C" fn(*mut tm_ui_o) -> *mut tm_tab_i>,
    pub tabwell_info: Option<unsafe extern "C" fn(*mut tm_docking_tabwell_o) -> tm_docking_tabwell_info_t>,
    pub tab_info: Option<unsafe extern "C" fn(*mut tm_docking_tab_info_t, u32, *mut tm_ui_o, bool) -> u32>,
    pub root_history: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut u32) -> *mut tm_tab_vt_root_t>,
    pub clear_root_history_with_greater_counter: Option<unsafe extern "C" fn(*mut tm_tab_i, u64)>,
    pub tab_ui: Option<unsafe extern "C" fn(*mut tm_tab_i) -> *mut tm_ui_o>,
    pub can_remove_ui: Option<unsafe extern "C" fn(*mut tm_ui_o) -> bool>,
    pub set_focus_tab: Option<unsafe extern "C" fn(*mut tm_ui_o, *mut tm_tab_i)>,
    pub close_focused_tab: Option<unsafe extern "C" fn(*mut tm_ui_o) -> bool>,
    pub close_all_tabs: Option<unsafe extern "C" fn(*mut tm_ui_o)>,
    pub send_focus_event: Option<unsafe extern "C" fn(*mut tm_tab_i, i32, *mut tm_the_truth_o, tm_tt_id_t, *const tm_tt_id_t, u32)>,
    pub destroy_truth: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>,
    pub find_tab: Option<unsafe extern "C" fn(u64, *const tm_docking_find_tab_opt_t) -> tm_docking_find_tab_t>,
    pub find_tabs: Option<unsafe extern "C" fn(u64, *mut tm_temp_allocator_i) -> *mut tm_docking_find_tab_t>,
    pub pin_type: Option<unsafe extern "C" fn(*mut tm_tab_i) -> u32>,
    pub pin_object: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut tm_the_truth_o, tm_tt_id_t)>,
    pub draw_toolbars: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut tm_ui_o, tm_rect_t, u32, *const tm_font_t, f32, *mut tm_the_truth_o, tm_tt_id_t) -> tm_rect_t>,
}

Fields

create_truth_types: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>add_ui: Option<unsafe extern "C" fn(*mut tm_ui_o, tm_rect_t)>remove_ui: Option<unsafe extern "C" fn(*mut tm_ui_o)>root: Option<unsafe extern "C" fn(*mut tm_ui_o) -> *mut tm_docking_tabwell_o>split_tabwell: Option<unsafe extern "C" fn(*mut tm_docking_tabwell_o, i32, f32, *mut *mut tm_docking_tabwell_o) -> *mut tm_docking_tabwell_o>add_tab: Option<unsafe extern "C" fn(*mut tm_ui_o, *mut tm_docking_tabwell_o, *mut tm_tab_i)>remove_tab: Option<unsafe extern "C" fn(*mut tm_tab_i)>move_tab: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut tm_ui_o, *mut tm_docking_tabwell_o)>clear: Option<unsafe extern "C" fn()>feed_events: Option<unsafe extern "C" fn(*const tm_input_event_t, u32, *mut tm_docking_feed_events_args_t)>ui: Option<unsafe extern "C" fn(*mut tm_ui_o, *mut tm_ui_renderer_o, tm_rect_t, u32, *const tm_font_t, f32, bool, *const tm_os_dropped_file_t, u32, *mut tm_tab_create_context_t, *mut tm_the_truth_o, tm_tt_id_t)>is_dragging_tab: Option<unsafe extern "C" fn(*mut tm_vec2_t) -> *mut tm_tab_i>should_create_new_ui_for_tab: Option<unsafe extern "C" fn(*mut tm_tab_create_context_t, *mut tm_rect_t) -> *mut tm_tab_i>focused_tabwell: Option<unsafe extern "C" fn(*mut tm_ui_o) -> *mut tm_docking_tabwell_o>focused_tab: Option<unsafe extern "C" fn(*mut tm_ui_o) -> *mut tm_tab_i>tabwell_info: Option<unsafe extern "C" fn(*mut tm_docking_tabwell_o) -> tm_docking_tabwell_info_t>tab_info: Option<unsafe extern "C" fn(*mut tm_docking_tab_info_t, u32, *mut tm_ui_o, bool) -> u32>root_history: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut u32) -> *mut tm_tab_vt_root_t>clear_root_history_with_greater_counter: Option<unsafe extern "C" fn(*mut tm_tab_i, u64)>tab_ui: Option<unsafe extern "C" fn(*mut tm_tab_i) -> *mut tm_ui_o>can_remove_ui: Option<unsafe extern "C" fn(*mut tm_ui_o) -> bool>set_focus_tab: Option<unsafe extern "C" fn(*mut tm_ui_o, *mut tm_tab_i)>close_focused_tab: Option<unsafe extern "C" fn(*mut tm_ui_o) -> bool>close_all_tabs: Option<unsafe extern "C" fn(*mut tm_ui_o)>send_focus_event: Option<unsafe extern "C" fn(*mut tm_tab_i, i32, *mut tm_the_truth_o, tm_tt_id_t, *const tm_tt_id_t, u32)>destroy_truth: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>find_tab: Option<unsafe extern "C" fn(u64, *const tm_docking_find_tab_opt_t) -> tm_docking_find_tab_t>find_tabs: Option<unsafe extern "C" fn(u64, *mut tm_temp_allocator_i) -> *mut tm_docking_find_tab_t>pin_type: Option<unsafe extern "C" fn(*mut tm_tab_i) -> u32>pin_object: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut tm_the_truth_o, tm_tt_id_t)>draw_toolbars: Option<unsafe extern "C" fn(*mut tm_tab_i, *mut tm_ui_o, tm_rect_t, u32, *const tm_font_t, f32, *mut tm_the_truth_o, tm_tt_id_t) -> tm_rect_t>

Trait Implementations

impl Clone for tm_docking_api[src]

impl Copy for tm_docking_api[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[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.