Layer
Layer class is a class for managing
layers
.
メンバ
コンストラクタ
Layer
メソッド
adjustGamma
( Gamma correction )
affineCopy
( Affine transformation copy )
assignImages
( Copy image )
beginTransition
( Start transition )
bringToBack
( Move to the end )
bringToFront
( Move to the front )
colorRect
( Rectangular translucent fill )
convertType
( Conversion of layer image representation format )
copy9Patch
( 9 Image copy using path (1.3.0 or later) )
copyFromBitmapToMainImage
( Copy image from Bitmap )
copyRect
( Rectangle copy )
copyToBitmapFromMainImage
( Copy image to Bitmap )
doBoxBlur
( Apply a rectangular blur )
doGrayScale
( Grayscale conversion )
drawGlyph
( Character drawing )
drawText
( Character drawing )
fillRect
( Rectangle fill )
flipLR
( Flip horizontal )
flipUD
( flip upside down )
focus
( Set focus )
focusNext
( Set focus on layer behind )
focusPrev
( Set focus on the previous layer )
getLayerAt
( Get layer at specified position )
getMainPixel
( Get main image color )
getMaskPixel
( Get value of mask image )
getProvincePixel
( Get area image values )
independMainImage
( Unshare main image )
independProvinceImage
( Unsharing area image )
loadImages
( Loading images )
loadProvinceImage
( Load area image )
moveBefore
( Move to before specified layer )
moveBehind
( Move to the back of the specified layer )
operateAffine
( Affine transform arithmetic synthesis )
operateRect
( Rectangle operation composition )
operateStretch
( Scaling operation synthesis )
piledCopy
( Copy the image with the layers superimposed )
releaseCapture
( Cancel mouse event capture )
removeMode
( Cancel modal state )
saveLayerImage
( Saving images )
setAttentionPos
( Gaze position designation )
setClip
( Setting the drawing clip rectangle )
setCursorPos
( Specify mouse cursor position )
setImagePos
( Set layer image offset )
setImageSize
( Setting the layer image size )
setMainPixel
( Setting the color of the main image )
setMaskPixel
( Setting mask image values )
setMode
( Enter modal state )
setPos
( Setting the layer display position )
setProvincePixel
( Setting the value of the area image )
setSize
( Setting the layer display size )
setSizeToImageSize
( Match layer display size to image size )
stopTransition
( Stop transition )
stretchCopy
( Scaling copy )
update
( Update image )
プロパティ
absolute
( Absolute position )
absoluteOrderMode
( Whether to use the absolute position mode )
attentionLeft
( Gaze left end position )
attentionTop
( Gaze top position )
cached
( Whether to cache )
callOnPaint
( whether to call the onPaint event )
children
( Child layer array )
clipHeight
( Drawing clip rectangle vertical width )
clipLeft
( Left edge position of drawing clip rectangle )
clipTop
( Draw clip rectangle top position )
clipWidth
( Drawing clip rectangle width )
cursor
( Mouse cursor )
cursorX
( Mouse cursor x position )
cursorY
( Mouse cursor y position )
enabled
( Operable )
face
( Drawing method )
focusable
( Whether to receive focus )
focused
( Whether it is focused )
font
( font )
hasImage
( Whether the layer has an image )
height
( Vertical width )
hint
( Hint )
hitThreshold
( Threshold for hit judgment )
hitType
( Type of hit judgment )
holdAlpha
( Whether to protect the alpha channel )
ignoreHintSensing
( Hint display judgment )
imageHeight
( Image vertical width )
imageLeft
( Layer image left edge offset )
imageModified
( Whether the image has changed )
imageTop
( Layer image top offset )
imageWidth
( Image width )
imeMode
( IME mode )
isPrimary
( Whether it is a primary layer )
joinFocusChain
( Whether to join the focus chain )
left
( Left end position )
mainImageBuffer
( Main image buffer pointer )
mainImageBufferForWrite
( Main image buffer pointer (for writing) )
mainImageBufferPitch
( Main image buffer pitch )
name
( Layer name )
neutralColor
( Neutral color )
nextFocusable
( Layer that can receive backward focus )
nodeEnabled
( Whether the layer node is operable )
nodeVisible
( Whether the node is visible )
opacity
( Opacity )
order
( relative position )
parent
( Parent layer )
prevFocusable
( Layer to receive forward focus )
provinceImageBuffer
( Area image buffer pointer )
provinceImageBufferForWrite
( Area image buffer pointer (for writing) )
provinceImageBufferPitch
( Area image buffer pitch )
showParentHint
( Keep parent layer hints )
top
( Top position )
type
( Layer display type )
useAttention
( Whether to use fixation information )
visible
( Visible )
width
( Width )
window
( Window object )
イベント
onBeforeFocus
( Just before receiving focus )
onBlur
( Lost focus )
onClick
( Layer clicked )
onDoubleClick
( Layer is double-clicked )
onFocus
( Got focus )
onHitTest
( collision detection )
onKeyDown
( Key pressed )
onKeyPress
( Character entered )
onKeyUp
( Key released )
onMouseDown
( Mouse button pressed )
onMouseEnter
( Mouse came in )
onMouseLeave
( Mouse came out )
onMouseMove
( Mouse moved )
onMouseUp
( Mouse button released )
onMouseWheel
( Mouse wheel rotated )
onMultiTouch
( Multi-touch status changed )
onNodeDisabled
( Node becomes inoperable )
onNodeEnabled
( Node is operational )
onPaint
( When drawn )
onSearchNextFocusable
( Search backward for focusable layers )
onSearchPrevFocusable
( Search forward for focusable layers )
onTouchDown
( Screen touched )
onTouchMove
( Finger moved )
onTouchRotate
( Rotated )
onTouchScaling
( Enlarged operation )
onTouchUp
( Finger released from screen )
onTransitionCompleted
( Transition ended )