#[repr(C)]pub struct ImGuiPlatformIO {Show 39 fields
pub Platform_GetClipboardTextFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext) -> *const c_char>,
pub Platform_SetClipboardTextFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext, text: *const c_char)>,
pub Platform_ClipboardUserData: *mut c_void,
pub Platform_OpenInShellFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext, path: *const c_char) -> bool>,
pub Platform_OpenInShellUserData: *mut c_void,
pub Platform_SetImeDataFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext, viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData)>,
pub Platform_ImeUserData: *mut c_void,
pub Platform_LocaleDecimalPoint: ImWchar,
pub Renderer_TextureMaxWidth: c_int,
pub Renderer_TextureMaxHeight: c_int,
pub Renderer_RenderState: *mut c_void,
pub Platform_CreateWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Platform_DestroyWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Platform_ShowWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Platform_SetWindowPos: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, pos: ImVec2)>,
pub Platform_GetWindowPos: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec2>,
pub Platform_SetWindowSize: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, size: ImVec2)>,
pub Platform_GetWindowSize: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec2>,
pub Platform_GetWindowFramebufferScale: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec2>,
pub Platform_SetWindowFocus: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Platform_GetWindowFocus: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> bool>,
pub Platform_GetWindowMinimized: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> bool>,
pub Platform_SetWindowTitle: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const c_char)>,
pub Platform_SetWindowAlpha: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, alpha: f32)>,
pub Platform_UpdateWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Platform_RenderWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>,
pub Platform_SwapBuffers: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>,
pub Platform_GetWindowDpiScale: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> f32>,
pub Platform_OnChangedViewport: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Platform_GetWindowWorkAreaInsets: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec4>,
pub Platform_CreateVkSurface: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, vk_inst: ImU64, vk_allocators: *const c_void, out_vk_surface: *mut ImU64) -> c_int>,
pub Renderer_CreateWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Renderer_DestroyWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>,
pub Renderer_SetWindowSize: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, size: ImVec2)>,
pub Renderer_RenderWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>,
pub Renderer_SwapBuffers: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>,
pub Monitors: ImVector<ImGuiPlatformMonitor>,
pub Textures: ImVector<*mut ImTextureData>,
pub Viewports: ImVector<*mut ImGuiViewport>,
}Fields§
§Platform_GetClipboardTextFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext) -> *const c_char>§Platform_SetClipboardTextFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext, text: *const c_char)>§Platform_ClipboardUserData: *mut c_void§Platform_OpenInShellFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext, path: *const c_char) -> bool>§Platform_OpenInShellUserData: *mut c_void§Platform_SetImeDataFn: Option<unsafe extern "C" fn(ctx: *mut ImGuiContext, viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData)>§Platform_ImeUserData: *mut c_void§Platform_LocaleDecimalPoint: ImWchar§Renderer_TextureMaxWidth: c_int§Renderer_TextureMaxHeight: c_int§Renderer_RenderState: *mut c_void§Platform_CreateWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Platform_DestroyWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Platform_ShowWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Platform_SetWindowPos: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, pos: ImVec2)>§Platform_GetWindowPos: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec2>§Platform_SetWindowSize: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, size: ImVec2)>§Platform_GetWindowSize: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec2>§Platform_GetWindowFramebufferScale: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec2>§Platform_SetWindowFocus: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Platform_GetWindowFocus: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> bool>§Platform_GetWindowMinimized: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> bool>§Platform_SetWindowTitle: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const c_char)>§Platform_SetWindowAlpha: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, alpha: f32)>§Platform_UpdateWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Platform_RenderWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>§Platform_SwapBuffers: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>§Platform_GetWindowDpiScale: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> f32>§Platform_OnChangedViewport: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Platform_GetWindowWorkAreaInsets: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport) -> ImVec4>§Platform_CreateVkSurface: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, vk_inst: ImU64, vk_allocators: *const c_void, out_vk_surface: *mut ImU64) -> c_int>§Renderer_CreateWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Renderer_DestroyWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport)>§Renderer_SetWindowSize: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, size: ImVec2)>§Renderer_RenderWindow: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>§Renderer_SwapBuffers: Option<unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut c_void)>§Monitors: ImVector<ImGuiPlatformMonitor>§Textures: ImVector<*mut ImTextureData>§Viewports: ImVector<*mut ImGuiViewport>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImGuiPlatformIO
impl !RefUnwindSafe for ImGuiPlatformIO
impl !Send for ImGuiPlatformIO
impl !Sync for ImGuiPlatformIO
impl Unpin for ImGuiPlatformIO
impl !UnwindSafe for ImGuiPlatformIO
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