Class: Gdk::DrawingContext

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#cairo_contextcairo::Context

Retrieves a Cairo context to be used to draw on the Gdk::Window that created the Gdk::DrawingContext.

The returned context is guaranteed to be valid as long as the Gdk::DrawingContext is valid, that is between a call to gdk_window_begin_draw_frame() and gdk_window_end_draw_frame().

Returns:

  • (cairo::Context)

    a Cairo context to be used to draw the contents of the Gdk::Window. The context is owned by the Gdk::DrawingContext and should not be destroyed

#clipcairo::Region

The clip region applied to the drawing context.

Returns:

  • (cairo::Region)

    clip

#clip=(clip) ⇒ cairo::Region

The clip region applied to the drawing context.

Parameters:

  • clip (cairo::Region)

Returns:

  • (cairo::Region)

    clip

  • (cairo::Region)

    clip

#is_validTrueClass

Checks whether the given Gdk::DrawingContext is valid.

Returns:

  • (TrueClass)

    true if the context is valid

#windowGdk::Window

The Gdk::Window that created the drawing context.

Returns:

#window=(window) ⇒ Gdk::Window

The Gdk::Window that created the drawing context.

Parameters:

Returns: