pub enum ResponsiveLayout {
Tiny,
Small,
Medium,
Large,
ExtraLarge,
UltraLarge,
}
Expand description
Responsive layout system for mainstream screen
epx
Note that mobile devices does not depend on the actual pixel, but on the equivalent pixel.
For example Phone 11Pro Max
has a 1242px × 2688px @ 3x
screen, the actual size is 414epx × 896epx
.
For 2K screen, which has a 2560px × 1440px @ 1.5x
screen, the actual size is 1706epx × 960epx
.
For 4K screen, which has a 4096px × 2160px @ 2x
screen, the actual size is 2048epx × 1024epx
.
Example
Variants§
Trait Implementations§
source§impl Clone for ResponsiveLayout
impl Clone for ResponsiveLayout
source§fn clone(&self) -> ResponsiveLayout
fn clone(&self) -> ResponsiveLayout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more