pub struct Rip {
pub scene_depth: usize,
pub dirty: bool,
/* private fields */
}Fields§
§scene_depth: usizeHow many scenes are playing inside each other.
dirty: boolChanged since the front end last looked.
Implementations§
Source§impl Rip
impl Rip
pub fn regions(&self) -> &[MouseRegion]
Sourcepub fn click(&self, x: usize, y: usize) -> Option<Vec<u8>>
pub fn click(&self, x: usize, y: usize) -> Option<Vec<u8>>
What clicking the canvas at (x, y) sends, if it is in a mouse region (the last defined wins, as they are drawn over each other).
Sourcepub fn byte(
&mut self,
s: &mut Screen,
b: u8,
at_line_start: bool,
io: &mut Io<'_>,
) -> Feed
pub fn byte( &mut self, s: &mut Screen, b: u8, at_line_start: bool, io: &mut Io<'_>, ) -> Feed
Take a byte at the text level: at_line_start says whether it
begins a line, where a RIP line may start.
Sourcepub fn take_scene(&mut self) -> Option<Vec<u8>>
pub fn take_scene(&mut self) -> Option<Vec<u8>>
A scene file a 1R asked for: the caller plays it as if it came
from the BBS, before the rest of what did.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rip
impl RefUnwindSafe for Rip
impl Send for Rip
impl Sync for Rip
impl Unpin for Rip
impl UnsafeUnpin for Rip
impl UnwindSafe for Rip
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
Source§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.