#[repr(C, align(4))]pub struct LineMono {
pub tag: u32,
pub color_cmd: u32,
pub v0: u32,
pub v1: u32,
}Expand description
Monochrome single line. 4 words (tag + 3 data). GP0 0x40 – the
real diagonal-capable line rasteriser (unlike RectFlat, which
the GPU snaps to 16-pixel X boundaries in its GP0 0x02 fill).
Fields§
§tag: u32OT linkage.
color_cmd: u320x40000000 | color header.
v0: u32First endpoint.
v1: u32Second endpoint.
Implementations§
Source§impl LineMono
impl LineMono
Sourcepub const fn new(
x0: i16,
y0: i16,
x1: i16,
y1: i16,
r: u8,
g: u8,
b: u8,
) -> Self
pub const fn new( x0: i16, y0: i16, x1: i16, y1: i16, r: u8, g: u8, b: u8, ) -> Self
Build a mono line.
Sourcepub const fn translucent(self) -> Self
pub const fn translucent(self) -> Self
The same line drawn with the semi-transparency equation set by the
last GP0(E1h) (crate::Gpu::set_draw_mode).
Trait Implementations§
impl Copy for LineMono
impl Eq for LineMono
impl StructuralPartialEq for LineMono
Auto Trait Implementations§
impl Freeze for LineMono
impl RefUnwindSafe for LineMono
impl Send for LineMono
impl Sync for LineMono
impl Unpin for LineMono
impl UnsafeUnpin for LineMono
impl UnwindSafe for LineMono
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)