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



2430
2431
2432
# File 'lib/imgui.rb', line 2430

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

Instance Method Details

#destroyObject



2434
2435
2436
# File 'lib/imgui.rb', line 2434

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