class RecursiveGridWidget::GridWidget

Defined in:

recursivegridwidget.cr

Constant 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

Constructor Detail

def self.new(grid : RecursiveGrid::Grid(ElementWidget), draw_grid_frames : Bool = false) #

[View source]

Instance Method Detail

def adder_content_size : Int32 #

[View source]
def adder_content_size=(adder_content_size : Int32) #

[View source]
def adder_element_size : Int32 #

[View source]
def adder_element_size=(adder_element_size : Int32) #

[View source]
def adder_general : Int32 #

[View source]
def adder_general=(adder_general : Int32) #

[View source]
def draw_grid_frames : Bool #

[View source]
def draw_grid_frames=(draw_grid_frames : Bool) #

[View source]
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>

[View source]

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


[View source]
def local_index : {Int32, Int32} #

[View source]
def paint #

[View source]
def subgrid_spacer : Int32 #

[View source]
def subgrid_spacer=(subgrid_spacer : Int32) #

[View source]