Platform

Trait Platform 

Source
pub trait Platform {
    // Required methods
    fn dimensions(&self) -> i32;
    fn is_rtl(&self) -> bool;
    fn clipping_rect(&mut self) -> (f32, f32);
}
Expand description

Impl Platform trait to support new platform environment.

Required Methods§

Source

fn dimensions(&self) -> i32

Source

fn is_rtl(&self) -> bool

Returns true if layout direction is Right-To-Left.

Source

fn clipping_rect(&mut self) -> (f32, f32)

Implementors§