Functions that deals with fonts. More...
Modules | |
| Font Path Functions | |
| Functions that edit the paths being used to load fonts. | |
Typedefs | |
| typedef enum _Evas_Font_Hinting_Flags | Evas_Font_Hinting_Flags |
| Flags for Font Hinting. More... | |
Enumerations | |
| enum | _Evas_Font_Hinting_Flags { EVAS_FONT_HINTING_NONE, EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE } |
| Flags for Font Hinting. More... | |
Functions | |
| EOAPI void | evas_canvas_font_cache_set (int size) |
| Changes the size of font cache of the given evas. More... | |
| EOAPI int | evas_canvas_font_cache_get (void) |
| Changes the size of font cache of the given evas. More... | |
| EOAPI void | evas_canvas_font_hinting_set (Evas_Font_Hinting_Flags hinting) |
| Changes the font hinting for the given evas. More... | |
| EOAPI Evas_Font_Hinting_Flags | evas_canvas_font_hinting_get (void) |
| Retrieves the font hinting used by the given evas. More... | |
| EOAPI void | evas_canvas_font_cache_flush (void) |
| Force the given evas and associated engine to flush its font cache. | |
| EOAPI Eina_Bool | evas_canvas_font_hinting_can_hint (Evas_Font_Hinting_Flags hinting) |
| Checks if the font hinting is supported by the given evas. More... | |
| EOAPI Eina_List * | evas_canvas_font_available_list (void) |
| List of available font descriptions known or found by this evas. More... | |
| void | eo_cxx::evas::canvas::font_cache_flush () const |
| Force the given evas and associated engine to flush its font cache. | |
| bool | eo_cxx::evas::canvas::font_hinting_can_hint (Evas_Font_Hinting_Flags hinting_) const |
| Checks if the font hinting is supported by the given evas. More... | |
| ::efl::eina::optional< ::efl::eina::range_list< std::string > > | eo_cxx::evas::canvas::font_available_list () const |
| List of available font descriptions known or found by this evas. More... | |
| int | eo_cxx::evas::canvas::font_cache_get () const |
| Changes the size of font cache of the given evas. More... | |
| void | eo_cxx::evas::canvas::font_cache_set (int size_) const |
| Changes the size of font cache of the given evas. More... | |
| Evas_Font_Hinting_Flags | eo_cxx::evas::canvas::font_hinting_get () const |
| Retrieves the font hinting used by the given evas. More... | |
| void | eo_cxx::evas::canvas::font_hinting_set (Evas_Font_Hinting_Flags hinting_) const |
| Changes the font hinting for the given evas. More... | |
| void | evas::canvas::font_cache_flush () const |
| Force the given evas and associated engine to flush its font cache. | |
| bool | evas::canvas::font_hinting_can_hint (Evas_Font_Hinting_Flags hinting_) const |
| Checks if the font hinting is supported by the given evas. More... | |
| ::efl::eina::optional< ::efl::eina::range_list< std::string > > | evas::canvas::font_available_list () const |
| List of available font descriptions known or found by this evas. More... | |
| int | evas::canvas::font_cache_get () const |
| Changes the size of font cache of the given evas. More... | |
| void | evas::canvas::font_cache_set (int size_) const |
| Changes the size of font cache of the given evas. More... | |
| Evas_Font_Hinting_Flags | evas::canvas::font_hinting_get () const |
| Retrieves the font hinting used by the given evas. More... | |
| void | evas::canvas::font_hinting_set (Evas_Font_Hinting_Flags hinting_) const |
| Changes the font hinting for the given evas. More... | |
| void | evas_font_cache_set (Evas_Canvas *obj, int size) |
| Changes the size of font cache of the given evas. More... | |
| int | evas_font_cache_get (const Evas_Canvas *obj) |
| Changes the size of font cache of the given evas. More... | |
| void | evas_font_hinting_set (Evas_Canvas *obj, Evas_Font_Hinting_Flags hinting) |
| Changes the font hinting for the given evas. More... | |
| Evas_Font_Hinting_Flags | evas_font_hinting_get (const Evas_Canvas *obj) |
| Retrieves the font hinting used by the given evas. More... | |
| void | evas_font_cache_flush (Evas_Canvas *obj) |
| Force the given evas and associated engine to flush its font cache. | |
| Eina_Bool | evas_font_hinting_can_hint (const Evas_Canvas *obj, Evas_Font_Hinting_Flags hinting) |
| Checks if the font hinting is supported by the given evas. More... | |
| Eina_List * | evas_font_available_list (const Evas_Canvas *obj) |
| List of available font descriptions known or found by this evas. More... | |
| void | evas_font_available_list_free (Evas *e, Eina_List *available) |
| Free list of font descriptions returned by evas_font_dir_available_list(). More... | |
| void | evas_object_ref (Evas_Object *obj) |
| Increments object reference count to defer its deletion. More... | |
| void | evas_object_unref (Evas_Object *obj) |
| Decrements object reference count. More... | |
| int | evas_object_ref_get (const Evas_Object *obj) |
| Get the object reference count. More... | |
| void | evas_object_del (Evas_Object *obj) |
| Marks the given Evas object for deletion (when Evas will free its memory). More... | |
| void | evas_object_geometry_get (const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) |
| Retrieves the position and (rectangular) size of the given Evas object. More... | |
| void | evas_object_geometry_set (Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) |
| Set the position and (rectangular) size of the given Evas object. More... | |
| void | evas_object_show (Evas_Object *obj) |
| Makes the given Evas object visible. More... | |
| void | evas_object_hide (Evas_Object *obj) |
| Makes the given Evas object invisible. More... | |
Functions that deals with fonts.
| typedef enum _Evas_Font_Hinting_Flags Evas_Font_Hinting_Flags |
Flags for Font Hinting.
Flags for Font Hinting
| EOAPI void evas_canvas_font_cache_set | ( | int | size | ) |
Changes the size of font cache of the given evas.
| [in] | size | The size, in bytes. |
Referenced by evas_font_cache_set(), eo_cxx::evas::canvas::font_cache_set(), and evas::canvas::font_cache_set().
| EOAPI int evas_canvas_font_cache_get | ( | void | ) |
Changes the size of font cache of the given evas.
Referenced by evas_font_cache_get(), eo_cxx::evas::canvas::font_cache_get(), and evas::canvas::font_cache_get().
| EOAPI void evas_canvas_font_hinting_set | ( | Evas_Font_Hinting_Flags | hinting | ) |
Changes the font hinting for the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
| [in] | hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
Referenced by evas_font_hinting_set(), eo_cxx::evas::canvas::font_hinting_set(), and evas::canvas::font_hinting_set().
| EOAPI Evas_Font_Hinting_Flags evas_canvas_font_hinting_get | ( | void | ) |
Retrieves the font hinting used by the given evas.
Referenced by evas_font_hinting_get(), eo_cxx::evas::canvas::font_hinting_get(), and evas::canvas::font_hinting_get().
| EOAPI Eina_Bool evas_canvas_font_hinting_can_hint | ( | Evas_Font_Hinting_Flags | hinting | ) |
Checks if the font hinting is supported by the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
EINA_TRUE if it is supported, EINA_FALSE otherwise.| [in] | hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
Referenced by evas_font_hinting_can_hint(), eo_cxx::evas::canvas::font_hinting_can_hint(), and evas::canvas::font_hinting_can_hint().
| EOAPI Eina_List* evas_canvas_font_available_list | ( | void | ) |
List of available font descriptions known or found by this evas.
The list depends on Evas compile time configuration, such as fontconfig support, and the paths provided at runtime as explained in Font Path Functions.
Referenced by evas_font_available_list(), eo_cxx::evas::canvas::font_available_list(), and evas::canvas::font_available_list().
|
inline |
Checks if the font hinting is supported by the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
EINA_TRUE if it is supported, EINA_FALSE otherwise.| hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_can_hint().
|
inline |
List of available font descriptions known or found by this evas.
The list depends on Evas compile time configuration, such as fontconfig support, and the paths provided at runtime as explained in Font Path Functions.
References evas_canvas_font_available_list().
|
inline |
Changes the size of font cache of the given evas.
| size | The size, in bytes. |
References evas_canvas_font_cache_get().
|
inline |
Changes the size of font cache of the given evas.
| size | The size, in bytes. |
References evas_canvas_font_cache_set().
|
inline |
Retrieves the font hinting used by the given evas.
| hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_get().
|
inline |
Changes the font hinting for the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
| hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_set().
|
inline |
Checks if the font hinting is supported by the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
EINA_TRUE if it is supported, EINA_FALSE otherwise.| hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_can_hint().
|
inline |
List of available font descriptions known or found by this evas.
The list depends on Evas compile time configuration, such as fontconfig support, and the paths provided at runtime as explained in Font Path Functions.
References evas_canvas_font_available_list().
|
inline |
Changes the size of font cache of the given evas.
| size | The size, in bytes. |
References evas_canvas_font_cache_get().
|
inline |
Changes the size of font cache of the given evas.
| size | The size, in bytes. |
References evas_canvas_font_cache_set().
|
inline |
Retrieves the font hinting used by the given evas.
| hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_get().
|
inline |
Changes the font hinting for the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
| hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_set().
| void evas_font_cache_set | ( | Evas_Canvas * | obj, |
| int | size | ||
| ) |
Changes the size of font cache of the given evas.
| [in] | size | The size, in bytes. |
References evas_canvas_font_cache_set().
Referenced by ethumb_dup(), and ethumb_new().
| int evas_font_cache_get | ( | const Evas_Canvas * | obj | ) |
Changes the size of font cache of the given evas.
References evas_canvas_font_cache_get().
| void evas_font_hinting_set | ( | Evas_Canvas * | obj, |
| Evas_Font_Hinting_Flags | hinting | ||
| ) |
Changes the font hinting for the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
| [in] | hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_set().
| Evas_Font_Hinting_Flags evas_font_hinting_get | ( | const Evas_Canvas * | obj | ) |
Retrieves the font hinting used by the given evas.
References evas_canvas_font_hinting_get().
| Eina_Bool evas_font_hinting_can_hint | ( | const Evas_Canvas * | obj, |
| Evas_Font_Hinting_Flags | hinting | ||
| ) |
Checks if the font hinting is supported by the given evas.
EVAS_FONT_HINTING_AUTO, EVAS_FONT_HINTING_BYTECODE.
EINA_TRUE if it is supported, EINA_FALSE otherwise.| [in] | hinting | The hinting to use, one of EVAS_FONT_HINTING_NONE, |
References evas_canvas_font_hinting_can_hint().
| Eina_List* evas_font_available_list | ( | const Evas_Canvas * | obj | ) |
List of available font descriptions known or found by this evas.
The list depends on Evas compile time configuration, such as fontconfig support, and the paths provided at runtime as explained in Font Path Functions.
References evas_canvas_font_available_list().
Free list of font descriptions returned by evas_font_dir_available_list().
| e | The evas instance that returned such list. |
| available | the list returned by evas_font_dir_available_list(). |
| void evas_object_ref | ( | Evas_Object * | obj | ) |
Increments object reference count to defer its deletion.
| obj | The given Evas object to reference |
This increments the reference count of an object, which if greater than 0 will defer deletion by evas_object_del() until all references are released back (counter back to 0). References cannot go below 0 and unreferencing past that will result in the reference count being limited to 0. References are limited to 2^32 - 1 for an object. Referencing it more than this will result in it being limited to this value.
Example:
| void evas_object_unref | ( | Evas_Object * | obj | ) |
Decrements object reference count.
| obj | The given Evas object to unreference |
This decrements the reference count of an object. If the object has had evas_object_del() called on it while references were more than 0, it will be deleted at the time this function is called and puts the counter back to 0. See evas_object_ref() for more information.
References evas_object_del().
| int evas_object_ref_get | ( | const Evas_Object * | obj | ) |
Get the object reference count.
| obj | The given Evas object to query |
This gets the reference count for an object (normally 0 until it is referenced). Values of 1 or greater mean that someone is holding a reference to this object that needs to be unreffed before it can be deleted.
| void evas_object_del | ( | Evas_Object * | obj | ) |
Marks the given Evas object for deletion (when Evas will free its memory).
| obj | The given Evas object. |
This call will mark obj for deletion, which will take place whenever it has no more references to it (see evas_object_ref() and evas_object_unref()).
At actual deletion time, which may or may not be just after this call, EVAS_CALLBACK_DEL and EVAS_CALLBACK_FREE callbacks will be called. If the object currently had the focus, its EVAS_CALLBACK_FOCUS_OUT callback will also be called.
References EINA_TRUE.
Referenced by ecore_evas_ews_background_set(), edje_edit_part_source_set(), edje_perspective_free(), ethumb_free(), and evas_object_unref().
| void evas_object_geometry_get | ( | const Evas_Object * | obj, |
| Evas_Coord * | x, | ||
| Evas_Coord * | y, | ||
| Evas_Coord * | w, | ||
| Evas_Coord * | h | ||
| ) |
Retrieves the position and (rectangular) size of the given Evas object.
| obj | The given Evas object. |
| x | Pointer to an integer in which to store the X coordinate of the object. |
| y | Pointer to an integer in which to store the Y coordinate of the object. |
| w | Pointer to an integer in which to store the width of the object. |
| h | Pointer to an integer in which to store the height of the object. |
The position, naturally, will be relative to the top left corner of the canvas' viewport.
NULL pointers on the geometry components you're not interested in: they'll be ignored by the function.Example:
See the full example.
Referenced by emotion_object_border_set(), emotion_object_keep_aspect_set(), and evas_textblock_cursor_range_simple_geometry_get().
| void evas_object_geometry_set | ( | Evas_Object * | obj, |
| Evas_Coord | x, | ||
| Evas_Coord | y, | ||
| Evas_Coord | w, | ||
| Evas_Coord | h | ||
| ) |
Set the position and (rectangular) size of the given Evas object.
| obj | The given Evas object. |
| x | X position to move the object to, in canvas units. |
| y | Y position to move the object to, in canvas units. |
| w | The new width of the Evas object. |
| h | The new height of the Evas object. |
The position, naturally, will be relative to the top left corner of the canvas' viewport.
If the object get moved, the object's EVAS_CALLBACK_MOVE callback will be called.
If the object get resized, the object's EVAS_CALLBACK_RESIZE callback will be called.
| void evas_object_show | ( | Evas_Object * | obj | ) |
Makes the given Evas object visible.
| obj | The given Evas object. |
Besides becoming visible, the object's EVAS_CALLBACK_SHOW callback will be called.
References EINA_TRUE.
Referenced by ecore_evas_ews_background_set(), and emotion_object_bg_color_set().
| void evas_object_hide | ( | Evas_Object * | obj | ) |
Makes the given Evas object invisible.
| obj | The given Evas object. |
Hidden objects, besides not being shown at all in your canvas, won't be checked for changes on the canvas rendering process. Furthermore, they will not catch input events. Thus, they are much ligher (in processing needs) than an object that is invisible due to indirect causes, such as being clipped or out of the canvas' viewport.
Besides becoming hidden, obj object's EVAS_CALLBACK_SHOW callback will be called.
Example:
See the full example.
References EINA_FALSE.
Referenced by ecore_evas_cursor_unset(), edje_edit_part_del(), and emotion_object_bg_color_set().