Quark
#
Modules #
quark/actionquark/appquark/bubblesquark/bufferquark/checkboxquark/cssquark/ctrquark/dialogquark/eventquark/fontquark/fsquark/hashquark/httpquark/indexquark/jsonbquark/keyboardquark/mediaquark/navquark/netquark/osquark/pathquark/pkgquark/screenquark/stepperquark/storagequark/testquark/typesquark/utilquark/viewquark/windowquark/wsquark/_bufferquark/_commonquark/_eventquark/_extquark/_md5quark/_sha1quark/_sha256quark/_utilquark/_watching
Quark v1.3.0 Documentation
Table of Contents
-
quark/view
- Enum: ViewType
- Interface: DOM
- ChildDOM
-
Class: View
- View
- view.childDoms
- 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.matrixView
- view.level
- view.layoutWeight
- view.layoutAlign
- view.isClip
- view.viewType
- view.position
- view.layoutOffset
- view.layoutSize
- view.center
- view.metaView
- view.visibleRegion
- view.ref
- view.style
- view.action
- view.class
- view.opacity
- view.cursor
- view.visible
- view.receive
- view.isFocus
- view.focus()
- view.show()
- view.hide()
- 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
- box.borderRadiusRightBottom
- box.borderRadiusLeftBottom
- 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
- box.clientSize
- Class: Flex
- Class: Flow
- Class: Free
- Class: Image
- Interface: MatrixView
- Class: Matrix
- Class: Sprite
- Class: 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
- Class: Button
- Class: Label
- Class: Label
-
Interface: ScrollView
- ScrollView
- scrollview.scrollbar
- scrollview.bounce
- scrollview.bounceLock
- scrollview.momentum
- scrollview.lockDirection
- scrollview.scrollX
- scrollview.scrollY
- scrollview.scroll
- scrollview.resistance
- scrollview.catchPositionX
- scrollview.catchPositionY
- scrollview.scrollbarColor
- scrollview.scrollbarWidth
- scrollview.scrollbarMargin
- scrollview.scrollDuration
- scrollview.defaultCurve
- scrollview.scrollbarH
- scrollview.scrollbarV
- scrollview.scrollSize
- scrollview.scrollTo(val,duration?,curve?)
- scrollview.terminate()
- Class: Textarea
- Class: Scroll
- Class: Video
quark/view #
Enum: ViewType #
ViewType #
ViewLabelBoxFlexFlowFreeImageVideoInputTextareaScrollTextButtonMatrixRootEnum_Counts
Interface: DOM #
DOM #
dom.ref #
@getref:string
dom.metaView #
@getmetaView:Viewmount point for view controller
dom.appendTo(parent) #
dom.afterTo(prev) #
dom.destroy(owner) #
destroy from owner
@paramowner:ViewController@returnvoid
ChildDOM #
Class: View #
View #
@extendsNotification<UIEvent>@implementsDOM
view.childDoms #
JSX system specific
@getchildDoms:ChildDOM[]
view.onClick #
@eventonClick:EventNoticer<ClickEvent>
view.onBack #
@eventonBack:EventNoticer<ClickEvent>
view.onKeyDown #
@eventonKeyDown:EventNoticer<KeyEvent>
view.onKeyPress #
@eventonKeyPress:EventNoticer<KeyEvent>
view.onKeyUp #
@eventonKeyUp:EventNoticer<KeyEvent>
view.onKeyEnter #
@eventonKeyEnter:EventNoticer<KeyEvent>
view.onTouchStart #
@eventonTouchStart:EventNoticer<TouchEvent>
view.onTouchMove #
@eventonTouchMove:EventNoticer<TouchEvent>
view.onTouchEnd #
@eventonTouchEnd:EventNoticer<TouchEvent>
view.onTouchCancel #
@eventonTouchCancel:EventNoticer<TouchEvent>
view.onMouseOver #
@eventonMouseOver:EventNoticer<MouseEvent>
view.onMouseOut #
@eventonMouseOut:EventNoticer<MouseEvent>
view.onMouseLeave #
@eventonMouseLeave:EventNoticer<MouseEvent>
view.onMouseEnter #
@eventonMouseEnter:EventNoticer<MouseEvent>
view.onMouseMove #
@eventonMouseMove:EventNoticer<MouseEvent>
view.onMouseDown #
@eventonMouseDown:EventNoticer<MouseEvent>
view.onMouseUp #
@eventonMouseUp:EventNoticer<MouseEvent>
view.onMouseWheel #
@eventonMouseWheel:EventNoticer<MouseEvent>
view.onFocus #
@eventonFocus:EventNoticer<UIEvent>
view.onBlur #
@eventonBlur:EventNoticer<UIEvent>
view.onHighlighted #
@eventonHighlighted:EventNoticer<HighlightedEvent>
view.onActionKeyframe #
@eventonActionKeyframe:EventNoticer<ActionEvent>
view.onActionLoop #
@eventonActionLoop:EventNoticer<ActionEvent>
view.cssclass #
@getcssclass:CStyleSheetsClass
view.parent #
view.prev #
view.next #
view.first #
view.last #
view.window #
@getwindow:Window
view.matrixView #
@getmatrixView:MatrixView|nulltop matrix view
view.level #
@getlevel:number
view.layoutWeight #
@getlayoutWeight:types.Vec2
view.layoutAlign #
@getlayoutAlign:types.Align
view.isClip #
@getisClip:boolean
view.viewType #
@getviewType:ViewType
view.position #
@getposition:types.Vec2@safe Rt
view.layoutOffset #
@getlayoutOffset:types.Vec2@safe Rt
view.layoutSize #
@getlayoutSize:types.Vec2@safe Rt
view.center #
@getcenter:types.Vec2@safe Rt
view.metaView #
@getmetaView:View
view.visibleRegion #
@getvisibleRegion:boolean
view.ref #
@getref:string
view.style #
style:StyleSheet
view.action #
view.class #
class:string[]settingonly method, cssclass.set()
view.opacity #
opacity:number
view.cursor #
cursor:types.CursorStyle
view.visible #
visible:boolean
view.receive #
receive:boolean
view.isFocus #
isFocus:boolean
view.focus() #
@returnboolean
view.show() #
Set visible = true
@returnvoid
view.hide() #
Set visible = false
@returnvoid
view.isSelfChild(child) #
view.before(view) #
view.after(view) #
view.prepend(view) #
view.append(view) #
view.remove() #
@returnvoid
view.removeAllChild() #
@returnvoid
view.overlapTest(point) #
@parampoint:types.Vec2@returnboolean
view.hashCode() #
@returnInt
view.appendTo(parent) #
view.afterTo(prev) #
view.destroy(owner) #
@paramowner:ViewController@returnvoid
view.transition(to,from?,cb?) #
@paramto:KeyframeIn@paramfrom?:KeyframeIn|ActionCb@paramcb?:ActionCb@returnKeyframeAction
view.constructor(win) #
@paramwin:Window
Class: Box #
Box #
@extendsView
box.clip #
clip:boolean
box.align #
align:types.Align
box.width #
width:types.BoxSize
box.height #
height:types.BoxSize
box.minWidth #
minWidth:types.BoxSize
box.minHeight #
minHeight:types.BoxSize
box.maxWidth #
maxWidth:types.BoxSize
box.maxHeight #
maxHeight:types.BoxSize
box.margin #
margin:number[]
box.marginTop #
marginTop:number
box.marginRight #
marginRight:number
box.marginBottom #
marginBottom:number
box.marginLeft #
marginLeft:number
box.padding #
padding:number[]
box.paddingTop #
paddingTop:number
box.paddingRight #
paddingRight:number
box.paddingBottom #
paddingBottom:number
box.paddingLeft #
paddingLeft:number
box.borderRadius #
borderRadius:number[]
box.borderRadiusLeftTop #
borderRadiusLeftTop:number
box.borderRadiusRightTop #
borderRadiusRightTop:number
box.borderRadiusRightBottom #
borderRadiusRightBottom:number
box.borderRadiusLeftBottom #
borderRadiusLeftBottom:number
box.border #
border:types.BoxBorder[]
box.borderTop #
borderTop:types.BoxBorder
box.borderRight #
borderRight:types.BoxBorder
box.borderBottom #
borderBottom:types.BoxBorder
box.borderLeft #
borderLeft:types.BoxBorder
box.borderWidth #
borderWidth:number[]
box.borderColor #
borderColor:types.Color[]
box.borderWidthTop #
borderWidthTop:number
box.borderWidthRight #
borderWidthRight:number
box.borderWidthBottom #
borderWidthBottom:number
box.borderWidthLeft #
borderWidthLeft:number
box.borderColorTop #
borderColorTop:types.Color
box.borderColorRight #
borderColorRight:types.Color
box.borderColorBottom #
borderColorBottom:types.Color
box.borderColorLeft #
borderColorLeft:types.Color
box.backgroundColor #
backgroundColor:types.Color
box.background #
background:types.BoxFilter|null
box.boxShadow #
boxShadow:types.BoxShadow|null
box.weight #
weight:types.Vec2
box.contentSize #
@getcontentSize:types.Vec2width,height, no include padding
box.clientSize #
@getclientSize:types.Vec2border + padding + content
Class: Flex #
Flex #
@extendsBox
flex.direction #
direction:types.Direction
flex.itemsAlign #
itemsAlign:types.ItemsAlign
flex.crossAlign #
crossAlign:types.CrossAlign
Class: Flow #
Flow #
@extendsFlex
flow.wrap #
wrap:types.Wrap
flow.wrapAlign #
wrapAlign:types.WrapAlign
Class: Free #
Free #
@extendsBox
Class: Image #
Image #
@extendsBox
image.onLoad #
@eventonLoad:EventNoticer<UIEvent>
image.onError #
@eventonError:EventNoticer<UIEvent>
image.src #
src:string
Interface: MatrixView #
MatrixView #
@extendsView
matrixview.translate #
translate:types.Vec2
matrixview.scale #
scale:types.Vec2
matrixview.skew #
skew:types.Vec2
matrixview.origin #
origin:types.BoxOrigin[]
matrixview.originX #
originX:types.BoxOrigin
matrixview.originY #
originY:types.BoxOrigin
matrixview.x #
x:number
matrixview.y #
y:number
matrixview.scaleX #
scaleX:number
matrixview.scaleY #
scaleY:number
matrixview.skewX #
skewX:number
matrixview.skewY #
skewY:number
matrixview.rotateZ #
rotateZ:number
matrixview.originValue #
@getoriginValue:number[]
matrixview.matrix #
@getmatrix:types.Mat
Class: Matrix #
Matrix #
@extendsBox@implementsMatrixView
Class: Sprite #
Sprite #
@extendsView@implementsMatrixView
sprite.onLoad #
@eventonLoad:EventNoticer<UIEvent>
sprite.onError #
@eventonError:EventNoticer<UIEvent>
sprite.src #
src:string
sprite.width #
width:number
sprite.height #
height:number
sprite.frame #
frame:Uint16
sprite.frames #
frames:Uint16
sprite.item #
item:Uint16
sprite.items #
items:Uint16
sprite.gap #
gap:Uint8
sprite.fsp #
fsp:Uint8
sprite.direction #
direction:types.Direction
sprite.playing #
playing:boolean
sprite.play(all?) #
sprite.stop(all?) #
Class: Root #
Root #
@extendsMatrix
Interface: TextOptions #
TextOptions #
textoptions.fontStyle #
@getfontStyle:number
textoptions.textAlign #
textAlign:types.TextAlign
textoptions.textWeight #
textWeight:types.TextWeight
textoptions.textSlant #
textSlant:types.TextSlant
textoptions.textDecoration #
textDecoration:types.TextDecoration
textoptions.textOverflow #
textOverflow:types.TextOverflow
textoptions.textWhiteSpace #
textWhiteSpace:types.TextWhiteSpace
textoptions.textWordBreak #
textWordBreak:types.TextWordBreak
textoptions.textSize #
textSize:types.TextSize
textoptions.textBackgroundColor #
textBackgroundColor:types.TextColor
textoptions.textColor #
textColor:types.TextColor
textoptions.textLineHeight #
textLineHeight:types.TextSize
textoptions.textShadow #
textShadow:types.TextShadow
textoptions.textFamily #
textFamily:types.TextFamily
textoptions.computeLayoutSize(text) #
@paramtext:string@returntypes.Vec2
Class: Text #
Text #
@extendsBox@implementsTextOptions
text.value #
value:string
Class: Button #
Button #
@extendsText
button.nextButton(dir) #
@paramdir:types.FindDirection@returnButton|null
Class: Label #
Label #
@extendsView@implementsTextOptions
label.value #
value:string
Class: Label #
Label #
@extendsBox@implementsTextOptions
label.onChange #
@eventonChange:EventNoticer<UIEvent>
label.security #
security:booleaninput
label.readonly #
readonly:boolean
label.type #
type:types.KeyboardType
label.returnType #
returnType:types.KeyboardReturnType
label.placeholderColor #
placeholderColor:types.Color
label.cursorColor #
cursorColor:types.Color
label.maxLength #
maxLength:number
label.value #
value:string
label.placeholder #
placeholder:string
label.textLength #
@gettextLength:number
Interface: ScrollView #
ScrollView #
@extendsBox
scrollview.scrollbar #
scrollbar:boolean
scrollview.bounce #
bounce:boolean
scrollview.bounceLock #
bounceLock:boolean
scrollview.momentum #
momentum:boolean
scrollview.lockDirection #
lockDirection:boolean
scrollview.scrollX #
scrollX:number
scrollview.scrollY #
scrollY:number
scrollview.scroll #
scroll:types.Vec2
scrollview.resistance #
resistance:number
scrollview.catchPositionX #
catchPositionX:number
scrollview.catchPositionY #
catchPositionY:number
scrollview.scrollbarColor #
scrollbarColor:types.Color
scrollview.scrollbarWidth #
scrollbarWidth:number
scrollview.scrollbarMargin #
scrollbarMargin:number
scrollview.scrollDuration #
scrollDuration:number
scrollview.defaultCurve #
defaultCurve:types.Curve
scrollview.scrollbarH #
@getscrollbarH:boolean
scrollview.scrollbarV #
@getscrollbarV:boolean
scrollview.scrollSize #
@getscrollSize:types.Vec2
scrollview.scrollTo(val,duration?,curve?) #
@paramval:types.Vec2@paramduration?:number@paramcurve?:types.Curve@returnvoid
scrollview.terminate() #
@returnvoid
Class: Textarea #
Textarea #
@extendsInput@implementsScrollView
textarea.onScroll #
@eventonScroll:EventNoticer<UIEvent>
Class: Scroll #
Scroll #
@extendsBox@implementsScrollView
scroll.onScroll #
@eventonScroll:EventNoticer<UIEvent>
Class: Video #
Video #
video.onStop #
@eventonStop:EventNoticer<UIEvent>
video.onBuffering #
@eventonBuffering:EventNoticer<UIEvent>