#[repr(C)]pub struct ProfilerViewApi {
pub create_profiler_view: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut ProfilerViewO>,
pub destroy_profiler_view: Option<unsafe extern "C" fn(profiler_view: *mut ProfilerViewO)>,
pub ui: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, tab_id: u64) -> ProfilerViewUiResT>,
pub start_recording: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO, with_history: bool)>,
pub stop_recording: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO)>,
pub is_recording: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO) -> bool>,
pub menu: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO, ui: *mut UiO, style: *const UiStyleT, pos: Vec2T)>,
}Fields§
§create_profiler_view: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut ProfilerViewO>§destroy_profiler_view: Option<unsafe extern "C" fn(profiler_view: *mut ProfilerViewO)>§ui: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, tab_id: u64) -> ProfilerViewUiResT>§start_recording: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO, with_history: bool)>§stop_recording: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO)>§is_recording: Option<unsafe extern "C" fn(inst: *mut ProfilerViewO) -> bool>Implementations§
Source§impl ProfilerViewApi
impl ProfilerViewApi
pub unsafe fn create_profiler_view( &self, allocator: *mut AllocatorI, ) -> *mut ProfilerViewO
pub unsafe fn destroy_profiler_view(&self, profiler_view: *mut ProfilerViewO)
pub unsafe fn ui( &self, inst: *mut ProfilerViewO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, tab_id: u64, ) -> ProfilerViewUiResT
pub unsafe fn start_recording( &self, inst: *mut ProfilerViewO, with_history: bool, )
pub unsafe fn stop_recording(&self, inst: *mut ProfilerViewO)
pub unsafe fn is_recording(&self, inst: *mut ProfilerViewO) -> bool
Trait Implementations§
Source§impl Clone for ProfilerViewApi
impl Clone for ProfilerViewApi
Source§fn clone(&self) -> ProfilerViewApi
fn clone(&self) -> ProfilerViewApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ProfilerViewApi
impl Default for ProfilerViewApi
Source§fn default() -> ProfilerViewApi
fn default() -> ProfilerViewApi
Returns the “default value” for a type. Read more
impl Copy for ProfilerViewApi
Auto Trait Implementations§
impl Freeze for ProfilerViewApi
impl RefUnwindSafe for ProfilerViewApi
impl Send for ProfilerViewApi
impl Sync for ProfilerViewApi
impl Unpin for ProfilerViewApi
impl UnwindSafe for ProfilerViewApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more