summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas.h
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-08 20:02:58 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-08 20:10:06 +0900
commit93dc78216c921d9bc07dc4ac99d291687f4f9679 (patch)
tree2407bde370feae5ef301854331b85a467d45f7cc /src/lib/evas/Evas.h
parent948ea1437908382e15bc53ccb8a38af242da25ea (diff)
Add multiple output api support to evas... just "eo infra stubs" right
now.
Diffstat (limited to 'src/lib/evas/Evas.h')
-rw-r--r--src/lib/evas/Evas.h210
1 files changed, 210 insertions, 0 deletions
diff --git a/src/lib/evas/Evas.h b/src/lib/evas/Evas.h
index 2548b18126..a56042e285 100644
--- a/src/lib/evas/Evas.h
+++ b/src/lib/evas/Evas.h
@@ -19413,6 +19413,216 @@ enum
19413 */ 19413 */
19414#define evas_obj_image_animated_frame_set(frame_index) EVAS_OBJ_IMAGE_ID(EVAS_OBJ_IMAGE_SUB_ID_ANIMATED_FRAME_SET), EO_TYPECHECK(int, frame_index) 19414#define evas_obj_image_animated_frame_set(frame_index) EVAS_OBJ_IMAGE_ID(EVAS_OBJ_IMAGE_SUB_ID_ANIMATED_FRAME_SET), EO_TYPECHECK(int, frame_index)
19415 19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429#define EVAS_OUT_CLASS evas_out_class_get()
19430const Eo_Class *evas_out_class_get(void) EINA_CONST;
19431extern EAPI Eo_Op EVAS_OUT_BASE_ID;
19432typedef Eo Evas_Out;
19433
19434enum
19435 {
19436 EVAS_OUT_SUB_ID_VIEW_SET,
19437 EVAS_OUT_SUB_ID_VIEW_GET,
19438 EVAS_OUT_SUB_ID_ENGINE_INFO_SET,
19439 EVAS_OUT_SUB_ID_ENGINE_INFO_GET,
19440 EVAS_OUT_SUB_ID_LAST
19441 };
19442
19443#define EVAS_OUT_ID(sub_id) (EVAS_OUT_BASE_ID + sub_id)
19444
19445/**
19446 * @def evas_out_view_set
19447 * @since 1.8
19448 *
19449 * Sets the viewport region of the canvas that the output displays
19450 *
19451 * This sets both the viewport region in the canvas that displays on the
19452 * given output, but also the viewport size will match the output
19453 * resolution 1:1.
19454 *
19455 * @param[in] x
19456 * @param[in] y
19457 * @param[in] w
19458 * @param[in] h
19459 *
19460 * @see evas_out_engine_info_set
19461 * @see evas_output_viewport_set
19462 * @see evas_output_size_set
19463 */
19464#define evas_out_view_set(x, y, w, h) \
19465 EVAS_OUT_ID(EVAS_OUT_SUB_ID_VIEW_SET), \
19466EO_TYPECHECK(Evas_Coord, x), \
19467EO_TYPECHECK(Evas_Coord, y), \
19468EO_TYPECHECK(Evas_Coord, w), \
19469EO_TYPECHECK(Evas_Coord, h)
19470
19471/**
19472 * @def evas_out_view_get
19473 * @since 1.8
19474 *
19475 * Gets the viewport region of the canvas that the output displays
19476 *
19477 * @param[out] x
19478 * @param[out] y
19479 * @param[out] w
19480 * @param[out] h
19481 *
19482 * @see evas_out_engine_info_get
19483 * @see evas_out_view_set
19484 * @see evas_output_viewport_get
19485 * @see evas_output_size_get
19486 */
19487#define evas_out_view_get(x, y, w, h) \
19488 EVAS_OUT_ID(EVAS_OUT_SUB_ID_VIEW_GET), \
19489EO_TYPECHECK(Evas_Coord *, x), \
19490EO_TYPECHECK(Evas_Coord *, y), \
19491EO_TYPECHECK(Evas_Coord *, w), \
19492EO_TYPECHECK(Evas_Coord *, h)
19493
19494/**
19495 * @def evas_out_engine_info_set
19496 * @since 1.8
19497 *
19498 * Sets the engine specific output parameters for a given output.
19499 *
19500 * @param[in] info The engine parameters
19501 * @param[out] ret Return value for success (EINA_TRUE for success)
19502 *
19503 * @see evas_out_engine_info_get
19504 * @see evas_output_viewport_set
19505 * @see evas_output_size_set
19506 */
19507#define evas_out_engine_info_set(info, ret) \
19508 EVAS_OUT_ID(EVAS_OUT_SUB_ID_ENGINE_INFO_SET), \
19509EO_TYPECHECK(Evas_Engine_Info *, info), \
19510EO_TYPECHECK(Eina_Bool *, ret)
19511
19512/**
19513 * @def evas_out_engine_info_get
19514 * @since 1.8
19515 *
19516 * Gets the engine specific output parameters for a given output.
19517 *
19518 * @param[ret] info The engine parameters return (NULL on failure)
19519 *
19520 * @see evas_out_engine_info_set
19521 * @see evas_output_viewport_get
19522 * @see evas_output_size_get
19523 */
19524#define evas_out_engine_info_get(ret) \
19525 EVAS_OUT_ID(EVAS_OUT_SUB_ID_ENGINE_INFO_GET), \
19526EO_TYPECHECK(Evas_Engine_Info **, ret)
19527
19528/**
19529 * @since 1.8
19530 *
19531 * Adds an output to the canvas
19532 *
19533 * @parem e The canvas to add the output to
19534 * @return The output
19535 *
19536 * @see evas_out_engine_info_set
19537 * @see evas_output_viewport_set
19538 * @see evas_output_size_set
19539 */
19540EAPI Evas_Out *evas_out_add(Evas *e);
19541
19542/**
19543 * @since 1.8
19544 *
19545 * Deletes an output
19546 *
19547 * @parem evo The output object
19548 *
19549 * @see evas_out_add
19550 */
19551EAPI void evas_output_del(Evas_Out *evo);
19552
19553/**
19554 * @since 1.8
19555 *
19556 * Sets the viewport region of the canvas that the output displays
19557 *
19558 * This sets both the viewport region in the canvas that displays on the
19559 * given output, but also the viewport size will match the output
19560 * resolution 1:1.
19561 *
19562 * @parem evo The output object
19563 * @param x The X coordinate of the viewport
19564 * @param y The Y coordinate of the viewport
19565 * @param w The Width of the viewport
19566 * @param h The Height of the viewport
19567 *
19568 * @see evas_out_engine_info_set
19569 * @see evas_output_viewport_set
19570 * @see evas_output_size_set
19571 */
19572EAPI void evas_output_view_set(Evas_Out *evo, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
19573
19574/**
19575 * @since 1.8
19576 *
19577 * Gets the viewport region of the canvas that the output displays
19578 *
19579 * @parem evo The output object
19580 * @param x Pointer to X return value
19581 * @param y Pointer to Y return value
19582 * @param w Pointer to Width return value
19583 * @param h Pointer to Height return value
19584 *
19585 * @see evas_out_engine_info_get
19586 * @see evas_out_view_set
19587 * @see evas_output_viewport_get
19588 * @see evas_output_size_get
19589 */
19590EAPI void evas_output_view_get(const Evas_Out *evo, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
19591
19592/**
19593 * @since 1.8
19594 *
19595 * Sets the engine specific output parameters for a given output.
19596 *
19597 * @parem evo The output object
19598 * @param info The engine parameters
19599 * @return EINA_TRUE for success.
19600 *
19601 * @see evas_out_engine_info_get
19602 * @see evas_output_viewport_set
19603 * @see evas_output_size_set
19604 */
19605EAPI Eina_Bool evas_output_engine_info_set(Evas_Out *evo, Evas_Engine_Info *info);
19606
19607/**
19608 * @since 1.8
19609 *
19610 * Gets the engine specific output parameters for a given output.
19611 *
19612 * @param evo The output object
19613 * @return info The engine parameters return (NULL on failure)
19614 *
19615 * @see evas_out_engine_info_set
19616 * @see evas_output_viewport_get
19617 * @see evas_output_size_get
19618 */
19619EAPI Evas_Engine_Info *evas_output_engine_info_get(const Evas_Out *evo);
19620
19621/*
19622 * XXX: need output add/del events on evas
19623 * XXX: need output name/id, label, data
19624 */
19625
19416#ifdef __cplusplus 19626#ifdef __cplusplus
19417} 19627}
19418#endif 19628#endif