class Frame
- Frame
- Sketchbook::Group
- Reference
- Object
Direct Known Subclasses
Defined in:
nks.crInstance Method Summary
- #adopt(child)
-
#bg
Returns the background color of this frame.
-
#border_color
Returns the color of this frame's border.
-
#border_width
Returns width of this frame's border.
-
#focused=(focused : Bool)
Holds whether this frame has focus.
-
#focused? : Bool
Holds whether this frame has focus.
-
#padding
Returns the content padding of this form.
-
#render(target)
Renders this element on the screen.
-
#req
Returns the minimum required size of this group: the position of the corner of its rightmost & bottommost element.
-
#shadow : SF::RectangleShape
Returns the shadow shape of this frame.
-
#shadow_color
Returns the color of this frame's shadow.
-
#shadow_extra
Returns
Point
extra of this frame's shadow. -
#shape : SF::RectangleShape
Returns the main shape of this frame.
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
Instance Method Detail
def render(target)
#
Description copied from module Sketchbook::Element
Renders this element on the screen.
def req
#
Description copied from class Sketchbook::Group
Returns the minimum required size of this group: the position of the corner of its rightmost & bottommost element.