Struct rute::auto::screen_ffi::RUScreenFuncs
source · #[repr(C)]pub struct RUScreenFuncs {Show 19 fields
pub name: extern "C" fn(self_c: *const RUBase) -> *const c_char,
pub manufacturer: extern "C" fn(self_c: *const RUBase) -> *const c_char,
pub model: extern "C" fn(self_c: *const RUBase) -> *const c_char,
pub serial_number: extern "C" fn(self_c: *const RUBase) -> *const c_char,
pub depth: extern "C" fn(self_c: *const RUBase) -> i32,
pub physical_dots_per_inch_x: extern "C" fn(self_c: *const RUBase) -> f32,
pub physical_dots_per_inch_y: extern "C" fn(self_c: *const RUBase) -> f32,
pub physical_dots_per_inch: extern "C" fn(self_c: *const RUBase) -> f32,
pub logical_dots_per_inch_x: extern "C" fn(self_c: *const RUBase) -> f32,
pub logical_dots_per_inch_y: extern "C" fn(self_c: *const RUBase) -> f32,
pub logical_dots_per_inch: extern "C" fn(self_c: *const RUBase) -> f32,
pub device_pixel_ratio: extern "C" fn(self_c: *const RUBase) -> f32,
pub available_size: extern "C" fn(self_c: *const RUBase) -> RUSize,
pub virtual_size: extern "C" fn(self_c: *const RUBase) -> RUSize,
pub available_virtual_size: extern "C" fn(self_c: *const RUBase) -> RUSize,
pub primary_orientation: extern "C" fn(self_c: *const RUBase) -> u32,
pub angle_between: extern "C" fn(self_c: *const RUBase, a: u32, b: u32) -> i32,
pub is_landscape: extern "C" fn(self_c: *const RUBase, orientation: u32) -> bool,
pub refresh_rate: extern "C" fn(self_c: *const RUBase) -> f32,
}
Fields
name: extern "C" fn(self_c: *const RUBase) -> *const c_char
manufacturer: extern "C" fn(self_c: *const RUBase) -> *const c_char
model: extern "C" fn(self_c: *const RUBase) -> *const c_char
serial_number: extern "C" fn(self_c: *const RUBase) -> *const c_char
depth: extern "C" fn(self_c: *const RUBase) -> i32
physical_dots_per_inch_x: extern "C" fn(self_c: *const RUBase) -> f32
physical_dots_per_inch_y: extern "C" fn(self_c: *const RUBase) -> f32
physical_dots_per_inch: extern "C" fn(self_c: *const RUBase) -> f32
logical_dots_per_inch_x: extern "C" fn(self_c: *const RUBase) -> f32
logical_dots_per_inch_y: extern "C" fn(self_c: *const RUBase) -> f32
logical_dots_per_inch: extern "C" fn(self_c: *const RUBase) -> f32
device_pixel_ratio: extern "C" fn(self_c: *const RUBase) -> f32
available_size: extern "C" fn(self_c: *const RUBase) -> RUSize
virtual_size: extern "C" fn(self_c: *const RUBase) -> RUSize
available_virtual_size: extern "C" fn(self_c: *const RUBase) -> RUSize
primary_orientation: extern "C" fn(self_c: *const RUBase) -> u32
angle_between: extern "C" fn(self_c: *const RUBase, a: u32, b: u32) -> i32
is_landscape: extern "C" fn(self_c: *const RUBase, orientation: u32) -> bool
refresh_rate: extern "C" fn(self_c: *const RUBase) -> f32
Trait Implementations
sourceimpl Clone for RUScreenFuncs
impl Clone for RUScreenFuncs
sourcefn clone(&self) -> RUScreenFuncs
fn clone(&self) -> RUScreenFuncs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for RUScreenFuncs
Auto Trait Implementations
impl RefUnwindSafe for RUScreenFuncs
impl Send for RUScreenFuncs
impl Sync for RUScreenFuncs
impl Unpin for RUScreenFuncs
impl UnwindSafe for RUScreenFuncs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more