#[repr(transparent)]pub struct Geometry { /* private fields */ }
Implementations§
source§impl Geometry
impl Geometry
pub fn as_ptr(&self) -> *mut GdkGeometry
sourcepub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GdkGeometry) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GdkGeometry) -> &'a Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(
ptr: *mut GdkGeometry
) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut GdkGeometry ) -> &'a mut Self
Borrows the underlying C value mutably.
source§impl Geometry
impl Geometry
pub fn new( min_width: i32, min_height: i32, max_width: i32, max_height: i32, base_width: i32, base_height: i32, width_inc: i32, height_inc: i32, min_aspect: f64, max_aspect: f64, win_gravity: Gravity ) -> Self
pub fn min_width(&self) -> i32
pub fn min_height(&self) -> i32
pub fn max_width(&self) -> i32
pub fn max_height(&self) -> i32
pub fn base_width(&self) -> i32
pub fn base_height(&self) -> i32
pub fn width_inc(&self) -> i32
pub fn height_inc(&self) -> i32
pub fn min_aspect(&self) -> f64
pub fn max_aspect(&self) -> f64
pub fn win_gravity(&self) -> Gravity
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more