TypeScript API Documentation for GSK
API Version: 4.0
Library Version: 4.0.0
Generated with TypeDoc via ts-for-gir v5.2.0
Since 4.24
Specifies how a coordinate should be snapped to the pixel grid.
Note that the top and left sides of rectangles need to be snapped in the opposite direction from the bottom and right sides to make the rectangle grow or shrink.
4.24
Use ceil() to snap
ceil()
Use floor() to snap
floor()
Don't snap the value
Use round() to snap
round()
Specifies how a coordinate should be snapped to the pixel grid.
Note that the top and left sides of rectangles need to be snapped in the opposite direction from the bottom and right sides to make the rectangle grow or shrink.
Since
4.24