Layer

The Layer class is a class for managing layers.

Member

Constructor
Layer (Building a Layer object)
Method
adjustGamma (Gamma correction)
affineCopy (Affine transformation copy)
assignImages (Copy of image)
beginTransition (Start of transition)
bringToBack (Move to the back)
bringToFront (Move to the front)
colorRect (Rectangle translucent fill)
convertType (Layer image representation format conversion)
copy9Patch (Image copy using 9 path)
copyFromBitmapToMainImage (Copy image from Bitmap)
copyRect (Rectangle copy)
copyToBitmapFromMainImage (Copy image to Bitmap)
doBoxBlur (Apply rectangular blur)
doGrayScale (Grayscale conversion)
drawGlyph (Character drawing)
drawText (Character drawing)
fillRect (Rectangle fill)
flipLR (Flip horizontal)
flipUD (flip upside down)
focus (Focus setting)
focusNext (Set focus on the back layer)
focusPrev (Set focus on the previous layer)
getLayerAt (Get the layer at the specified position)
getMainPixel (Get the color of the main image)
getMaskPixel (Get the value of the mask image)
getProvincePixel (Get the value of the area image)
independMainImage (Unsharing the main image)
independProvinceImage (Canceling sharing of area images)
loadImages (Image loading)
loadProvinceImage (Loading area image)
moveBefore (Move to the front of the specified layer)
moveBehind (Move to the back of the specified layer)
operateAffine (Affine transformation arithmetic composition)
operateRect (Rectangle arithmetic composition)
operateStretch (Enlargement / reduction operation composition)
piledCopy (Copy the image with the layers superimposed)
releaseCapture (Cancel mouse event capture)
removeMode (Release the modal state)
saveLayerImage (Save image)
setAttentionPos (Designation of gaze position)
setClip (Drawing clip rectangle settings)
setCursorPos (Specifying the mouse cursor position)
setImagePos (Layer image offset setting)
setImageSize (Layer image size setting)
setMainPixel (Main image color settings)
setMaskPixel (Setting the value of the mask image)
setMode (Make it modal)
setPos (Layer display position setting)
setProvincePixel (Setting the value of the area image)
setSize (Layer display size setting)
setSizeToImageSize (Match the layer display size to the image size)
stopTransition (Stop the transition)
stretchCopy (Enlargement / reduction copy)
update (Image update)
Property
absolute (Absolute position)
absoluteOrderMode (Whether it is in absolute position mode)
attentionLeft (Gaze left end position)
attentionTop (Gaze upper end position)
cached (Do you want to cache)
callOnPaint (Whether to call the onPaint event)
children (Child layer array)
clipHeight (Drawing clip rectangle vertical width)
clipLeft (Drawing clip rectangle left edge position)
clipTop (Top position of drawing clip rectangle)
clipWidth (Drawing clip rectangle width)
cursor (Mouse cursor)
cursorX (Mouse cursor x position)
cursorY (Mouse cursor y position)
enabled (Whether it can be operated)
face (Drawing method)
focusable (Whether to receive focus)
focused (Whether it is in focus)
font (font)
hasImage (Whether the layer has an image)
height (Vertical width)
hint (Tips)
hitThreshold (Threshold value for collision detection)
hitType (Collision detection type)
holdAlpha (Whether to protect the alpha channel)
ignoreHintSensing (Hint display judgment presence / absence)
imageHeight (Image height)
imageLeft (Layer image left edge offset)
imageModified (Did the image change?)
imageTop (Layer image top offset)
imageWidth (Image width)
imeMode (IME mode)
isPrimary (Whether it is the primary layer)
joinFocusChain (Whether to join the focus chain)
left (Leftmost 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 rear focus)
nodeEnabled (Whether the layer node can be operated)
nodeVisible (Whether the node is visible)
opacity (Opacity)
order (relative position)
parent (Parent layer)
prevFocusable (Layer that can receive forward focus)
provinceImageBuffer (Area image buffer pointer)
provinceImageBufferForWrite (Area image buffer pointer (for writing))
provinceImageBufferPitch (Area image buffer pitch)
showParentHint (Do you want to take over the hint of the parent layer?)
top (Top position)
type (Layer display type)
useAttention (Whether to use gaze information)
visible (Whether it is visible)
width (Width)
window (Window object)
Event
onBeforeFocus (Immediately before receiving focus)
onBlur (Lost focus)
onClick (The layer was clicked)
onDoubleClick (The layer was double-clicked)
onFocus (Got focus)
onHitTest (collision detection)
onKeyDown (The key was pressed)
onKeyPress (Characters have been entered)
onKeyUp (The key was released)
onMouseDown (Mouse button pressed)
onMouseEnter (The mouse came in)
onMouseLeave (The mouse came out)
onMouseMove (The mouse has moved)
onMouseUp (Mouse button released)
onMouseWheel (Mouse wheel rotated)
onMultiTouch (Multi-touch state changed)
onNodeDisabled (Node becomes inoperable)
onNodeEnabled (The node is now operational)
onPaint (When drawn)
onSearchNextFocusable (Search backwards for focusable layers)
onSearchPrevFocusable (Search forward for focusable layers)
onTouchDown (The screen was touched)
onTouchMove (The finger has moved)
onTouchRotate (Rotated)
onTouchScaling (Enlarged operation)
onTouchUp (Your finger was released from the screen)
onTransitionCompleted (The transition is over)