Open Sidebar
Close Sidebar
crystal-imgui
ImGui
ImBitArrayPtr
ImColor
ImDrawCallback
ImDrawChannel
ImDrawCmd
ImDrawCmdHeader
ImDrawData
ImDrawFlags
ImDrawIdx
ImDrawList
ImDrawListFlags
ImDrawListSplitter
ImDrawVert
ImFileHandle
ImFont
ImFontAtlas
ImFontAtlasCustomRect
ImFontAtlasFlags
ImFontConfig
ImFontGlyph
ImFontGlyphRangesBuilder
ImGuiBackendFlags
ImGuiButtonFlags
ImGuiChildFlags
ImGuiCol
ImGuiColorEditFlags
ImGuiComboFlags
ImGuiCond
ImGuiConfigFlags
ImGuiContext
ImGuiContextHookCallback
ImGuiDataType
ImGuiDir
ImGuiDragDropFlags
ImGuiErrorLogCallback
ImGuiFocusedFlags
ImGuiHoveredFlags
ImGuiID
ImGuiInputTextCallback
ImGuiInputTextCallbackData
ImGuiInputTextFlags
ImGuiIO
ImGuiKey
ImGuiKeyChord
ImGuiKeyData
ImGuiKeyRoutingIndex
ImGuiListClipper
ImGuiMemAllocFunc
ImGuiMemFreeFunc
ImGuiMouseButton
ImGuiMouseCursor
ImGuiMouseSource
ImGuiOnceUponAFrame
ImGuiPayload
ImGuiPlatformImeData
ImGuiPopupFlags
ImGuiSelectableFlags
ImGuiSelectionUserData
ImGuiSizeCallback
ImGuiSizeCallbackData
ImGuiSliderFlags
ImGuiSortDirection
ImGuiStorage
ImGuiStyle
ImGuiStyleVar
ImGuiTabBarFlags
ImGuiTabItemFlags
ImGuiTableBgTarget
ImGuiTableColumnFlags
ImGuiTableColumnIdx
ImGuiTableColumnSortSpecs
ImGuiTableDrawChannelIdx
ImGuiTableFlags
ImGuiTableRowFlags
ImGuiTableSortSpecs
ImGuiTextFilter
ImGuiTreeNodeFlags
ImGuiViewport
ImGuiViewportFlags
ImGuiWindowFlags
ImPoolIdx
ImTextureID
ImVec2
ImVec4
ImVector
ImWchar
ImWchar16
ImWchar32
TextBuffer
TopLevel
ImColor
ImDrawChannel
ImDrawCmd
ImDrawCmdHeader
ImDrawData
ImDrawFlags
ImDrawList
ImDrawListFlags
ImDrawListSplitter
ImDrawVert
ImFont
ImFontAtlas
ImFontAtlasCustomRect
ImFontAtlasFlags
ImFontConfig
ImFontGlyph
ImFontGlyphRangesBuilder
ImGuiBackendFlags
ImGuiButtonFlags
ImGuiChildFlags
ImGuiCol
ImGuiColorEditFlags
ImGuiComboFlags
ImGuiCond
ImGuiConfigFlags
ImGuiDataType
ImGuiDir
ImGuiDragDropFlags
ImGuiFocusedFlags
ImGuiHoveredFlags
ImGuiInputTextCallbackData
ImGuiInputTextFlags
ImGuiIO
ImGuiKey
ImGuiKeyData
ImGuiListClipper
ImGuiMouseButton
ImGuiMouseCursor
ImGuiMouseSource
ImGuiOnceUponAFrame
ImGuiPayload
ImGuiPlatformImeData
ImGuiPopupFlags
ImGuiSelectableFlags
ImGuiSizeCallbackData
ImGuiSliderFlags
ImGuiSortDirection
ImGuiStorage
ImGuiStyle
ImGuiStyleVar
ImGuiTabBarFlags
ImGuiTabItemFlags
ImGuiTableBgTarget
ImGuiTableColumnFlags
ImGuiTableColumnSortSpecs
ImGuiTableFlags
ImGuiTableRowFlags
ImGuiTableSortSpecs
ImGuiTextFilter
ImGuiTreeNodeFlags
ImGuiViewport
ImGuiViewportFlags
ImGuiWindowFlags
ImVec2
ImVec4
ImVector
ImGuiDemo
Element
ExampleAppConsole
ExampleAppDocuments
ExampleAppLog
Mode
MyDocument
StaticValue
struct
ImGui::
ImVec2
ImGui::ImVec2
Struct
Value
Object
Overview
struct ImVec2
Included Modules
ImGui::StructType
Defined in:
imgui.cr
obj.cr
types.cr
Constructors
.new
(_x : Float32, _y : Float32) : ImVec2
ImVec2::ImVec2()
.new
(x : Number, y : Number)
.new
ImVec2::ImVec2()
Instance Method Summary
#to_unsafe
: Pointer(Float32)
#x
: Float32
#x=
(x : Float32)
#y
: Float32
#y=
(y : Float32)
Instance methods inherited from module
ImGui::StructType
to_unsafe
to_unsafe
Constructor Detail
def self.
new
(_x : Float32, _y : Float32) :
ImVec2
#
ImVec2::ImVec2()
[
View source
]
def self.
new
(x : Number, y : Number)
#
[
View source
]
def self.
new
#
ImVec2::ImVec2()
[
View source
]
Instance Method Detail
def
to_unsafe
: Pointer(Float32)
#
[
View source
]
def
x
: Float32
#
[
View source
]
def
x=
(x : Float32)
#
[
View source
]
def
y
: Float32
#
[
View source
]
def
y=
(y : Float32)
#
[
View source
]