class RecursiveGridWidget::GridWidget
- RecursiveGridWidget::GridWidget
- Reference
- Object
Defined in:
recursivegridwidget.crConstant Summary
-
ADDER_CONTENT_SIZE =
-3
-
ADDER_ELEMENT_SIZE =
4
-
we have three sizes: used (measured, in @feedback_sizes), content and element
-
ADDER_GENERAL =
4
-
GRID_COLOR =
ImGui.hsv(0.0, 1.0, 1.0, 1.0)
-
SUBGRID_SPACER =
4
Constructors
Instance Method Summary
- #adder_content_size : Int32
- #adder_content_size=(adder_content_size : Int32)
- #adder_element_size : Int32
- #adder_element_size=(adder_element_size : Int32)
- #adder_general : Int32
- #adder_general=(adder_general : Int32)
- #draw_grid_frames : Bool
- #draw_grid_frames=(draw_grid_frames : Bool)
-
#inspect(io : IO) : Nil
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
-
#local_grid : RecursiveGrid::Grid(RecursiveGridWidget::ElementWidget)
the following two are a bit ugly, but they help mainly for the demo
- #local_index : {Int32, Int32}
- #paint
- #subgrid_spacer : Int32
- #subgrid_spacer=(subgrid_spacer : Int32)
Constructor Detail
Instance Method Detail
def inspect(io : IO) : Nil
#
Description copied from class Reference
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
the following two are a bit ugly, but they help mainly for the demo