class

RecursiveGridWidget::GridWidget

Inherits Reference < Object

Constants

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

new(grid : RecursiveGrid::Grid(ElementWidget), draw_grid_frames : Bool = false)
Source

Instance methods

adder_content_size
Source
adder_content_size=(adder_content_size : Int32)
Source
adder_element_size
Source
adder_element_size=(adder_element_size : Int32)
Source
adder_general
Source
adder_general=(adder_general : Int32)
Source
draw_grid_frames
Source
draw_grid_frames=(draw_grid_frames : Bool)
Source
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.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Source
local_grid

the following two are a bit ugly, but they help mainly for the demo

Source
local_index
Source
paint
Source
subgrid_spacer
Source
subgrid_spacer=(subgrid_spacer : Int32)
Source