2015-07-15 09:34:07 -07:00
|
|
|
import eina_types;
|
|
|
|
|
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-05-18 08:13:08 -07:00
|
|
|
m: const(Eina_Matrix3) *;
|
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 {
|
2015-05-18 08:13:08 -07:00
|
|
|
x: double;
|
|
|
|
y: double;
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property visibility {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
2015-06-10 06:34:54 -07:00
|
|
|
[[Makes the given Ector renderer visible or invisible.]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-06-10 06:34:54 -07:00
|
|
|
[[Retrieves whether or not the given Ector renderer is visible.]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-06-10 06:34:54 -07:00
|
|
|
v: bool; [[true if to make the object visible, false otherwise]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property color {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
2015-06-10 06:34:54 -07:00
|
|
|
[[Sets the general/main color of the given Ector renderer to the
|
|
|
|
given one.
|
2015-04-03 07:14:58 -07:00
|
|
|
|
2015-06-10 06:34:54 -07:00
|
|
|
These color values are expected to be premultiplied by alpha.
|
|
|
|
]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-06-10 06:34:54 -07:00
|
|
|
[[Retrieves the general/main color of the given Ector renderer.
|
2015-04-03 07:14:58 -07:00
|
|
|
|
2015-06-10 06:34:54 -07:00
|
|
|
Retrieves the main color's RGB component (and alpha channel)
|
|
|
|
values, which range from 0 to 255. 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.
|
2015-04-03 07:14:58 -07:00
|
|
|
|
2015-06-10 06:34:54 -07:00
|
|
|
Use null pointers on the components you're not interested in,
|
|
|
|
they'll be ignored by the function.
|
|
|
|
]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-06-10 06:34:54 -07:00
|
|
|
r: int; [[The red component of the given color.]]
|
|
|
|
g: int; [[The green component of the given color.]]
|
|
|
|
b: int; [[The blue component of the given color.]]
|
|
|
|
a: int; [[The alpha component of the given color.]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property mask {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:13:08 -07:00
|
|
|
r: Ector_Renderer *;
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property quality {
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:13:08 -07:00
|
|
|
q: Ector_Quality;
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
bounds_get {
|
|
|
|
params {
|
2015-07-15 09:34:07 -07:00
|
|
|
@out r: Eina.Rectangle;
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
draw {
|
|
|
|
return: bool @warn_unused;
|
|
|
|
params {
|
2015-05-18 08:13:08 -07:00
|
|
|
@in op: Ector_Rop;
|
2015-07-15 09:34:07 -07:00
|
|
|
@in clips: array<Eina.Rectangle *> *; [[array of @Eina.Rectangle clip]]
|
2015-05-18 08:13:08 -07:00
|
|
|
@in mul_col: uint;
|
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
|
|
|
}
|