Shape
Спадковість: Sprite
Підтримувані платформи:
Available since version: Gideros 2011.6
Опис:
Клас Shape використовується для створення та відображення векторної графіки.
використання та приклади:
Малювання червоного квадратуlocal shape = Shape.new()
shape:setFillStyle(Shape.SOLID, 0xff0000, 1)
shape:beginPath()
shape:moveTo(0,0)
shape:lineTo(100, 0)
shape:lineTo(100, 100)
shape:lineTo(0, 100)
shape:lineTo(0, 0)
shape:endPath()
shape:setPosition(0, 150)
stage:addChild(shape)
Методи, евенти та властивості:
Методи |
---|
Shape.new |
Shape:beginPath |
Shape:clear |
Shape:closePath |
Shape:endPath |
Shape:lineTo |
Shape:moveTo |
Shape:setFillStyle |
Shape:setLineStyle |
Властивості |
---|
Shape.EVEN_ODD |
Shape.NONE |
Shape.NON_ZERO |
Shape.SOLID |
Shape.TEXTURE |
Успадковані методи |
---|
EventDispatcher.new |
EventDispatcher:addEventListener |
EventDispatcher:dispatchEvent |
EventDispatcher:hasEventListener |
EventDispatcher:removeEventListener |
Sprite.new |
Sprite:addChild |
Sprite:addChildAt |
Sprite:clearBlendMode |
Sprite:contains |
Sprite:get |
Sprite:getAlpha |
Sprite:getAnchorPosition |
Sprite:getBounds |
Sprite:getChildAt |
Sprite:getChildIndex |
Sprite:getClip |
Sprite:getColorTransform |
Sprite:getHeight |
Sprite:getMatrix |
Sprite:getNumChildren |
Sprite:getParent |
Sprite:getPosition |
Sprite:getRotation |
Sprite:getRotationX |
Sprite:getRotationY |
Sprite:getScale |
Sprite:getScaleX |
Sprite:getScaleY |
Sprite:getScaleZ |
Sprite:getSkew |
Sprite:getSkewX |
Sprite:getSkewY |
Sprite:getWidth |
Sprite:getX |
Sprite:getY |
Sprite:getZ |
Sprite:globalToLocal |
Sprite:hitTestPoint |
Sprite:isVisible |
Sprite:localToGlobal |
Sprite:removeChild |
Sprite:removeChildAt |
Sprite:removeFromParent |
Sprite:set |
Sprite:setAlpha |
Sprite:setAnchorPosition |
Sprite:setBlendMode |
Sprite:setClip |
Sprite:setColorTransform |
Sprite:setMatrix |
Sprite:setPosition |
Sprite:setRotation |
Sprite:setRotationX |
Sprite:setRotationY |
Sprite:setScale |
Sprite:setScaleX |
Sprite:setScaleY |
Sprite:setScaleZ |
Sprite:setShader |
Sprite:setShaderConstant |
Sprite:setSkew |
Sprite:setSkewX |
Sprite:setSkewY |
Sprite:setStencilOperation |
Sprite:setVisible |
Sprite:setX |
Sprite:setY |
Sprite:setZ |
Sprite:swapChildren |
Sprite:swapChildrenAt |
Object:getBaseClass |
Object:getClass |
Object:isInstanceOf |
Успадковані властивості |
---|
Sprite.ADD |
Sprite.ALPHA |
Sprite.MULTIPLY |
Sprite.NO_ALPHA |
Sprite.SCREEN |
Успадковані події |
---|
Event.APPLICATION_BACKGROUND |
Event.APPLICATION_EXIT |
Event.APPLICATION_FOREGROUND |
Event.APPLICATION_RESIZE |
Event.APPLICATION_RESUME |
Event.APPLICATION_START |
Event.APPLICATION_SUSPEND |
Event.MEMORY_WARNING |
Event.ADDED_TO_STAGE |
Event.ENTER_FRAME |
Event.KEY_DOWN |
Event.KEY_UP |
Event.MOUSE_DOWN |
Event.MOUSE_HOVER |
Event.MOUSE_MOVE |
Event.MOUSE_UP |
Event.MOUSE_WHEEL |
Event.REMOVED_FROM_STAGE |
Event.TOUCHES_BEGIN |
Event.TOUCHES_CANCEL |
Event.TOUCHES_END |
Event.TOUCHES_MOVE |
Немає коментарів:
Дописати коментар