[][src]Struct cgui::CWin

pub struct CWin {
    pub rep: CWinRep,
    // some fields omitted
}

Fields

rep: CWinRep

Methods

impl CWin[src]

pub fn new() -> CWin[src]

pub fn new_detail<S: Into<String>>(title: S, width: u32, height: u32) -> CWin[src]

pub fn to_ffi_ptr(self) -> *mut CWin[src]

pub fn add_callback(
    &mut self,
    function: extern "C" fn(_: *mut CWinRep, _: String)
)
[src]

pub fn add_callback_raw(
    &mut self,
    function: extern "C" fn(_: *mut CWinRep, _: *const c_char)
)
[src]

pub fn call_callbacks(&mut self, event_string: String)[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 CWin[src]

X11 backend implementation

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. (or do I need to add a str_free-ing function to do the free here?)

Auto Trait Implementations

impl !Send for CWin

impl !Sync for CWin

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.