class CodeEditor

Included Modules

Defined in:

nks.cr

Constructors

Instance Method Summary

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(code : String) #

[View source]

Instance Method Detail

def adopted #
Description copied from module Sketchbook::Element

Hook called when this element is added as a child to an element capable of holding children.


[View source]
def code : String #

[View source]
def code=(code : String) #

[View source]
def render(target) #
Description copied from module Sketchbook::Element

Renders this element on the screen.


[View source]
def req #
Description copied from module Sketchbook::Element

Returns the minimum required size for this element.


[View source]