dagon
class Component
since 0.1.0-alpha.1linux
- bases
IComponent
Fields
attached_
bool attached_box
Rect boxchildDamage_
bool childDamage_classes_
Array<string> classes_contentDirty_
bool contentDirty_desired_
Size desired_dock
Dock dockdomSlot_
int domSlot_gridCol
int gridColgridColSpan
int gridColSpangridRow
int gridRowgridRowSpan
int gridRowSpanheight_
Constraint height_hidden_
hovered_
bool hovered_keyCaptureHandlers_
keyCaptureTokens_
Array<int> keyCaptureTokens_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 paddingparent_
IComponent | None parent_pasteHandlers_
Array<(PasteEvent) => void> pasteHandlers_pasteTokens_
Array<int> pasteTokens_position_
Dagon::Dom::Position | None position_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) -> voidaddClass
addClass(string name) -> voidarrange
arrange(Rect assigned) -> voidbubble
bubble() -> voidbubbleParent
bubbleParent(IComponent | None current) -> boolchrome
chrome() -> InsetsclassList
classList() -> Array<string>contentDesired
desired
desired() -> Sizedirty
dirty() -> boolfireKey
fireKey(KeyEvent e) -> voidfireKeyCapture
fireKeyCapture(KeyEvent e) -> voidfireMouse
fireMouse(MouseEvent e) -> voidfireMouseCapture
fireMouseCapture(MouseEvent e) -> voidfirePaste
firePaste(PasteEvent e) -> voidfireText
fireText(TextEvent e) -> voidfireWheel
fireWheel(WheelEvent e) -> voidhasClass
hasClass(string name) -> boolheightConstraint
heightConstraint() -> Constrainthovered
hovered() -> boolinvalidate
invalidate() -> voidinvalidateLayout
invalidateLayout() -> voidmeasure
measure(Size avail) -> voidnewHandlerToken
newHandlerToken() -> intoffKey
offKey(int t) -> voidoffKeyCapture
offKeyCapture(int t) -> voidoffMouse
offMouse(int t) -> voidoffMouseCapture
offMouseCapture(int t) -> voidoffPaste
offPaste(int t) -> voidoffText
offText(int t) -> voidoffWheel
offWheel(int t) -> voidonAttach
onAttach() -> voidonDetach
onDetach() -> voidonKey
onKey((KeyEvent) => void h) -> intonKeyCapture
onKeyCapture((KeyEvent) => void h) -> intonMouse
onMouse((MouseEvent) => void h) -> intonMouseCapture
onMouseCapture((MouseEvent) => void h) -> intonPaste
onPaste((PasteEvent) => void h) -> intonText
onText((TextEvent) => void h) -> intonWheel
onWheel((WheelEvent) => void h) -> intpaint
paint(Canvas c) -> voidpaintBackground
paintBackground(Canvas c) -> voidpaintChrome
paintChrome(Canvas c) -> voidpaintContent
paintContent(Canvas c) -> voidparent
parent() -> IComponent | Noneposition
position() -> Dagon::Dom::PositionremoveClass
removeClass(string name) -> voidsetHeight
setHeight(Constraint c) -> voidsetParent
setParent(IComponent | None p) -> voidsetVisible
setVisible(bool value) -> voidsetWidth
setWidth(Constraint c) -> voidsubtreeDamaged
subtreeDamaged() -> booltoggleClass
toggleClass(string name) -> voidvisible
visible() -> boolwidthConstraint
widthConstraint() -> Constraint