LEVIATHAN v962456e · 962456eee1

dagon

namespace Dom

since 0.1.0-alpha.1linux

Types

Constants and globals

activeDocument_

Document | None activeDocument_

activeWindow_

Window | None activeWindow_

DOM_ELEMENT

const int DOM_ELEMENT = 0

DOM_HOLE

const int DOM_HOLE = 2

DOM_TEXT

const int DOM_TEXT = 1

registry_

DomRegistry | None registry_

Functions

__dagonBuild

__dagonBuild(() => IComponent thunk) -> IComponent

__dagonSetActiveDocument

__dagonSetActiveDocument(Window w, Document d) -> void

__setRegistry

__setRegistry(DomRegistry r) -> void

activeDocument

activeDocument() -> Document

activeWindow

activeWindow() -> Window

alignFromName

alignFromName(string v) -> Align

applyAttr

applyAttr(IComponent c, Document doc, string tag, string name, string value) -> void

applyFlexAttr

applyFlexAttr(IComponent c, int f) -> void

axisFromName

axisFromName(string v) -> Axis

bindActionItem

bindActionItem(Document doc, IComponent item, string key) -> void

bindLeafText

bindLeafText(Document doc, IComponent leaf, Array<bool> isHole, Array<string> pieces) -> void

bindNode

bindNode(Document doc, IComponent node, string sourceText, () => string getter, (string) => void apply) -> void

bindRuntimeText

bindRuntimeText(Document doc, IComponent textNode, string key) -> void

bindText

bindText(Document doc, IComponent textNode, string sourceText, () => string getter) -> void

build

build(string markup) -> IComponent

buildElement

buildElement(DomTplNode node, Document doc) -> IComponent

buildElementInner

buildElementInner(DomTplNode node, Document doc) -> IComponent

buildFragment

buildFragment(Array<DomTplNode> nodes, Document doc) -> Array<IComponent>

buildMarkup

buildMarkup(string markup, Document doc) -> IComponent

buildMarkupFragment

buildMarkupFragment(string markup, Document doc) -> Array<IComponent>

buildRoot

buildRoot(DomTplNode node, Document activeDoc) -> IComponent

compileSelector

compileSelector(string src) -> Selector

dockFromName

dockFromName(string v) -> Dock

documentFor

documentFor(IComponent node) -> Document

domDockContainer

domDockContainer() -> IComponent

domFlexContainer

domFlexContainer(Axis a) -> IComponent

domStackContainer

domStackContainer() -> IComponent

effectiveActionKey

effectiveActionKey(IComponent node, Document doc, string label) -> string | None

expandDom

expandDom(string payload) -> string

fireAction

fireAction(IComponent from, string name) -> bool

greyBoundItem

greyBoundItem(IComponent item, bool on) -> void

intAttr

intAttr(string name, string v) -> int

isBareId

isBareId(Selector sel) -> bool

isNameChar

isNameChar(char c) -> bool

joinLabel

joinLabel(string acc, string piece) -> string

matchChainAt

matchChainAt(SelChain chain, IComponent node, Document doc) -> bool

matchPart

matchPart(SelPart p, IComponent c, Document doc) -> bool

parseMarkup

parseMarkup(string src) -> Array<DomTplNode>

queryAll

queryAll(Document doc, IComponent root, Selector sel) -> Array<IComponent>

queryAllStr

queryAllStr(Document doc, IComponent root, string selText) -> Array<IComponent>

queryOrNoneStr

queryOrNoneStr(Document doc, IComponent root, string selText) -> IComponent | None

queryStr

queryStr(Document doc, IComponent root, string selText) -> IComponent

queryWalk

queryWalk(Document doc, IComponent node, Selector sel, Array<IComponent> acc) -> Array<IComponent>

registerTag

registerTag(string name, () => IComponent factory, (IComponent) => bool matcher, (IComponent, string, string) => bool applier) -> void

registry

registry() -> DomRegistry

registryOf

registryOf(Document doc, IComponent c) -> ActionRegistry | None

requireDagonApp

requireDagonApp() -> DagonApp

resolveBindRegistry

resolveBindRegistry(Document doc, IComponent from, string key) -> ActionRegistry | None

setNodeText

setNodeText(IComponent c, string t) -> void

slug

slug(string label) -> string

text

text(string v) -> string
text(string | None v) -> string
text(int v) -> string
text(float v) -> string
text(bool v) -> string
text(char v) -> string

wireActionNode

wireActionNode(IComponent node, Document doc) -> void

wireActionsInSubtree

wireActionsInSubtree(IComponent root, Document doc) -> void