new lime.fill.Frame(img, rect, opt_offset, opt_size, opt_rotated)
Image fill.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
img |
string | Image | lime.Sprite | Image. | |
rect |
goog.math.Rect | number | Crop frame. | |
opt_offset |
goog.math.Vec2 |
<optional> |
Frame offset. |
opt_size |
goog.math.Size |
<optional> |
Frame size. |
opt_rotated |
boolean |
<optional> |
Is frame rotated. |
- Source:
- fill/frame.js, line 23
Extends
Summary
Members |
||
---|---|---|
<private> |
dataCache_
|
|
id :string
Common name for Frame objects
|
||
USE_CSS_CANVAS :boolean
|
Methods |
||
---|---|---|
getImageElement ()
|
||
<private> |
getNextCssClass_ ()
|
|
initForSprite ()
|
||
<private> |
makeFrameData_ ()
|
|
setDOMStyle ()
|
Inherited
Members
-
<private> dataCache_
-
- Source:
- fill/frame.js, line 79
-
id :string
-
Common name for Frame objects
- Source:
- fill/frame.js, line 74
-
USE_CSS_CANVAS :boolean
-
- Source:
- fill/frame.js, line 84
Methods
-
getImageElement()
-
- Source:
- fill/frame.js, line 160
-
<private> getNextCssClass_()
-
- Source:
- fill/frame.js, line 120
-
initForSprite()
-
- Source:
- fill/frame.js, line 89
-
<private> makeFrameData_()
-
- Source:
- fill/frame.js, line 128
-
setDOMStyle()
-
- Source:
- fill/frame.js, line 214