Tizen Native API
|
Functions | |
void | evas_output_framespace_set (Evas_Canvas *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) |
Sets the output framespace size of the render engine of the given evas. | |
void | evas_output_framespace_get (const Evas_Canvas *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) |
Get the render engine's output framespace co-ordinates in canvas units. | |
void | evas_output_viewport_set (Evas_Canvas *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) |
Sets the output viewport of the given evas in evas units. | |
void | evas_output_viewport_get (const Evas_Canvas *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) |
Get the render engine's output viewport co-ordinates in canvas units. | |
void | evas_output_size_set (Evas_Canvas *obj, int w, int h) |
Sets the output size of the render engine of the given evas. | |
void | evas_output_size_get (const Evas_Canvas *obj, int *w, int *h) |
Retrieve the output size of the render engine of the given evas. |
Functions that set and retrieve the output and viewport size of an evas.
Function Documentation
void evas_output_framespace_get | ( | const Evas_Canvas * | obj, |
Evas_Coord * | x, | ||
Evas_Coord * | y, | ||
Evas_Coord * | w, | ||
Evas_Coord * | h | ||
) |
Get the render engine's output framespace co-ordinates in canvas units.
- Since :
- 2.3
- Since (EFL) :
- 1.1
- Parameters:
-
[in] obj The canvas object [out] x The left coordinate in output units, usually pixels. [out] y The top coordinate in output units, usually pixels. [out] w The width in output units, usually pixels. [out] h The height in output units, usually pixels.
void evas_output_framespace_set | ( | Evas_Canvas * | obj, |
Evas_Coord | x, | ||
Evas_Coord | y, | ||
Evas_Coord | w, | ||
Evas_Coord | h | ||
) |
Sets the output framespace size of the render engine of the given evas.
- Since :
- 2.3
- Remarks:
- The framespace size is used in the Wayland engines to denote space where the output is not drawn. This is mainly used in ecore_evas to draw borders
-
The units used for
w
andh
depend on the engine used by the evas.
- Since (EFL) :
- 1.1
- Parameters:
-
[in] obj The canvas object [in] x The left coordinate in output units, usually pixels. [in] y The top coordinate in output units, usually pixels. [in] w The width in output units, usually pixels. [in] h The height in output units, usually pixels.
void evas_output_size_get | ( | const Evas_Canvas * | obj, |
int * | w, | ||
int * | h | ||
) |
Retrieve the output size of the render engine of the given evas.
- Since :
- 2.3
- Remarks:
- The output size is given in whatever the output units are for the engine.
-
If either
w
orh
isNULL
, then it is ignored. Ife
is invalid, the returned results are undefined.
- Parameters:
-
[in] obj The canvas object [out] w The width in output units, usually pixels. [out] h The height in output units, usually pixels.
void evas_output_size_set | ( | Evas_Canvas * | obj, |
int | w, | ||
int | h | ||
) |
Sets the output size of the render engine of the given evas.
- Since :
- 2.3
- Remarks:
- The evas will render to a rectangle of the given size once this function is called. The output size is independent of the viewport size. The viewport will be stretched to fill the given rectangle.
-
The units used for
w
andh
depend on the engine used by the evas.
- Parameters:
-
[in] obj The canvas object [in] w The width in output units, usually pixels. [in] h The height in output units, usually pixels.
void evas_output_viewport_get | ( | const Evas_Canvas * | obj, |
Evas_Coord * | x, | ||
Evas_Coord * | y, | ||
Evas_Coord * | w, | ||
Evas_Coord * | h | ||
) |
Get the render engine's output viewport co-ordinates in canvas units.
- Since :
- 2.3
- Remarks:
- Calling this function writes the current canvas output viewport size and location values into the variables pointed to by
x
,y
,w
andh
. On success the variables have the output location and size values written to them in canvas units. Any ofx
,y
,w
orh
that areNULL
will not be written to. Ife
is invalid, the results are undefined. -
Example:
extern Evas *evas; Evas_Coord x, y, width, height; evas_output_viewport_get(evas, &x, &y, &w, &h);
- Parameters:
-
[in] obj The canvas object [out] x The top-left corner x value of the viewport. [out] y The top-left corner y value of the viewport. [out] w The width of the viewport. Must be greater than 0. [out] h The height of the viewport. Must be greater than 0.
void evas_output_viewport_set | ( | Evas_Canvas * | obj, |
Evas_Coord | x, | ||
Evas_Coord | y, | ||
Evas_Coord | w, | ||
Evas_Coord | h | ||
) |
Sets the output viewport of the given evas in evas units.
- Since :
- 2.3
- Remarks:
- The output viewport is the area of the evas that will be visible to the viewer. The viewport will be stretched to fit the output target of the evas when rendering is performed.
- The coordinate values do not have to map 1-to-1 with the output target. However, it is generally advised that it is done for ease of use.
- Parameters:
-
[in] obj The canvas object [in] x The top-left corner x value of the viewport. [in] y The top-left corner y value of the viewport. [in] w The width of the viewport. Must be greater than 0. [in] h The height of the viewport. Must be greater than 0.