Class: ImGuiViewport
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImGuiViewport
- Defined in:
- lib/imgui.rb
Overview
-
Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
-
With multi-viewport enabled, we extend this concept to have multiple active viewports.
-
In the future we will extend this concept further to also represent Platform Monitor and support a “no main platform window” operation mode.
-
About Main Area vs Work Area:
-
Main Area = entire viewport.
-
Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
-
Windows are generally trying to stay within the Work Area of their host viewport.
-
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create ⇒ Object
1599 1600 1601 |
# File 'lib/imgui.rb', line 1599 def self.create() return ImGuiViewport.new(ImGui::ImGuiViewport_ImGuiViewport()) end |
Instance Method Details
#destroy ⇒ Object
1603 1604 1605 |
# File 'lib/imgui.rb', line 1603 def destroy() ImGui::ImGuiViewport_destroy(self) end |