forked from enlightenment/efl
57 lines
2.2 KiB
Plaintext
57 lines
2.2 KiB
Plaintext
interface Efl.Gfx.Fill {
|
|
legacy_prefix: null;
|
|
methods {
|
|
@property filled {
|
|
[[Binds the object's @.fill property to its actual geometry.
|
|
|
|
If $true, then every time the object is resized, it will
|
|
automatically trigger a call to @Efl.Gfx.Fill.fill.set
|
|
with the new size (and 0, 0 as source image's origin),
|
|
so the bound image will fill the whole object's area.
|
|
|
|
This property takes precedence over @.fill.
|
|
|
|
This flag is $true by default (used to be $false with the old APIs).
|
|
]]
|
|
set {}
|
|
get {}
|
|
values {
|
|
filled: bool; [[$true to make the fill property follow
|
|
object size or $false otherwise.]]
|
|
}
|
|
}
|
|
@property fill {
|
|
[[Specifies how to tile an image to fill its rectangle geometry.
|
|
|
|
Note that if $w or $h are smaller than the dimensions of the object,
|
|
the displayed image will be tiled around the object's area. To have
|
|
only one copy of the bound image drawn, $x and $y must be 0 and
|
|
$w and $h need to be the exact width and height of the image object
|
|
itself, respectively.
|
|
|
|
Note that this property has no effect if @.filled is $true.
|
|
]]
|
|
/* FIXME-doc
|
|
* See the following image to better understand the effects of this
|
|
* call. On this diagram, both image object and original image source
|
|
* have $a x $a dimensions and the image itself is a circle, with
|
|
* empty space around it:
|
|
|
|
* @image html image-fill.png
|
|
* @image rtf image-fill.png
|
|
* @image latex image-fill.eps
|
|
*/
|
|
set {}
|
|
get {}
|
|
values {
|
|
x: int; [[The x coordinate (from the top left corner of the bound
|
|
image) to start drawing from.]]
|
|
y: int; [[The y coordinate (from the top left corner of the bound
|
|
image) to start drawing from.]]
|
|
w: int; [[The width the bound image will be displayed at.]]
|
|
h: int; [[The height the bound image will be displayed at.]]
|
|
}
|
|
}
|
|
}
|
|
}
|