Class: ImGuiPlatformMonitor

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/imgui.rb

Overview

(Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI. We use this information for multiple DPI support + clamping the position of popups and tooltips so they don’t straddle multiple monitors.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.createObject



2424
2425
2426
# File 'lib/imgui.rb', line 2424

def self.create()
  return ImGuiPlatformMonitor.new(ImGui::ImGuiPlatformMonitor_ImGuiPlatformMonitor())
end

Instance Method Details

#destroyObject



2428
2429
2430
# File 'lib/imgui.rb', line 2428

def destroy()
  ImGui::ImGuiPlatformMonitor_destroy(self)
end