Import line: | cairo = imports.gi.cairo; |
GIR File: | cairo-1.0.gir |
C documentation: | cairoContext |
Struct : | Context |
None |
None |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter
Method |
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 |
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 |
|
EvinceView.JobPrint
Method |
set_cairo
(Context cr)
:
none
|
Gdk
Method |
Creates a Cairo context for drawing to window.
|
Gdk
Method |
This is a convenience function around cairo_clip_extents().
|
Gdk
Method |
Adds the given rectangle to the current path of cr.
|
Gdk
Method |
Adds the given region to the current path of cr.
|
Gdk
Method |
Sets the specified GdkColor as the source color of cr.
|
Gdk
Method |
Sets the given pixbuf as the source pattern for cr.
|
Gdk
Method |
Sets the specified GdkRGBA as the source color of cr.
|
Gdk
Method |
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 |
This function is supposed to be called in GtkWidget::draw
implementations for widgets that support multiple windows. |
Gtk
Method |
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 |
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 |
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 |
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 |
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 |
Adds the glyphs in glyphs to the current path in the specified
cairo context. |
PangoCairo
Method |
Adds the text in PangoLayoutLine to the current path in the
specified cairo context. |
PangoCairo
Method |
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 |
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 |
Draws the glyphs in glyphs in the specified cairo context.
|
PangoCairo
Method |
Draws a PangoLayout in the specified cairo context.
|
PangoCairo
Method |
Draws a PangoLayoutLine in the specified cairo context.
|
PangoCairo
Method |
Updates a PangoContext previously created for use with Cairo to
match the current transformation and target surface of a Cairo context. |
PangoCairo
Method |
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. |