Method

MetaWindowShapeto_region

Declaration [src]

cairo_region_t*
meta_window_shape_to_region (
  MetaWindowShape* shape,
  int center_width,
  int center_height
)

Description [src]

Converts the shape to to a cairo_region_t using the given width and height for the central scaled region.

Parameters

center_width

Type: int

Size of the central region horizontally.

center_height

Type: int

Size of the central region vertically.

Return value

Type: cairo_region_t

A newly created region.

The caller of the method takes ownership of the data, and is responsible for freeing it.