class World

Defined in:

nks.cr

Constructors

Instance Method Summary

Instance methods inherited from class Sketchbook::Group

adopt(element : Element) adopt, bring_to_front(element : Element) bring_to_front, children : Array(Sketchbook::Element) children, reject(element : Element) reject, render(target) render, req req

Instance methods inherited from module Sketchbook::Element

adopted adopted, bounds : Rect bounds, bring_to_front bring_to_front, drag(stream = events) : Stream(Point) drag, enter(stream = events) : Stream(Point) enter, events : Stream(SF::Event) events, input(stream = events) : Stream(Char) input, intake intake, keypress(stream = events) : Stream(SF::Event::KeyPressed) keypress, keys(stream = events) : Stream(SF::Event::KeyEvent) keys, leave(stream = events) : Stream(Point) leave, mouse_press(stream = events) : Stream(SF::Event::MouseButtonPressed) mouse_press, offset offset, offset=(offset) offset=, parent : Group | Nil parent, parent=(parent : Group | Nil) parent=, parent? : Group | Nil | Nil parent?, pos(accum = offset) pos, rejected rejected, render(target) render, req req, size size, size=(size) size=, transit(stream = events) : Stream(Tuple(Point, Bool)) transit

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def adopt(frame : Frame) #

[View source]
def sinkhole : Frame | Nil #

Sinkhole is the frame which gets all world's events, except those world handles itself (such as dragging frames around and changing the sinkhole).

Sinkhole is by definition in focus (see Frame#focused?).


[View source]
def sinkhole=(frame : Frame | Nil) #

Sinkhole is the frame which gets all world's events, except those world handles itself (such as dragging frames around and changing the sinkhole).

Sinkhole is by definition in focus (see Frame#focused?).


[View source]