Coder Social home page Coder Social logo

dearimgui-with-imm32's Introduction

DearImGui-with-IMM32

Dear ImGui with IMM32

screen

git clone --recursive [email protected]:maildrop/DearImGui-with-IMM32.git
cd DearImGui-with-IMM32
vs_custom_build.bat

vs_custom_build.bat clones vcpkg and installs SDL2, so it will take some time.

and

open file IMM32IMGUI.sln with Visual Studio 2019

Software License

This software is the MIT License (MIT). (Excluding sample Japanese fonts)

font license

IMM32IMGUI/NotoSansMonoCJKjp-Regular.otf

Noto is a trademark of Google Inc. Noto fonts are open source. All Noto fonts are published under the SIL Open Font License, Version 1.1. Language data and some sample texts are from the Unicode CLDR project.

https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL

widgetTest project

Add ImGuiColorTextEdit to widgetTest and check the operation. Unfortunately, I needed to add a bit of code to set the position of the IME Window. Forked for this. maildrop/ImGuiColorTextEdit

ImGuiColorTextEdit/CONTRIBUTING saying

Avoid using ImGui internal since it would make the source fragile against internal changes in ImGui.

But dear ImGUI has the position of IME in ImGuiContext::PlatformImePos ImGui::GetCurrentContext()->PlatformImePos This ImGuiContext is defined in imgui_internal.h. Therefore, it is not possible to pull request my forked version.

TextEditor

How to usage

example

1.include

#if defined (_WIN32)
#include "imgui_imm32_onthespot.h"
#include "imgui_imm32_onthespot_sdl.h" /* If you are using SDL, include imgui_imm32_onthesport_sdl.h */
#endif /* defined( _WIN32 ) */

Include the necessary header files.

2.declare

ImGUIIMMCommunication imguiIMMCommunication{}; 
VERIFY( imguiIMMCommunication.subclassify( window ) );

Declare the function object at outside of the message loop.

DearImGui-with-IMM32 uses SetWindowSubclass() to get IMM32 window messages.

3.rendering

imguiIMMCommunication(); 

Finally, call the function object.

dearimgui-with-imm32's People

Contributors

maildrop avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.