Constants¶
Details¶
- Gsk.RECT_SNAP_GROW = 16908801¶
Makes the rectangle grow in every direction.
This is useful to avoid seams but can lead to overlap with adjacent content.
Snap by growing
Added in version 4.24.
- Gsk.RECT_SNAP_NONE = 0¶
Makes the rectangle not snap at all.
This is the default value for snapping.
Added in version 4.24.
- Gsk.RECT_SNAP_ROUND = 50529027¶
Makes the rectangle round to the closest pixel edge on all sides.
This is useful when multiple rectangles are placed next to each other at the same coordinate, and they should do so without any seams.
Snap by rounding
Added in version 4.24.
- Gsk.RECT_SNAP_SHRINK = 33620226¶
Makes the rectangle shrink in every direction.
This is useful to make sure the rectangle fits into the allocated area and does not overlap content that is not snapped.
Snap by shrinking
Added in version 4.24.