align_to_buffer


Description:

public bool align_to_buffer (Rectangle rectangle, Buffer buffer, RectangleAlignment alignment)

Aligns rectangle to the tile grid of buffer, and stores the result in this.

alignment has the same meaning as for align.

this may point to the same object as rectangle.

Returns TRUE if the result is not empty.

Parameters:

this

a Rectangle

rectangle

a Rectangle

buffer

a Buffer

alignment

a RectangleAlignment value




2022 vala-language.org