Packages
cairo
Cairo
Context
Context
append_path
arc
arc_negative
clip
clip_extents
clip_preserve
close_path
copy_page
copy_path
copy_path_flat
curve_to
device_to_user
device_to_user_distance
fill
fill_extents
fill_preserve
font_extents
get_antialias
get_current_point
get_fill_rule
get_font_face
get_font_matrix
get_font_options
get_group_target
get_line_cap
get_line_join
get_line_width
get_matrix
get_miter_limit
get_operator
get_source
get_target
get_tolerance
glyph_extents
glyph_path
identity_matrix
in_clip
in_fill
in_stroke
line_to
mask
mask_surface
move_to
new_path
new_sub_path
paint
paint_with_alpha
pop_group
pop_group_to_source
push_group
push_group_with_content
rectangle
rel_curve_to
rel_line_to
rel_move_to
reset_clip
restore
rotate
save
scale
select_font_face
set_antialias
set_dash
set_fill_rule
set_font_face
set_font_matrix
set_font_options
set_font_size
set_line_cap
set_line_join
set_line_width
set_matrix
set_miter_limit
set_operator
set_scaled_font
set_source
set_source_rgb
set_source_rgba
set_source_surface
set_tolerance
show_glyphs
show_page
show_text
status
stroke
stroke_extents
stroke_preserve
text_extents
text_path
transform
translate
user_to_device
user_to_device_distance
Stays crunchy ...
... even in milk.
Valadoc
Vala
Tutorial
Vala Journal
API-References
Markup
About
Context
Object Hierarchy:
Description:
[
Compact
]
public
class
Context
Namespace:
Cairo
Package:
cairo
Content:
Creation methods:
public
Context
(
Surface
target)
Methods:
public
Status
status
()
public
void
save
()
public
void
restore
()
public
weak
Surface
get_target
()
public
void
push_group
()
public
void
push_group_with_content
(
Content
content)
public
Pattern
pop_group
()
public
void
pop_group_to_source
()
public
weak
Surface
get_group_target
()
public
void
set_source_rgb
(
double
red,
double
green,
double
blue)
public
void
set_source_rgba
(
double
red,
double
green,
double
blue,
double
alpha)
public
void
set_source
(
Pattern
source)
public
void
set_source_surface
(
Surface
surface,
double
x,
double
y)
public
weak
Pattern
get_source
()
public
void
set_matrix
(
Matrix
matrix)
public
void
get_matrix
(
out
Matrix
matrix)
public
void
set_antialias
(
Antialias
antialias)
public
Antialias
get_antialias
()
public
void
set_dash
(
double
[]? dashes,
double
offset)
public
void
set_fill_rule
(
FillRule
fill_rule)
public
FillRule
get_fill_rule
()
public
void
set_line_cap
(
LineCap
line_cap)
public
LineCap
get_line_cap
()
public
void
set_line_join
(
LineJoin
line_join)
public
LineJoin
get_line_join
()
public
void
set_line_width
(
double
width)
public
double
get_line_width
()
public
void
set_miter_limit
(
double
limit)
public
double
get_miter_limit
()
public
void
set_operator
(
Operator
op)
public
Operator
get_operator
()
public
void
set_tolerance
(
double
tolerance)
public
double
get_tolerance
()
public
void
clip
()
public
void
clip_preserve
()
public
void
clip_extents
(
out
double
x1,
out
double
y1,
out
double
x2,
out
double
y2)
public
void
reset_clip
()
public
bool
in_clip
(
double
x,
double
y)
public
void
fill
()
public
void
fill_preserve
()
public
void
fill_extents
(
out
double
x1,
out
double
y1,
out
double
x2,
out
double
y2)
public
bool
in_fill
(
double
x,
double
y)
public
void
mask
(
Pattern
pattern)
public
void
mask_surface
(
Surface
surface,
double
surface_x,
double
surface_y)
public
void
paint
()
public
void
paint_with_alpha
(
double
alpha)
public
void
stroke
()
public
void
stroke_preserve
()
public
void
stroke_extents
(
out
double
x1,
out
double
y1,
out
double
x2,
out
double
y2)
public
bool
in_stroke
(
double
x,
double
y)
public
void
copy_page
()
public
void
show_page
()
public
Path
copy_path
()
public
Path
copy_path_flat
()
public
void
append_path
(
Path
path)
public
void
get_current_point
(
out
double
x,
out
double
y)
public
void
new_path
()
public
void
new_sub_path
()
public
void
close_path
()
public
void
arc
(
double
xc,
double
yc,
double
radius,
double
angle1,
double
angle2)
public
void
arc_negative
(
double
xc,
double
yc,
double
radius,
double
angle1,
double
angle2)
public
void
curve_to
(
double
x1,
double
y1,
double
x2,
double
y2,
double
x3,
double
y3)
public
void
line_to
(
double
x,
double
y)
public
void
move_to
(
double
x,
double
y)
public
void
rectangle
(
double
x,
double
y,
double
width,
double
height)
public
void
glyph_path
(
Glyph
[] glyphs)
public
void
text_path
(
string
utf8)
public
void
rel_curve_to
(
double
dx1,
double
dy1,
double
dx2,
double
dy2,
double
dx3,
double
dy3)
public
void
rel_line_to
(
double
dx,
double
dy)
public
void
rel_move_to
(
double
dx,
double
dy)
public
void
translate
(
double
tx,
double
ty)
public
void
scale
(
double
sx,
double
sy)
public
void
rotate
(
double
angle)
public
void
transform
(
Matrix
matrix)
public
void
identity_matrix
()
public
void
user_to_device
(
ref
double
x,
ref
double
y)
public
void
user_to_device_distance
(
ref
double
dx,
ref
double
dy)
public
void
device_to_user
(
ref
double
x,
ref
double
y)
public
void
device_to_user_distance
(
ref
double
dx,
ref
double
dy)
public
void
select_font_face
(
string
family,
FontSlant
slant,
FontWeight
weight)
public
void
set_font_size
(
double
size)
public
void
set_font_matrix
(
Matrix
matrix)
public
void
get_font_matrix
(
out
Matrix
matrix)
public
void
set_font_options
(
FontOptions
options)
public
void
get_font_options
(
out
FontOptions
options)
public
void
show_text
(
string
utf8)
public
void
show_glyphs
(
Glyph
[] glyphs)
public
weak
FontFace
get_font_face
()
public
void
font_extents
(
out
FontExtents
extents)
public
void
set_font_face
(
FontFace
font_face)
public
void
set_scaled_font
(
ScaledFont
font)
public
void
text_extents
(
string
utf8,
out
TextExtents
extents)
public
void
glyph_extents
(
Glyph
[] glyphs,
out
TextExtents
extents)