#[non_exhaustive]pub struct TileBezelInfo {
pub top_px: u8,
pub bottom_px: u8,
pub right_px: u8,
pub left_px: u8,
}Expand description
Bezel sizes around a single tile, decoded from the optional bezel bytes of the Tiled
Display Topology Data Block (0x12) when the has_bezel_info flag is set.
Each field is the bezel width or height in pixels at the tile’s native resolution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.top_px: u8Top bezel height in pixels.
bottom_px: u8Bottom bezel height in pixels.
right_px: u8Right bezel width in pixels.
left_px: u8Left bezel width in pixels.
Implementations§
Source§impl TileBezelInfo
impl TileBezelInfo
Trait Implementations§
Source§impl Clone for TileBezelInfo
impl Clone for TileBezelInfo
Source§fn clone(&self) -> TileBezelInfo
fn clone(&self) -> TileBezelInfo
Returns a duplicate 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 moreSource§impl Debug for TileBezelInfo
impl Debug for TileBezelInfo
Source§impl PartialEq for TileBezelInfo
impl PartialEq for TileBezelInfo
impl Copy for TileBezelInfo
impl Eq for TileBezelInfo
impl StructuralPartialEq for TileBezelInfo
Auto Trait Implementations§
impl Freeze for TileBezelInfo
impl RefUnwindSafe for TileBezelInfo
impl Send for TileBezelInfo
impl Sync for TileBezelInfo
impl Unpin for TileBezelInfo
impl UnsafeUnpin for TileBezelInfo
impl UnwindSafe for TileBezelInfo
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