cairoLib.FontFace.FontFace Class Reference

List of all members.

Detailed Description

Description.


Public Member Functions

cairo_font_face_tgetFontFaceStruct ()
 this (cairo_font_face_t *cairo_font_face)
 Sets our main struct and passes it to the parent class.
cairo_font_face_treference ()
 Increases the reference count on font_face by one.
void destroy ()
 Decreases the reference count on font_face by one.
cairo_status_t status ()
 Checks whether an error has previously occurred for this font face font_face: a cairo_font_face_t Returns: CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.
void * getUserData (cairo_user_data_key_t *key)
 Return user data previously attached to font_face using the specified key.
cairo_status_t setUserData (cairo_user_data_key_t *key, void *userData, cairo_destroy_func_t destroy)
 Attach user data to font_face.
cairo_font_type_t getType ()
 This function returns the type of the backend used to create a font face.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

cairo_font_face_tcairo_font_face
 the main Gtk struct


Constructor & Destructor Documentation

cairoLib.FontFace.FontFace.this ( cairo_font_face_t cairo_font_face  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

void cairoLib.FontFace.FontFace.destroy (  ) 

Decreases the reference count on font_face by one.

If the result is zero, then font_face and all associated resources are freed. See cairo_font_face_reference(). font_face: a cairo_font_face_t

cairo_font_face_t* cairoLib.FontFace.FontFace.getFontFaceStruct (  ) 

void* cairoLib.FontFace.FontFace.getStruct (  )  [protected]

the main Gtk struct as a void*

cairo_font_type_t cairoLib.FontFace.FontFace.getType (  ) 

This function returns the type of the backend used to create a font face.

See cairo_font_type_t for available types. font_face: a cairo_font_face_t Returns: The type of font_face. Since 1.2

void* cairoLib.FontFace.FontFace.getUserData ( cairo_user_data_key_t key  ) 

Return user data previously attached to font_face using the specified key.

If no user data has been attached with the given key this function returns NULL. font_face: a cairo_font_face_t key: the address of the cairo_user_data_key_t the user data was attached to Returns: the user data previously attached or NULL.

cairo_font_face_t* cairoLib.FontFace.FontFace.reference (  ) 

Increases the reference count on font_face by one.

This prevents font_face from being destroyed until a matching call to cairo_font_face_destroy() is made. font_face: a cairo_font_face_t, (may be NULL in which case this function does nothing). Returns: the referenced cairo_font_face_t.

cairo_status_t cairoLib.FontFace.FontFace.setUserData ( cairo_user_data_key_t key,
void *  userData,
cairo_destroy_func_t  destroy 
)

Attach user data to font_face.

To remove user data from a font face, call this function with the key that was used to set it and NULL for data. font_face: a cairo_font_face_t key: the address of a cairo_user_data_key_t to attach the user data to user_data: the user data to attach to the font face destroy: a cairo_destroy_func_t which will be called when the font face is destroyed or when new user data is attached using the same key. Returns: CAIRO_STATUS_SUCCESS or CAIRO_STATUS_NO_MEMORY if a slot could not be allocated for the user data.

cairo_status_t cairoLib.FontFace.FontFace.status (  ) 

Checks whether an error has previously occurred for this font face font_face: a cairo_font_face_t Returns: CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.


Member Data Documentation

cairo_font_face_t* cairoLib.FontFace.FontFace.cairo_font_face [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo