class Frame

Direct Known Subclasses

Defined in:

nks.cr

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

Instance Method Detail

def adopt(child) #

[View source]
def bg #

Returns the background color of this frame.


[View source]
def border_color #

Returns the color of this frame's border.


[View source]
def border_width #

Returns width of this frame's border.


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

Holds whether this frame has focus.


[View source]
def focused? : Bool #

Holds whether this frame has focus.


[View source]
def padding #

Returns the content padding of this form.


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

Renders this element on the screen.


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


[View source]
def shadow : SF::RectangleShape #

Returns the shadow shape of this frame.


[View source]
def shadow_color #

Returns the color of this frame's shadow.


[View source]
def shadow_extra #

Returns Point extra of this frame's shadow.


[View source]
def shape : SF::RectangleShape #

Returns the main shape of this frame.


[View source]