Quark #

Modules #

Quark v1.2.0 Documentation


Table of Contents

quark/view #

Enum: ViewType #

ViewType #

  • View
  • Label
  • Box
  • Flex
  • Flow
  • Free
  • Image
  • Video
  • Input
  • Textarea
  • Scroll
  • Text
  • Button
  • Matrix
  • Root
  • Enum_Counts

Interface: DOM #

DOM #

dom.ref #

dom.metaView #

  • @get metaView: View mount point for view controller

dom.appendTo(parent) #

dom.afterTo(prev) #

dom.destroy(owner) #

destroy from owner

ChildDOM #

Class: View #

View #

view.childDoms #

JSX system specific

view.onClick #

view.onBack #

view.onKeyDown #

view.onKeyPress #

view.onKeyUp #

view.onKeyEnter #

view.onTouchStart #

view.onTouchMove #

view.onTouchEnd #

view.onTouchCancel #

view.onMouseOver #

view.onMouseOut #

view.onMouseLeave #

view.onMouseEnter #

view.onMouseMove #

view.onMouseDown #

view.onMouseUp #

view.onMouseWheel #

view.onFocus #

view.onBlur #

view.onHighlighted #

view.onActionKeyframe #

view.onActionLoop #

view.cssclass #

view.parent #

view.prev #

view.next #

view.first #

view.last #

view.window #

view.matrix #

view.level #

view.layoutWeight #

view.layoutAlign #

view.isClip #

view.viewType #

view.position #

view.layoutOffset #

view.layoutSize #

view.center #

view.metaView #

  • @get metaView: View

view.visibleRegion #

view.ref #

view.style #

view.action #

view.class #

  • class: string[] settingonly method, cssclass.set()

view.opacity #

view.cursor #

view.visible #

view.receive #

view.isFocus #

view.focus() #

view.show() #

Set visible = true

view.hide() #

Set visible = false

view.isSelfChild(child) #

view.before(view) #

view.after(view) #

view.prepend(view) #

view.append(view) #

view.remove() #

view.removeAllChild() #

view.overlapTest(point) #

view.hashCode() #

view.appendTo(parent) #

view.afterTo(prev) #

view.destroy(owner) #

view.transition(to,from?,cb?) #

view.constructor(win) #

Class: Box #

Box #

box.clip #

box.align #

box.width #

box.height #

box.minWidth #

box.minHeight #

box.maxWidth #

box.maxHeight #

box.margin #

box.marginTop #

box.marginRight #

box.marginBottom #

box.marginLeft #

box.padding #

box.paddingTop #

box.paddingRight #

box.paddingBottom #

box.paddingLeft #

box.borderRadius #

box.borderRadiusLeftTop #

box.borderRadiusRightTop #

  • borderRadiusRightTop: number

box.borderRadiusRightBottom #

  • borderRadiusRightBottom: number

box.borderRadiusLeftBottom #

  • borderRadiusLeftBottom: number

box.border #

box.borderTop #

box.borderRight #

box.borderBottom #

box.borderLeft #

box.borderWidth #

box.borderColor #

box.borderWidthTop #

box.borderWidthRight #

box.borderWidthBottom #

box.borderWidthLeft #

box.borderColorTop #

box.borderColorRight #

box.borderColorBottom #

box.borderColorLeft #

box.backgroundColor #

box.background #

box.boxShadow #

box.weight #

box.contentSize #

  • @get contentSize: types.Vec2 width,height, no include padding

box.clientSize #

  • @get clientSize: types.Vec2 border + padding + content

Class: Flex #

Flex #

flex.direction #

flex.itemsAlign #

flex.crossAlign #

Class: Flow #

Flow #

flow.wrap #

flow.wrapAlign #

Class: Free #

Free #

Class: Image #

Image #

image.onLoad #

image.onError #

image.src #

Class: Matrix #

Matrix #

matrix.translate #

matrix.scale #

matrix.skew #

matrix.rotateZ #

matrix.originX #

matrix.originY #

matrix.originValue #

matrix.x #

matrix.y #

matrix.scaleX #

matrix.scaleY #

matrix.skewX #

matrix.skewY #

matrix.origin #

matrix.mat #

Class: Root #

Root #

Interface: TextOptions #

TextOptions #

textoptions.fontStyle #

textoptions.textAlign #

textoptions.textWeight #

textoptions.textSlant #

textoptions.textDecoration #

textoptions.textOverflow #

textoptions.textWhiteSpace #

textoptions.textWordBreak #

textoptions.textSize #

textoptions.textBackgroundColor #

textoptions.textColor #

textoptions.textLineHeight #

textoptions.textShadow #

textoptions.textFamily #

textoptions.computeLayoutSize(text) #

Class: Text #

Text #

text.value #

Class: Button #

Button #

button.nextButton(dir) #

Class: Label #

Label #

label.value #

Class: Label #

Label #

label.onChange #

label.security #

label.readonly #

label.type #

label.returnType #

label.placeholderColor #

label.cursorColor #

label.maxLength #

label.value #

label.placeholder #

label.textLength #

Interface: ScrollBase #

ScrollBase #

scrollbase.scrollbar #

scrollbase.bounce #

scrollbase.bounceLock #

scrollbase.momentum #

scrollbase.lockDirection #

scrollbase.scrollX #

scrollbase.scrollY #

scrollbase.scroll #

scrollbase.resistance #

scrollbase.catchPositionX #

scrollbase.catchPositionY #

scrollbase.scrollbarColor #

scrollbase.scrollbarWidth #

scrollbase.scrollbarMargin #

scrollbase.scrollDuration #

scrollbase.defaultCurve #

scrollbase.scrollbarH #

scrollbase.scrollbarV #

scrollbase.scrollSize #

scrollbase.scrollTo(val,duration?,curve?) #

scrollbase.terminate() #

Class: Textarea #

Textarea #

textarea.onScroll #

Class: Scroll #

Scroll #

scroll.onScroll #

Class: Video #

Video #

video.onStop #

video.onBuffering #