Struct

GskRectSnap

Description [src]

typedef unsigned GskRectSnap

The ways a rectangle can be snapped to a grid.

A GskRectSnap describes how the 4 edges of a rectangle should be adjusted to fit a grid - usually the rectangle describes the bounds or clip region of a render operation and the grid is the pixel grid of a display.

You can see some use cases on the GTK blog.

Commonly, you will want to use constants such as GSK_RECT_SNAP_ROUND, GSK_RECT_SNAP_GROW, or GSK_RECT_SNAP_SHRINK, but you can also construct an individual way to snap using gsk_rect_snap_new().