moby
class Component
since 0.1.0-alpha.1linux
- bases
IComponent
Fields
attached_
bool attached_attrValidationMessage_
string attrValidationMessage_attrValidatorMessages_
Array<string> attrValidatorMessages_attrValidators_
Array<() => bool> attrValidators_bindings_
boundShortcutTokens_
Array<int> boundShortcutTokens_boundTimerTokens_
Array<int> boundTimerTokens_box
Rect boxchildDamage_
bool childDamage_classes_
Array<string> classes_contentDirty_
bool contentDirty_desired_
Size desired_dock
Dock dockdomSlot_
int domSlot_frameRequested_
bool frameRequested_gridCol
int gridColgridColSpan
int gridColSpangridRow
int gridRowgridRowSpan
int gridRowSpanheight_
Constraint height_hidden_
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_pendingShortcuts_
Array<ShortcutReg> pendingShortcuts_pendingTimers_
position_
Dom::Position | None position_reactiveNotifying_
bool reactiveNotifying_width_
Constraint width_Methods
__mobyAbsolute
__mobyAbsolute() -> bool__mobyAddValidator
__mobyAddValidator(() => bool check, string message) -> void__mobyAttach
__mobyAttach() -> void__mobyAttrValidationMessage
__mobyAttrValidationMessage() -> string__mobyBind
__mobyBind(string field, () => void updater) -> void__mobyBindShortcut
__mobyBindShortcut(string chord, () => void action) -> void__mobyBoundShortcutTokens
__mobyBoundShortcutTokens() -> Array<int>__mobyBoundTimerTokens
__mobyBoundTimerTokens() -> Array<int>__mobyChildren
__mobyChildren() -> Array<IComponent>__mobyClearChildDamage
__mobyClearChildDamage() -> void__mobyClearDamage
__mobyClearDamage() -> void__mobyContentRect
__mobyContentRect() -> Rect__mobyDetach
__mobyDetach() -> void__mobyLayoutDirty
__mobyLayoutDirty() -> bool__mobyMarkChildDamage
__mobyMarkChildDamage() -> bool__mobyNotify
__mobyNotify() -> void__mobyPendingShortcuts
__mobyPendingShortcuts() -> Array<ShortcutReg>__mobyPendingTimers
__mobyRecordShortcutToken
__mobyRecordShortcutToken(int token) -> void__mobyRecordTimerToken
__mobyRecordTimerToken(int token) -> void__mobyRegisterTimer
__mobyRegisterTimer(int intervalMs, () => void action) -> void__mobyRunAttrValidators
__mobyRunAttrValidators() -> booladdClass
addClass(string name) -> voidarrange
arrange(Rect assigned) -> voidbubble
bubble() -> voidbubbleParent
bubbleParent(IComponent | None current) -> boolchrome
chrome() -> InsetsclassList
classList() -> Array<string>clearDamage
clearDamage() -> voidcontentDesired
desired
desired() -> Sizedirty
dirty() -> boolfireKey
fireKey(KeyEvent e) -> voidfireKeyCapture
fireKeyCapture(KeyEvent e) -> voidfireMouse
fireMouse(MouseEvent e) -> voidfireMouseCapture
fireMouseCapture(MouseEvent e) -> voidfirePaste
firePaste(PasteEvent e) -> voidhasClass
hasClass(string name) -> boolheightConstraint
heightConstraint() -> Constraintinvalidate
invalidate() -> voidinvalidateLayout
invalidateLayout() -> voidmeasure
measure(Size avail) -> voidnewHandlerToken
newHandlerToken() -> intoffKey
offKey(int token) -> voidoffKeyCapture
offKeyCapture(int token) -> voidoffMouse
offMouse(int token) -> voidoffMouseCapture
offMouseCapture(int token) -> voidoffPaste
offPaste(int token) -> 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) -> intpaint
paint(Surface s) -> voidpaintBackground
paintBackground(Surface s) -> voidpaintChrome
paintChrome(Surface s) -> voidpaintContent
paintContent(Surface s) -> voidparent
parent() -> IComponent | Noneposition
position() -> Dom::PositionremoveClass
removeClass(string name) -> voidsetHeight
setHeight(Constraint c) -> voidsetParent
setParent(IComponent | None p) -> voidsetVisible
setVisible(bool value) -> voidsetWidth
setWidth(Constraint c) -> voidsubtreeDamaged
subtreeDamaged() -> booltakeFrameRequest
takeFrameRequest() -> booltoggleClass
toggleClass(string name) -> voidvisible
visible() -> boolwidthConstraint
widthConstraint() -> Constraint