class CodeEditor
- CodeEditor
- Reference
- Object
Included Modules
Defined in:
nks.crConstructors
Instance Method Summary
-
#adopted
Hook called when this element is added as a child to an element capable of holding children.
- #code : String
- #code=(code : String)
-
#render(target)
Renders this element on the screen.
-
#req
Returns the minimum required size for this element.
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
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.
def render(target)
#
Description copied from module Sketchbook::Element
Renders this element on the screen.
def req
#
Description copied from module Sketchbook::Element
Returns the minimum required size for this element.