mirror of
https://github.com/Drezil/imgui.git
synced 2025-01-11 16:26:35 +00:00
IO: Added BackendPlatformUserData, BackendRendererUserData, BackendLanguageUserData void* for storage use by back-ends. (#2004 + for cimgui)
This commit is contained in:
parent
8399fb5071
commit
5691385a33
@ -60,6 +60,7 @@ Other Changes:
|
|||||||
This affects clamping window within the visible area: with this option enabled title bars need to be visible. (#899)
|
This affects clamping window within the visible area: with this option enabled title bars need to be visible. (#899)
|
||||||
- Window: Fixed using SetNextWindowPos() on a child window (which wasn't really documented) position the cursor as expected
|
- Window: Fixed using SetNextWindowPos() on a child window (which wasn't really documented) position the cursor as expected
|
||||||
in the parent window, so there is no mismatch between the layout in parent and the position of the child window.
|
in the parent window, so there is no mismatch between the layout in parent and the position of the child window.
|
||||||
|
- IO: Added BackendPlatformUserData, BackendRendererUserData, BackendLanguageUserData void* for storage use by back-ends.
|
||||||
- Style: Tweaked default value of style.DisplayWindowPadding from (20,20) to (19,19) so the default style as a value
|
- Style: Tweaked default value of style.DisplayWindowPadding from (20,20) to (19,19) so the default style as a value
|
||||||
which is the same as the title bar height.
|
which is the same as the title bar height.
|
||||||
- Demo: "Simple Layout" and "Style Editor" are now using tabs.
|
- Demo: "Simple Layout" and "Style Editor" are now using tabs.
|
||||||
|
@ -1111,6 +1111,7 @@ ImGuiIO::ImGuiIO()
|
|||||||
|
|
||||||
// Platform Functions
|
// Platform Functions
|
||||||
BackendPlatformName = BackendRendererName = NULL;
|
BackendPlatformName = BackendRendererName = NULL;
|
||||||
|
BackendPlatformUserData = BackendRendererUserData = BackendLanguageUserData = NULL;
|
||||||
GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations
|
GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations
|
||||||
SetClipboardTextFn = SetClipboardTextFn_DefaultImpl;
|
SetClipboardTextFn = SetClipboardTextFn_DefaultImpl;
|
||||||
ClipboardUserData = NULL;
|
ClipboardUserData = NULL;
|
||||||
|
11
imgui.h
11
imgui.h
@ -1240,9 +1240,12 @@ struct ImGuiIO
|
|||||||
// (the imgui_impl_xxxx back-end files are setting those up for you)
|
// (the imgui_impl_xxxx back-end files are setting those up for you)
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
|
|
||||||
// Optional: Platform/Renderer back-end name (informational only! will be displayed in About Window)
|
// Optional: Platform/Renderer back-end name (informational only! will be displayed in About Window) + User data for back-end/wrappers to store their own stuff.
|
||||||
const char* BackendPlatformName;
|
const char* BackendPlatformName; // = NULL
|
||||||
const char* BackendRendererName;
|
const char* BackendRendererName; // = NULL
|
||||||
|
void* BackendPlatformUserData; // = NULL
|
||||||
|
void* BackendRendererUserData; // = NULL
|
||||||
|
void* BackendLanguageUserData; // = NULL
|
||||||
|
|
||||||
// Optional: Access OS clipboard
|
// Optional: Access OS clipboard
|
||||||
// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
||||||
@ -1253,7 +1256,7 @@ struct ImGuiIO
|
|||||||
// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)
|
// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)
|
||||||
// (default to use native imm32 api on Windows)
|
// (default to use native imm32 api on Windows)
|
||||||
void (*ImeSetInputScreenPosFn)(int x, int y);
|
void (*ImeSetInputScreenPosFn)(int x, int y);
|
||||||
void* ImeWindowHandle; // (Windows) Set this to your HWND to get automatic IME cursor positioning.
|
void* ImeWindowHandle; // (Windows) Set this to your HWND to get automatic IME cursor positioning.
|
||||||
|
|
||||||
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
||||||
// [OBSOLETE since 1.60+] Rendering function, will be automatically called in Render(). Please call your rendering function yourself now!
|
// [OBSOLETE since 1.60+] Rendering function, will be automatically called in Render(). Please call your rendering function yourself now!
|
||||||
|
Loading…
Reference in New Issue
Block a user