Packages
pango
Pango
Context
Context
get_base_dir
get_base_gravity
get_font_description
get_font_map
get_gravity
get_gravity_hint
get_language
get_matrix
get_metrics
list_families
load_font
load_fontset
set_base_dir
set_base_gravity
set_font_description
set_font_map
set_gravity_hint
set_language
set_matrix
Stays crunchy ...
... even in milk.
Valadoc
Vala
Tutorial
Vala Journal
API-References
Markup
About
Context
Object Hierarchy:
Description:
public
class
Context
:
Object
Namespace:
Pango
Package:
pango
Content:
Creation methods:
public
Context
()
Creates a new
Context
initialized to default values.
Methods:
public
Direction
get_base_dir
()
Retrieves the base direction for the context.
public
Gravity
get_base_gravity
()
Retrieves the base gravity for the context.
public
unowned
FontDescription
get_font_description
()
Retrieve the default font description for the context.
public
weak
FontMap
get_font_map
()
Gets the
PangoFontmap
used to look up fonts for this context.
public
Gravity
get_gravity
()
Retrieves the gravity for the context.
public
GravityHint
get_gravity_hint
()
Retrieves the gravity hint for the context.
public
Language
get_language
()
Retrieves the global language tag for the context.
public
Matrix
get_matrix
()
Gets the transformation matrix that will be applied when rendering with this context.
public
FontMetrics
get_metrics
(
FontDescription
? desc,
Language
? language)
Get overall metric information for a particular font description.
public
void
list_families
(
out
FontFamily
[] families)
List all families for a context.
public
Font
load_font
(
FontDescription
desc)
Loads the font in one of the fontmaps in the context that is the closest match for
desc
.
public
Fontset
load_fontset
(
FontDescription
desc,
Language
language)
Load a set of fonts in the context that can be used to render a font matching
desc
.
public
void
set_base_dir
(
Direction
direction)
Sets the base direction for the context.
public
void
set_base_gravity
(
Gravity
gravity)
Sets the base gravity for the context.
public
void
set_font_description
(
FontDescription
desc)
Set the default font description for the context
public
void
set_font_map
(
FontMap
font_map)
Sets the font map to be searched when fonts are looked-up in this context.
public
void
set_gravity_hint
(
GravityHint
hint)
Sets the gravity hint for the context.
public
void
set_language
(
Language
language)
Sets the global language tag for the context.
public
void
set_matrix
(
Matrix
? matrix)
Sets the transformation matrix that will be applied when rendering with this context.
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count