Data Structures | Public Member Functions | Static Public Member Functions
eo_cxx::efl::text_properties Struct Reference

Data Structures

struct  address_const_of
 
struct  address_of
 

Public Member Functions

void font_get (const char **font_, Efl_Font_Size *size_) const
 Retrieve the font family and size in use on a given text object. More...
 
void font_set (::efl::eina::optional< std::string > font_, Efl_Font_Size size_) const
 Set the font family or filename, and size on a given text object. More...
 
::efl::eina::optional< std::string > font_source_get () const
 Get the font file's path which is being used on a given text object. More...
 
void font_source_set (::efl::eina::optional< std::string > font_source_) const
 Set the font (source) file to be used on a given text object. More...
 
 operator::efl::text_properties () const
 
 operator::efl::text_properties & ()
 
 operator::efl::text_properties const & () const
 

Static Public Member Functions

static Eo_Class const * _eo_class ()
 

Member Function Documentation

void eo_cxx::efl::text_properties::font_get ( const char **  font_,
Efl_Font_Size *  size_ 
) const
inline

Retrieve the font family and size in use on a given text object.

This function allows the font name and size of a text object to be queried. Be aware that the font name string is still owned by Evas and should not have free() called on it by the caller of the function.

See also
evas_object_text_font_set()
Parameters
fontThe font family name or filename.
sizeThe font size, in points.
void eo_cxx::efl::text_properties::font_set ( ::efl::eina::optional< std::string >  font_,
Efl_Font_Size  size_ 
) const
inline

Set the font family or filename, and size on a given text object.

This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention on naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, one can use a full path to a font file.

See also
evas_object_text_font_get()
evas_object_text_font_source_set()
Parameters
fontThe font family name or filename.
sizeThe font size, in points.
efl::eina::optional< std::string > eo_cxx::efl::text_properties::font_source_get ( ) const
inline

Get the font file's path which is being used on a given text object.

Returns
The font file's path.
See also
evas_object_text_font_get() for more details
Parameters
font_sourceThe font file's path.
void eo_cxx::efl::text_properties::font_source_set ( ::efl::eina::optional< std::string >  font_source_) const
inline

Set the font (source) file to be used on a given text object.

This function allows the font file to be explicitly set for a given text object, overriding system lookup, which will first occur in the given file's contents.

See also
evas_object_text_font_get()
Parameters
font_sourceThe font file's path.