#[repr(transparent)]pub struct Rectangle { /* private fields */ }
Expand description
The Rectangle
structure represents a rectangle.
Rectangle
is frequently used to represent the logical or ink
extents of a single glyph or section of text. (See, for instance,
FontExt::glyph_extents()
.)
Implementations§
source§impl Rectangle
impl Rectangle
pub fn as_ptr(&self) -> *mut PangoRectangle
sourcepub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const PangoRectangle) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const PangoRectangle) -> &'a Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(
ptr: *mut PangoRectangle
) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut PangoRectangle ) -> &'a mut Self
Borrows the underlying C value mutably.