2015-07-15 09:34:07 -07:00
|
|
|
import eina_types;
|
|
|
|
|
2016-02-16 06:39:30 -08:00
|
|
|
enum Ector.Quality
|
|
|
|
{
|
|
|
|
[[Quality values]]
|
|
|
|
best, [[Best quality]]
|
|
|
|
good, [[Good quality]]
|
|
|
|
fast, [[Lower quality]]
|
2016-10-24 10:57:13 -07:00
|
|
|
last, [[Sentinel value to indicate last enum field during iteration]]
|
2016-02-16 06:39:30 -08:00
|
|
|
}
|
|
|
|
|
2016-08-10 07:23:04 -07:00
|
|
|
abstract Ector.Renderer (Efl.Object)
|
2015-04-03 07:14:58 -07:00
|
|
|
{
|
2016-04-22 03:52:42 -07:00
|
|
|
[[Ector renderer abstract interface]]
|
|
|
|
|
2015-04-03 07:14:58 -07:00
|
|
|
eo_prefix: ector_renderer;
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
2015-11-15 13:57:48 -08:00
|
|
|
@property surface {
|
2016-04-22 03:52:42 -07:00
|
|
|
[[Surface associated to this renderer]]
|
2015-11-15 13:57:48 -08:00
|
|
|
set {
|
|
|
|
[[Do not use.]]
|
|
|
|
}
|
|
|
|
get {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Gets the surface associated to this renderer. Can not be set.]]
|
2015-11-15 13:57:48 -08:00
|
|
|
}
|
|
|
|
values {
|
2016-05-23 07:41:28 -07:00
|
|
|
s: Ector.Surface; [[Associated surface]]
|
2015-11-15 13:57:48 -08:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property transformation {
|
2016-11-15 06:55:09 -08:00
|
|
|
[[Transformation property]]
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-15 06:55:09 -08:00
|
|
|
m: ptr(const(Eina.Matrix3)); [[Transformation matrix]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property origin {
|
2016-11-15 06:55:09 -08:00
|
|
|
[[Renderer origin]]
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-15 06:55:09 -08:00
|
|
|
x: double; [[X coordinate]]
|
|
|
|
y: double; [[Y coordinate]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property visibility {
|
2016-04-22 03:52:42 -07:00
|
|
|
[[The given Ector renderer visible or invisible.]]
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-15 06:55:09 -08: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 {
|
2016-04-22 03:52:42 -07:00
|
|
|
[[Retrieves the general/main color of the given Ector renderer.
|
|
|
|
|
|
|
|
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
|
|
|
|
2016-04-22 03:52:42 -07:00
|
|
|
Use null pointers on the components you're not interested in,
|
|
|
|
they'll be ignored by the function.
|
|
|
|
]]
|
|
|
|
set {
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
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 {
|
2016-11-15 06:55:09 -08:00
|
|
|
[[Rendering mask]]
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-15 06:55:09 -08:00
|
|
|
r: Ector.Renderer; [[Rendering mask]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property quality {
|
2016-04-22 03:52:42 -07:00
|
|
|
[[Quality of the renderer]]
|
2015-04-03 07:14:58 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-04-22 03:52:42 -07:00
|
|
|
q: Ector.Quality; [[Quality of the renderer]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-09-16 22:55:52 -07:00
|
|
|
@property crc {
|
2016-04-22 03:52:42 -07:00
|
|
|
[[Cyclic redundancy check]]
|
2015-09-16 22:55:52 -07:00
|
|
|
get {
|
2016-04-22 03:52:42 -07:00
|
|
|
return: uint; [[CRC value]]
|
2015-09-16 22:55:52 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
bounds_get @pure_virtual {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Retrieves the bounds of the renderer]]
|
2015-04-03 07:14:58 -07:00
|
|
|
params {
|
2017-09-13 19:59:44 -07:00
|
|
|
@out r: Eina.Rect; [[Bounds as @Eina.Rect]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
draw @pure_virtual {
|
2016-11-15 06:55:09 -08:00
|
|
|
[[Actual draw operation]]
|
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2015-04-03 07:14:58 -07:00
|
|
|
params {
|
2016-11-15 06:55:09 -08:00
|
|
|
@in op: Efl.Gfx.Render_Op; [[Renderer operation]]
|
2017-09-13 19:59:44 -07:00
|
|
|
@in clips: array<ptr(Eina.Rect)>; [[Array of @Eina.Rect clip]]
|
2016-11-15 06:55:09 -08:00
|
|
|
@in mul_col: uint; [[Premultiplied color]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
prepare {
|
2016-11-15 06:55:09 -08:00
|
|
|
[[Prepare for rendering]]
|
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
done @pure_virtual {
|
2016-11-15 06:55:09 -08:00
|
|
|
[[Done with rendering]]
|
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-04-03 07:15:43 -07:00
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.destructor;
|
|
|
|
Efl.Object.finalize;
|
2015-04-03 07:15:43 -07:00
|
|
|
}
|
2015-04-03 07:14:58 -07:00
|
|
|
}
|