Back to Seed Clases

cairo


Classes

Interfaces

Structs

Unions

Enums

Struct cairo.Context

Import line: cairo = imports.gi.cairo;
GIR File: cairo-1.0.gir
C documentation: cairoContext
Struct : Context
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Clutter
Method
Clutter.cairo_set_source_color (Context cr, Color color) : none
Utility function for setting the source color of cr using
a ClutterColor.
Clutter.CairoTexture
Method
create () : cairo.Context
Creates a new Cairo context for the cairo texture.
Clutter.CairoTexture
Method
create_region (gint32 x_offset, gint32 y_offset, gint32 width, gint32 height) : cairo.Context
Creates a new Cairo context that will updat the region defined
by x_offset, y_offset, width and height.
Clutter.Path
Method
to_cairo_path (Context cr) : none
Add the nodes of the ClutterPath to the path in the Cairo context.
EvinceDocument.Document
Method
EvinceDocument.Document.misc_paint_one_page (Context cr, Widget widget, RectangleInt area, Border border, gboolean highlight, gboolean inverted_colors) : none
EvinceDocument.DocumentPrint
Method
print_page (Page page, Context cr) : none
EvinceView.JobPrint
Method
set_cairo (Context cr) : none
Gdk
Method
Gdk.cairo_create (Window window) : cairo.Context
Creates a Cairo context for drawing to window.
Gdk
Method
Gdk.cairo_get_clip_rectangle (Context cr, Object out_values) : gboolean
This is a convenience function around cairo_clip_extents().
Gdk
Method
Gdk.cairo_rectangle (Context cr, RectangleInt rectangle) : none
Adds the given rectangle to the current path of cr.
Gdk
Method
Gdk.cairo_region (Context cr, Region region) : none
Adds the given region to the current path of cr.
Gdk
Method
Gdk.cairo_set_source_color (Context cr, Color color) : none
Sets the specified GdkColor as the source color of cr.
Gdk
Method
Gdk.cairo_set_source_pixbuf (Context cr, Pixbuf pixbuf, gdouble pixbuf_x, gdouble pixbuf_y) : none
Sets the given pixbuf as the source pattern for cr.
Gdk
Method
Gdk.cairo_set_source_rgba (Context cr, RGBA rgba) : none
Sets the specified GdkRGBA as the source color of cr.
Gdk
Method
Gdk.cairo_set_source_window (Context cr, Window window, gdouble x, gdouble y) : none
Sets the given window as the source pattern for cr.
Gkbd.KeyboardDrawing
Method
render (Context cr, Layout layout, gdouble x, gdouble y, gdouble width, gdouble height, gdouble dpi_x, gdouble dpi_y) : gboolean
Gtk
Method
Gtk.cairo_should_draw_window (Context cr, Window window) : gboolean
This function is supposed to be called in GtkWidget::draw
implementations for widgets that support multiple windows.
Gtk
Method
Gtk.cairo_transform_to_window (Context cr, Widget widget, Window window) : none
Transforms the given cairo context cr that from widget-relative
coordinates to window-relative coordinates.
Gtk
Method
Gtk.draw_insertion_cursor (Widget widget, Context cr, RectangleInt location, gboolean is_primary, TextDirection direction, gboolean draw_arrow) : none
Draws a text caret on cr at location.
Gtk
Method
Gtk.paint_arrow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, ArrowType arrow_type, gboolean fill, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws an arrow in the given rectangle on cr using the given
parameters.
Gtk
Method
Gtk.paint_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a box on cr with the given parameters.
Gtk
Method
Gtk.paint_box_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side, gint32 gap_x, gint32 gap_width) : none
Draws a box in cr using the given style and state and shadow type,
leaving a gap in one side.
Gtk
Method
Gtk.paint_check (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a check button indicator in the given rectangle on cr with
the given parameters.
Gtk
Method
Gtk.paint_diamond (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a diamond in the given rectangle on window using the given
parameters.
Gtk
Method
Gtk.paint_expander (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x, gint32 y, ExpanderStyle expander_style) : none
Draws an expander as used in GtkTreeView.
Gtk
Method
Gtk.paint_extension (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side) : none
Draws an extension, i.e.
Gtk
Method
Gtk.paint_flat_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a flat box on cr with the given parameters.
Gtk
Method
Gtk.paint_focus (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a focus indicator around the given rectangle on cr using the
given style.
Gtk
Method
Gtk.paint_handle (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, Orientation orientation) : none
Draws a handle as used in GtkHandleBox and GtkPaned.
Gtk
Method
Gtk.paint_hline (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x1, gint32 x2, gint32 y) : none
Draws a horizontal line from (x1, y) to (x2, y) in cr
using the given style and state.
Gtk
Method
Gtk.paint_layout (Style style, Context cr, StateType state_type, gboolean use_text, Widget widget, String detail, gint32 x, gint32 y, Layout layout) : none
Draws a layout on cr using the given parameters.
Gtk
Method
Gtk.paint_option (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a radio button indicator in the given rectangle on cr with
the given parameters.
Gtk
Method
Gtk.paint_resize_grip (Style style, Context cr, StateType state_type, Widget widget, String detail, WindowEdge edge, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a resize grip in the given rectangle on cr using the given
parameters.
Gtk
Method
Gtk.paint_shadow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a shadow around the given rectangle in cr
using the given style and state and shadow type.
Gtk
Method
Gtk.paint_shadow_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side, gint32 gap_x, gint32 gap_width) : none
Draws a shadow around the given rectangle in cr
using the given style and state and shadow type, leaving a
gap in one side.
Gtk
Method
Gtk.paint_slider (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, Orientation orientation) : none
Draws a slider in the given rectangle on cr using the
given style and orientation.
Gtk
Method
Gtk.paint_spinner (Style style, Context cr, StateType state_type, Widget widget, String detail, guint32 step, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a spinner on window using the given parameters.
Gtk
Method
Gtk.paint_tab (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws an option menu tab (i.e.
Gtk
Method
Gtk.paint_vline (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 y1_, gint32 y2_, gint32 x) : none
Draws a vertical line from (x, y1_) to (x, y2_) in cr
using the given style and state.
Gtk
Method
Gtk.render_activity (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders an activity area (Such as in GtkSpinner or the
fill line in GtkRange), the state GTK_STATE_FLAG_ACTIVE
determines whether there is activity going on.
Gtk
Method
Gtk.render_arrow (StyleContext context, Context cr, gdouble angle, gdouble x, gdouble y, gdouble size) : none
Renders an arrow pointing to angle.
Gtk
Method
Gtk.render_background (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders the background of an element.
Gtk
Method
Gtk.render_check (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders a checkmark (as in a GtkCheckButton).
Gtk
Method
Gtk.render_expander (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders an expander (as used in GtkTreeView and GtkExpander) in the area
defined by x, y, width, height.
Gtk
Method
Gtk.render_extension (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height, PositionType gap_side) : none
Renders a extension (as in a GtkNotebook tab) in the rectangle
defined by x, y, width, height.
Gtk
Method
Gtk.render_focus (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders a focus indicator on the rectangle determined by x, y, width, height.
Gtk
Method
Gtk.render_frame (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders a frame around the rectangle defined by x, y, width, height.
Gtk
Method
Gtk.render_frame_gap (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height, PositionType gap_side, gdouble xy0_gap, gdouble xy1_gap) : none
Renders a frame around the rectangle defined by (x, y, width, height),
leaving a gap on one side.
Gtk
Method
Gtk.render_handle (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders a handle (as in GtkHandleBox, GtkPaned and
GtkWindow's resize grip), in the rectangle
determined by x, y, width, height.
Gtk
Method
Gtk.render_layout (StyleContext context, Context cr, gdouble x, gdouble y, Layout layout) : none
Renders layout on the coordinates x, y
Gtk
Method
Gtk.render_line (StyleContext context, Context cr, gdouble x0, gdouble y0, gdouble x1, gdouble y1) : none
Renders a line from (x0, y0) to (x1, y1).
Gtk
Method
Gtk.render_option (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Renders an option mark (as in a GtkRadioButton), the GTK_STATE_FLAG_ACTIVE
state will determine whether the option is on or off, and
GTK_STATE_FLAG_INCONSISTENT whether it should be marked as undefined.
Gtk
Method
Gtk.render_slider (StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height, Orientation orientation) : none
Renders a slider (as in GtkScale) in the rectangle defined by x, y,
or horizontal.
Gtk.CellArea
Method
render (CellAreaContext context, Widget widget, Context cr, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags, gboolean paint_focus) : none
Renders area's cells according to area's layout onto widget at
the given coordinates.
Gtk.CellRenderer
Method
render (Context cr, Widget widget, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags) : none
Invokes the virtual render function of the GtkCellRenderer.
Gtk.Container
Method
propagate_draw (Widget child, Context cr) : none
When a container receives a call to the draw function, it must send
synthetic GtkWidget::draw calls to all children that don't have their
own GdkWindows.
Gtk.PrintContext
Method
get_cairo_context () : cairo.Context
Obtains the cairo context that is associated with the
GtkPrintContext.
Gtk.PrintContext
Method
set_cairo_context (Context cr, gdouble dpi_x, gdouble dpi_y) : none
Sets a new cairo context on a print context.
Gtk.Style
Method
apply_default_background (Context cr, Window window, StateType state_type, gint32 x, gint32 y, gint32 width, gint32 height) : none
Gtk.Widget
Signal
draw (Widget self, Context cr) : gboolean
This signal is emitted when a widget is supposed to render itself.
Gtk.Widget
Method
draw (Context cr) : none
Draws widget to cr.
GtkSource.GutterRenderer
Method
begin (Context cr, RectangleInt background_area, RectangleInt cell_area, TextIter start, TextIter end) : none
GtkSource.GutterRenderer
Method
draw (Context cr, RectangleInt background_area, RectangleInt cell_area, TextIter start, TextIter end, GutterRendererState state) : none
PangoCairo
Method
PangoCairo.error_underline_path (Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Add a squiggly line to the current path in the specified cairo context that
approximately covers the given rectangle in the style of an underline used
to indicate a spelling error.
PangoCairo
Method
PangoCairo.glyph_string_path (Context cr, Font font, GlyphString glyphs) : none
Adds the glyphs in glyphs to the current path in the specified
cairo context.
PangoCairo
Method
PangoCairo.layout_line_path (Context cr, LayoutLine line) : none
Adds the text in PangoLayoutLine to the current path in the
specified cairo context.
PangoCairo
Method
PangoCairo.layout_path (Context cr, Layout layout) : none
Adds the text in a PangoLayout to the current path in the
specified cairo context.
PangoCairo
Method
PangoCairo.show_error_underline (Context cr, gdouble x, gdouble y, gdouble width, gdouble height) : none
Draw a squiggly line in the specified cairo context that approximately
covers the given rectangle in the style of an underline used to indicate a
spelling error.
PangoCairo
Method
PangoCairo.show_glyph_item (Context cr, String text, GlyphItem glyph_item) : none
Draws the glyphs in glyph_item in the specified cairo context,
embedding the text associated with the glyphs in the output if the
output format supports it (PDF for example), otherwise it acts
similar to pango_cairo_show_glyph_string().
PangoCairo
Method
PangoCairo.show_glyph_string (Context cr, Font font, GlyphString glyphs) : none
Draws the glyphs in glyphs in the specified cairo context.
PangoCairo
Method
PangoCairo.show_layout (Context cr, Layout layout) : none
Draws a PangoLayout in the specified cairo context.
PangoCairo
Method
PangoCairo.show_layout_line (Context cr, LayoutLine line) : none
Draws a PangoLayoutLine in the specified cairo context.
PangoCairo
Method
PangoCairo.update_context (Context cr, Context context) : none
Updates a PangoContext previously created for use with Cairo to
match the current transformation and target surface of a Cairo
context.
PangoCairo
Method
PangoCairo.update_layout (Context cr, Layout layout) : none
Updates the private PangoContext of a PangoLayout created with
pango_cairo_create_layout() to match the current transformation
and target surface of a Cairo context.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:18:09 GMT+0800 (HKT)