Struct cgui::CWinRep[][src]

pub struct CWinRep {
    pub title: String,
    pub width: usize,
    pub height: usize,
    pub pixels: ImageBuffer<Rgb<u8>, Vec<u8>>,
    pub exit_flag: bool,
    // some fields omitted
}

Write-dominant data structure which holds details about the window which is pushed to various backends.

Fields

Methods

impl CWinRep
[src]

Writes a pixel to our buffer. Does not push to window manager until redraw() or redraw_dirty() is called.

Trait Implementations

impl RenderBack for CWinRep
[src]

Apps which call event_tick manually MUST call init() first. I refuse to throw a check for self.init every time the user moves their mouse. Also apps which explicitly use event_tick must free the c_string returned. (or do I need to add a str_free-ing function to do the free here?)

Auto Trait Implementations

impl !Send for CWinRep

impl !Sync for CWinRep