[−][src]Struct tm_sys::ffi::tm_ui_api
Fields
create: Option<unsafe extern "C" fn(a: *mut tm_allocator_i) -> *mut tm_ui_o>destroy: Option<unsafe extern "C" fn(i: *mut tm_ui_o)>clear: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>release_held_state: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>set_window_status: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, rect: tm_rect_t, has_focus: bool, is_under_cursor: bool)>window_rect: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> tm_rect_t>set_feather_width: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, feather_width: f32)>feather_width: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> f32>feed_events: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, events: *const tm_input_event_t, count: u32, offset: tm_vec2_t, scale: tm_vec2_t)>feed_external_edit_key: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, key: u32)>merge_overlay: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>begin_overlay_draw_scope: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64)>end_overlay_draw_scope: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64)>drawing_in_overlay: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> bool>cursor: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> tm_ui_cursor>window: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_window_t, rect: *mut tm_rect_t, content_rect: *mut tm_rect_t) -> tm_ui_window_event>pane: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, rect: tm_rect_t)>scrollbar_x: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, c: *const tm_ui_scrollbar_t, scroll: *mut f32) -> bool>scrollbar_y: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, c: *const tm_ui_scrollbar_t, scroll: *mut f32) -> bool>begin_scrollview: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_scrollview_t, scroll_x: *mut f32, scroll_y: *mut f32, content_rect: *mut tm_rect_t) -> bool>end_scrollview: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, scroll_x: *mut f32, scroll_y: *mut f32) -> bool>label: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_label_t) -> tm_rect_t>text: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_text_t) -> tm_rect_t>text_metrics: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, text: *const c_char) -> tm_rect_t>wrapped_text: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_text_t) -> tm_rect_t>link: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_link_t) -> bool>tooltip: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, text: *const c_char)>checkbox: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_checkbox_t, checked: *mut bool) -> bool>radio: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_radio_t, checked: bool) -> bool>progress: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_progress_t, fraction: f32)>slider: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_slider_t, val: *mut f32, initial: *mut f32) -> tm_ui_interaction_result_t>spinner: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_spinner_t, val: *mut f64, initial: *mut f64) -> tm_ui_interaction_result_t>dropdown: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_dropdown_t, selected: *mut u32) -> bool>textedit: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_textedit_t, s: *mut c_char, maxlen: u32) -> bool>tabbar: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_tabbar_t, selected: *mut u32) -> tm_ui_tabbar_result_t>draggedtab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *const tm_ui_style_t, c: *const tm_ui_draggedtab_t)>splitter_x: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, c: *const tm_ui_splitter_t, bias: *mut f32, content_left: *mut tm_rect_t, content_right: *mut tm_rect_t) -> bool>splitter_x_rects: Option<unsafe extern "C" fn(c: *const tm_ui_splitter_t, bias: f32, content_left: *mut tm_rect_t, content_right: *mut tm_rect_t)>splitter_y: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, c: *const tm_ui_splitter_t, bias: *mut f32, content_top: *mut tm_rect_t, content_bottom: *mut tm_rect_t) -> bool>splitter_y_rects: Option<unsafe extern "C" fn(c: *const tm_ui_splitter_t, bias: f32, content_top: *mut tm_rect_t, content_bottom: *mut tm_rect_t)>titlebar: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, c: *const tm_ui_titlebar_t) -> tm_ui_titlebar_result_t>grow_buffer: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, b: tm_ui_buffer, vbytes: u32, ibytes: u32)>buffers: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> tm_ui_buffers_t>make_id: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> u64>last_id: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> u64>create_fixed_id_range: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, size: u64) -> u64>set_id: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64) -> u64>set_cursor: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, cursor: tm_ui_cursor)>is_hovering: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, r: tm_rect_t, clip: u32) -> bool>set_responder_chain_root: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64)>begin_responder_scope: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64)>end_responder_scope: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64)>in_responder_chain: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64) -> bool>is_first_responder: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64) -> bool>set_responder_chain: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64)>responder_chain: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, count: *mut u32) -> *mut u64>is_responder_chain_empty: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> bool>focus_on_mouse_press: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, r: tm_rect_t, id: u64) -> bool>consume_key: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, keyboard_item: u32)>begin_tab_scope: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64) -> bool>end_tab_scope: Option<unsafe extern "C" fn(ui: *mut tm_ui_o)>focus_on_tab: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64) -> bool>set_tab_focus_disabled: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, tab_focus_disabled: bool)>set_active: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, id: u64)>to_draw_style: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, style: *mut tm_draw2d_style_t, uistyle: *const tm_ui_style_t) -> *mut tm_draw2d_style_t>set_cache: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, key: u64, carray: *mut c_char)>lookup_cache: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, key: u64) -> *mut c_char>left_mouse_pressed: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, help_text: *const c_char) -> bool>middle_mouse_pressed: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, help_text: *const c_char) -> bool>right_mouse_pressed: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, help_text: *const c_char) -> bool>double_click: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, help_text: *const c_char) -> bool>triple_click: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, help_text: *const c_char) -> bool>get_mouse_help_texts: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> tm_ui_mouse_help_texts_t>theme: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> tm_ui_theme_t>set_theme: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, theme: tm_ui_theme_t)>create_custom_theme: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, tt: *mut tm_the_truth_o) -> tm_ui_theme_t>set_parent_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o, parent_ui: *mut tm_ui_o)>fork: Option<unsafe extern "C" fn(main: *mut tm_ui_o) -> *mut tm_ui_o>join: Option<unsafe extern "C" fn(main: *mut tm_ui_o, fork: *mut tm_ui_o)>main_ui: Option<unsafe extern "C" fn(ui: *mut tm_ui_o) -> *mut tm_ui_o>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for tm_ui_api
impl Send for tm_ui_api
impl Sync for tm_ui_api
impl Unpin for tm_ui_api
impl UnwindSafe for tm_ui_api
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,