Realm

oa::ui::ScissorDesc

Scissor rectangle for clipping. Donor: oa::ScissorDesc.

StRust public API

Declaration

pub struct ScissorDesc { pub x: i32, pub y: i32, pub width: i32, pub height: i32, }
Public Rust declaration.

Public Methods

pub const fn is_valid(&self) -> bool
pub const fn contains(&self, x: i32, y: i32) -> bool
fn clone(&self) -> ScissorDesc
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &ScissorDesc) -> bool

Associated Functions

fn default() -> Self

Public Data Members

xi32field
yi32field
widthi32field
heighti32field

Public Method Documentation

pub const fn is_valid( &self ) -> bool
No public source comment is attached to this declaration.
pub const fn contains( &self, x: i32, y: i32 ) -> bool
No public source comment is attached to this declaration.
fn clone( &self ) -> ScissorDesc
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &ScissorDesc ) -> bool
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.