[−][src]Struct cgui::CWin
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]
&mut self,
function: extern "C" fn(_: *mut CWinRep, _: String)
)
pub fn add_callback_raw(
&mut self,
function: extern "C" fn(_: *mut CWinRep, _: *const c_char)
)
[src]
&mut self,
function: extern "C" fn(_: *mut CWinRep, _: *const c_char)
)
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]
Win32 backend implementation
fn init(&mut self)
[src]
fn redraw_dirty(&mut self)
[src]
fn redraw_box(&mut self, x1: usize, y1: usize, x2: usize, y2: usize)
[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.
fn event_loop(&mut self)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.