LEVIATHAN v962456e · 962456eee1

dagon

class Component

since 0.1.0-alpha.1linux

bases
IComponent

Fields

attached_

bool attached_

box

Rect box

childDamage_

bool childDamage_

classes_

Array<string> classes_

contentDirty_

bool contentDirty_

desired_

Size desired_

dock

Dock dock

domSlot_

int domSlot_

gridCol

int gridCol

gridColSpan

int gridColSpan

gridRow

int gridRow

gridRowSpan

int gridRowSpan

height_

Constraint height_

hidden_

bool hidden_

hovered_

bool hovered_

keyCaptureHandlers_

Array<(KeyEvent) => void> keyCaptureHandlers_

keyCaptureTokens_

Array<int> keyCaptureTokens_

keyHandlers_

Array<(KeyEvent) => void> keyHandlers_

keyTokens_

Array<int> keyTokens_

layoutDirty_

bool layoutDirty_

mouseCaptureHandlers_

Array<(MouseEvent) => void> mouseCaptureHandlers_

mouseCaptureTokens_

Array<int> mouseCaptureTokens_

mouseHandlers_

Array<(MouseEvent) => void> mouseHandlers_

mouseTokens_

Array<int> mouseTokens_

nextHandlerToken_

int nextHandlerToken_

padding

Insets padding

parent_

IComponent | None parent_

pasteHandlers_

Array<(PasteEvent) => void> pasteHandlers_

pasteTokens_

Array<int> pasteTokens_

position_

Dagon::Dom::Position | None position_

textHandlers_

Array<(TextEvent) => void> textHandlers_

textTokens_

Array<int> textTokens_

wheelHandlers_

Array<(WheelEvent) => void> wheelHandlers_

wheelTokens_

Array<int> wheelTokens_

width_

Constraint width_

Methods

__dagonAttach

__dagonAttach() -> void

__dagonChildren

__dagonChildren() -> Array<IComponent>

__dagonClearChildDamage

__dagonClearChildDamage() -> void

__dagonClearDamage

__dagonClearDamage() -> void

__dagonContentRect

__dagonContentRect() -> Rect

__dagonDetach

__dagonDetach() -> void

__dagonLayoutDirty

__dagonLayoutDirty() -> bool

__dagonMarkChildDamage

__dagonMarkChildDamage() -> bool

__dagonPositionOrNone

__dagonPositionOrNone() -> Dagon::Dom::Position | None

__dagonSetHovered

__dagonSetHovered(bool value) -> void

addClass

addClass(string name) -> void

arrange

arrange(Rect assigned) -> void

bubble

bubble() -> void

bubbleParent

bubbleParent(IComponent | None current) -> bool

chrome

chrome() -> Insets

classList

classList() -> Array<string>

contentDesired

contentDesired(Size avail) -> Size

desired

desired() -> Size

dirty

dirty() -> bool

fireKey

fireKey(KeyEvent e) -> void

fireKeyCapture

fireKeyCapture(KeyEvent e) -> void

fireMouse

fireMouse(MouseEvent e) -> void

fireMouseCapture

fireMouseCapture(MouseEvent e) -> void

firePaste

firePaste(PasteEvent e) -> void

fireText

fireText(TextEvent e) -> void

fireWheel

fireWheel(WheelEvent e) -> void

hasClass

hasClass(string name) -> bool

heightConstraint

heightConstraint() -> Constraint

hovered

hovered() -> bool

invalidate

invalidate() -> void

invalidateLayout

invalidateLayout() -> void

measure

measure(Size avail) -> void

newHandlerToken

newHandlerToken() -> int

offKey

offKey(int t) -> void

offKeyCapture

offKeyCapture(int t) -> void

offMouse

offMouse(int t) -> void

offMouseCapture

offMouseCapture(int t) -> void

offPaste

offPaste(int t) -> void

offText

offText(int t) -> void

offWheel

offWheel(int t) -> void

onAttach

onAttach() -> void

onDetach

onDetach() -> void

onKey

onKey((KeyEvent) => void h) -> int

onKeyCapture

onKeyCapture((KeyEvent) => void h) -> int

onMouse

onMouse((MouseEvent) => void h) -> int

onMouseCapture

onMouseCapture((MouseEvent) => void h) -> int

onPaste

onPaste((PasteEvent) => void h) -> int

onText

onText((TextEvent) => void h) -> int

onWheel

onWheel((WheelEvent) => void h) -> int

paint

paint(Canvas c) -> void

paintBackground

paintBackground(Canvas c) -> void

paintChrome

paintChrome(Canvas c) -> void

paintContent

paintContent(Canvas c) -> void

parent

parent() -> IComponent | None

position

position() -> Dagon::Dom::Position

removeClass

removeClass(string name) -> void

setHeight

setHeight(Constraint c) -> void

setParent

setParent(IComponent | None p) -> void

setVisible

setVisible(bool value) -> void

setWidth

setWidth(Constraint c) -> void

subtreeDamaged

subtreeDamaged() -> bool

toggleClass

toggleClass(string name) -> void

visible

visible() -> bool

widthConstraint

widthConstraint() -> Constraint