-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,13 @@ | ||
# CImGui | ||
This package provides a Julia language wrapper for [cimgui](https://github.com/cimgui/cimgui): a thin c-api wrapper programmatically generated for the excellent C++ immediate mode gui [Dear ImGui](https://github.com/ocornut/imgui). Dear ImGui is mainly for creating content creation tools and visualization or debug tools. Browse [Gallery](https://github.com/ocornut/imgui/issues/2265) | ||
to get an idea of its use cases. | ||
|
||
![demo](demo/demo.png) | ||
|
||
## Installation | ||
```julia | ||
pkg> add https://github.com/Gnimuc/CImGui.jl.git | ||
``` | ||
you might also need to `dev https://github.com/Gnimuc/CSyntax.jl` | ||
|
||
## Quick Start | ||
1. Run `demo/demo.jl` to test whether the GLFW+OpenGL backend works on your machine. | ||
2. Run `examples/demo.jl` and browse demos in the `examples` folder to learn how to use the API. | ||
3. Press `? CImGui.xxx` to fetch docs. | ||
pkg> add CImGui | ||
``` | ||
help?> CImGui.Begin | ||
Begin(name, p_open=C_NULL, flags=0) -> Bool | ||
Push window to the stack and start appending to it. | ||
Usage | ||
––––––– | ||
• you may append multiple times to the same window during the same frame. | ||
• passing p_open != C_NULL shows a window-closing widget in the upper-right corner of | ||
the window, which clicking will set the boolean to false when clicked. | ||
|
||
• Begin return false to indicate the window is collapsed or fully clipped, so you may | ||
early out and omit submitting anything to the window. | ||
│ Note | ||
│ | ||
│ Always call a matching End for each Begin call, regardless of its return value. This | ||
│ is due to legacy reason and is inconsistent with most other functions (such as | ||
│ BeginMenu/EndMenu, BeginPopup/EndPopup, etc.) where the EndXXX call should only be | ||
│ called if the corresponding BeginXXX function returned true. | ||
──────────────────────────────────────────────────────────────────────────────────────────────── | ||
Begin(handle::Ptr{ImGuiTextBuffer}) -> Cstring | ||
──────────────────────────────────────────────────────────────────────────────────────────────── | ||
Begin(handle::Ptr{ImGuiListClipper}, items_count, items_height=-1.0) | ||
Automatically called by constructor if you passed items_count or by Step in Step 1. | ||
``` | ||
## Usage | ||
TODO... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters