Class: ImGuiViewport

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

Overview

  • 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

.createObject



1742
1743
1744
# File 'lib/imgui.rb', line 1742

def self.create()
  return ImGuiViewport.new(ImGui::ImGuiViewport_ImGuiViewport())
end

Instance Method Details

#destroyObject



1746
1747
1748
# File 'lib/imgui.rb', line 1746

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

#GetCenterObject



1730
1731
1732
1733
1734
# File 'lib/imgui.rb', line 1730

def GetCenter()
  pOut = ImVec2.new
  ImGui::ImGuiViewport_GetCenter(pOut, self)
  return pOut
end

#GetWorkCenterObject



1736
1737
1738
1739
1740
# File 'lib/imgui.rb', line 1736

def GetWorkCenter()
  pOut = ImVec2.new
  ImGui::ImGuiViewport_GetWorkCenter(pOut, self)
  return pOut
end