pub struct ScreenLayout {
pub return_bottom_ptr: u32,
pub return_top_ptr: u32,
pub environments_ptr: u32,
pub shown_grob_ptr: u32,
pub pict_ptr: u32,
pub base_depth: u32,
pub outer_frame: u32,
}Expand description
Where a model’s ROM keeps what the screen state is read from (wiki:
hardware/ui-state). The *_ptr fields hold 5-nibble pointers.
Fields§
§return_bottom_ptr: u32The bottom of the return stack (HeapStart in the 1991 address
list).
return_top_ptr: u32The saved B, the return stack’s top (FramePtr).
environments_ptr: u32The newest temporary environment (local_vars).
shown_grob_ptr: u32The GROB the display shows below the header (Stk_56line_GROB_ptr).
pict_ptr: u32PICT (graph_GROB_ptr).
base_depth: u32Return-stack entries at the stack with no program halted.
outer_frame: u32Which entry from the bottom (1 = the bottom one) is the outer loop’s frame.
Implementations§
Source§impl ScreenLayout
impl ScreenLayout
Sourcepub const HP48SX: ScreenLayout
pub const HP48SX: ScreenLayout
48SX (ROM J): the 1991 address list’s locations.
Sourcepub const HP48GX: ScreenLayout
pub const HP48GX: ScreenLayout
48GX (ROM R): the 48SX’s plus #1017F.
Sourcepub const HP49G: ScreenLayout
pub const HP49G: ScreenLayout
49G (ROM 2.10): the 48GX’s addresses; one more entry at the bottom.
Sourcepub fn of(model: Model) -> Option<ScreenLayout>
pub fn of(model: Model) -> Option<ScreenLayout>
The layout of model, or None where there is none (as
EditorLayout::of).
Trait Implementations§
Source§impl Clone for ScreenLayout
impl Clone for ScreenLayout
impl Copy for ScreenLayout
Source§impl Debug for ScreenLayout
impl Debug for ScreenLayout
impl Eq for ScreenLayout
Source§impl PartialEq for ScreenLayout
impl PartialEq for ScreenLayout
impl StructuralPartialEq for ScreenLayout
Auto Trait Implementations§
impl Freeze for ScreenLayout
impl RefUnwindSafe for ScreenLayout
impl Send for ScreenLayout
impl Sync for ScreenLayout
impl Unpin for ScreenLayout
impl UnsafeUnpin for ScreenLayout
impl UnwindSafe for ScreenLayout
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