Struct kernel::programs::session::Session [] [src]

pub struct Session {
    pub display: Box<Display>,
    pub background: BMPFile,
    pub cursor: BMPFile,
    pub mouse_point: Point,
    pub items: Vec<Box<KScheme>>,
    pub packages: Vec<Box<Package>>,
    pub windows: Vec<*mut Window>,
    pub windows_ordered: Vec<*mut Window>,
    pub redraw: bool,
    // some fields omitted
}

A session

Fields

display

The display

background

The background image

cursor

The cursor icon

mouse_point

The mouse point

items

The scheme items

packages

The packages (applications)

windows

Open windows

windows_ordered

Ordered windows

redraw

Redraw

Methods

impl Session

fn new() -> Box<Self>

Create new session

unsafe fn add_window(&mut self, add_window_ptr: *mut Window)

unsafe fn remove_window(&mut self, remove_window_ptr: *mut Window)

Remove a window

unsafe fn on_irq(&mut self, irq: u8)

unsafe fn on_poll(&mut self)

fn open(&mut self, url: &URL) -> Option<Box<Resource>>

Open a new resource

unsafe fn redraw(&mut self)

Redraw screen

fn event(&mut self, event: Event)