pub struct WideTile<const MODE: u8 = MODE_CPU> {
pub x: u16,
pub y: u16,
pub bg: PremulColor,
pub cmds: Vec<Cmd>,
pub n_zero_clip: usize,
pub n_clip: usize,
pub n_bufs: usize,
}
Expand description
A wide tile.
Fields§
§x: u16
The x coordinate of the wide tile.
y: u16
The y coordinate of the wide tile.
bg: PremulColor
The background of the tile.
cmds: Vec<Cmd>
The draw commands of the tile.
n_zero_clip: usize
The number of zero-winding clips.
n_clip: usize
The number of non-zero-winding clips.
n_bufs: usize
The number of pushed buffers.
Implementations§
Source§impl<const MODE: u8> WideTile<MODE>
impl<const MODE: u8> WideTile<MODE>
Sourcefn new_internal(x: u16, y: u16) -> Self
fn new_internal(x: u16, y: u16) -> Self
Create a new wide tile.
pub(crate) fn fill(&mut self, x: u16, width: u16, paint: Paint)
pub(crate) fn strip(&mut self, cmd_strip: CmdAlphaFill)
Sourcepub fn pop_clip(&mut self)
pub fn pop_clip(&mut self)
Removes the most recently added clip region from the current wide tile.
Sourcepub fn push_zero_clip(&mut self)
pub fn push_zero_clip(&mut self)
Adds a zero-winding clip region to the stack.
Sourcepub fn pop_zero_clip(&mut self)
pub fn pop_zero_clip(&mut self)
Removes the most recently added zero-winding clip region.
Sourcepub fn is_zero_clip(&mut self) -> bool
pub fn is_zero_clip(&mut self) -> bool
Checks if the current clip region is a zero-winding clip.
Sourcepub fn clip_strip(&mut self, cmd_clip_strip: CmdClipAlphaFill)
pub fn clip_strip(&mut self, cmd_clip_strip: CmdClipAlphaFill)
Applies a clip strip operation with the given parameters.
Trait Implementations§
Auto Trait Implementations§
impl<const MODE: u8> Freeze for WideTile<MODE>
impl<const MODE: u8> RefUnwindSafe for WideTile<MODE>
impl<const MODE: u8> Send for WideTile<MODE>
impl<const MODE: u8> Sync for WideTile<MODE>
impl<const MODE: u8> Unpin for WideTile<MODE>
impl<const MODE: u8> UnwindSafe for WideTile<MODE>
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