|
|
|
|
|
|
|
draw_pixbuf(cr,
pixbuf,
x=0,
y=0,
alpha=1.0)
Draw pixbuf on cairo context, this function use frequently for image
render. |
source code
|
|
|
draw_window_frame(cr,
x,
y,
w,
h,
color_frame_outside_1,
color_frame_outside_2,
color_frame_outside_3,
color_frame_inside_1,
color_frame_inside_2)
Draw window frame. |
source code
|
|
|
|
|
draw_text(cr,
markup,
x,
y,
w,
h,
text_size=DEFAULT_FONT_SIZE,
text_color="#000000",
text_font=DEFAULT_FONT,
alignment=pango.ALIGN_LEFT,
gaussian_radious=None,
gaussian_color=None,
border_radious=None,
border_color=None,
wrap_width=None)
Standard function for draw text. |
source code
|
|
|
render_text(cr,
markup,
x,
y,
w,
h,
text_size=DEFAULT_FONT_SIZE,
text_color="#000000",
text_font=DEFAULT_FONT,
alignment=pango.ALIGN_LEFT,
wrap_width=None)
Render text for function draw_text, you can use this function
individually. |
source code
|
|
|
draw_line(cr,
sx,
sy,
ex,
ey,
line_width=1,
antialias_status=cairo.ANTIALIAS_NONE)
Draw line. |
source code
|
|
|
|
|
draw_hlinear(cr,
x,
y,
w,
h,
color_infos,
radius=0,
left_to_right=True)
Draw linear area horticulturally. |
source code
|
|
|
|
|
|
|
|
|
|