[][src]Struct cgui::CWinRep

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

title: Stringwidth: usizeheight: usizepixels: ImageBuffer<Rgb<u8>, Vec<u8>>exit_flag: bool

Methods

impl CWinRep[src]

pub fn write_px(&mut self, x: u32, y: u32, rgb: [u8; 3])[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]

fn event_tick(&self) -> String[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.

Auto Trait Implementations

impl !Send for CWinRep

impl !Sync for CWinRep

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.