2015-04-03 07:15:41 -07:00
|
|
|
abstract Ector.Renderer.Generic.Base (Eo.Base)
|
2015-04-03 07:14:58 -07:00
|
|
|
{
|
|
|
|
eo_prefix: ector_renderer;
|
|
|
|
legacy_prefix: null;
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
|
|
|
@property transformation {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-04-03 07:15:00 -07:00
|
|
|
const(Eina_Matrix3) *m;
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property origin {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
double x;
|
|
|
|
double y;
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property visibility {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
/*@ Makes the given Ector renderer visible or invisible. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ Retrieves whether or not the given Ector renderer is visible. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
bool v; /*@ @c EINA_TRUE if to make the object visible, @c EINA_FALSE otherwise */
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property color {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Sets the general/main color of the given Ector renderer to the given
|
|
|
|
one.
|
|
|
|
|
|
|
|
@note These color values are expected to be premultiplied by @p a.
|
|
|
|
|
|
|
|
@ingroup Ector_Renderer_Group_Basic */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Retrieves the general/main color of the given Ector renderer.
|
|
|
|
|
|
|
|
Retrieves the “main” color's RGB component (and alpha channel)
|
|
|
|
values, <b>which range from 0 to 255</b>. For the alpha channel,
|
|
|
|
which defines the object's transparency level, 0 means totally
|
|
|
|
transparent, while 255 means opaque. These color values are
|
|
|
|
premultiplied by the alpha value.
|
|
|
|
|
|
|
|
@note Use @c NULL pointers on the components you're not interested
|
|
|
|
in: they'll be ignored by the function.
|
|
|
|
|
|
|
|
@ingroup Ector_Renderer_Group_Basic */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
int r; /*@ The red component of the given color. */
|
|
|
|
int g; /*@ The green component of the given color. */
|
|
|
|
int b; /*@ The blue component of the given color. */
|
|
|
|
int a; /*@ The alpha component of the given color. */
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property mask {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Ector_Renderer *r;
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property quality {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Ector_Quality q;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bounds_get {
|
|
|
|
params {
|
2015-04-03 07:34:29 -07:00
|
|
|
@out Eina_Rectangle r;
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
draw {
|
|
|
|
return: bool @warn_unused;
|
|
|
|
params {
|
|
|
|
@in Ector_Rop op;
|
|
|
|
@in array<Eina_Rectangle *> *clips; /*@ array of Eina_Rectangle clip */
|
2015-04-03 07:22:16 -07:00
|
|
|
@in uint mul_col;
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
prepare {
|
|
|
|
return: bool @warn_unused;
|
|
|
|
params {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
done {
|
|
|
|
return: bool @warn_unused;
|
|
|
|
}
|
|
|
|
}
|
2015-04-03 07:15:43 -07:00
|
|
|
implements {
|
2015-04-03 07:38:18 -07:00
|
|
|
Eo.Base.destructor;
|
2015-04-03 07:15:43 -07:00
|
|
|
@virtual .draw;
|
|
|
|
@virtual .bounds_get;
|
|
|
|
@virtual .done;
|
|
|
|
}
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|