pub struct Layout {}Expand description
Where the island sits and what shape it takes. Sizes in logical pixels.
Fields§
§mode: Mode§anchor: AnchorThe screen edge the island and the bubbles sit against.
island: AreaThe area the island sits in.
margin: u32Gap between the screen edges and everything on them in island mode. Notch and bar modes always touch the edge.
spacing: u32Gap between the island and bubbles, and between areas that meet.
idle_height: u32Height of the idle island and of bubbles. Windows make room for this much.
padding: u32§max_radius: u32Largest corner radius. Short islands are fully rounded pills.
radius_small: u32Corners of small controls: chips, badges, icon buttons.
radius_medium: u32Corners of rows and buttons.
radius_large: u32Corners of cards and tiles.
surface_height: u32The tallest the island can grow, in pixels.
notch: NotchTrait Implementations§
Source§impl<'de> Deserialize<'de> for Layout
impl<'de> Deserialize<'de> for Layout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Layout
Source§impl JsonSchema for Layout
impl JsonSchema for Layout
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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