pub struct Window {
pub ptr: *const u64,
/* private fields */
}
Fields§
§ptr: *const u64
the pointer to the actual window in memory
Implementations§
Source§impl Window
impl Window
Sourcepub fn create_win(
name: String,
height: u64,
width: u64,
x: u64,
y: u64,
context: &mut Context,
)
pub fn create_win( name: String, height: u64, width: u64, x: u64, y: u64, context: &mut Context, )
Create a window and add it to the specified windowing context
§Arguments
name
- the name to register the window underheight
- the height of the windowwidth
- the width of the windowx
- the starting x coordinatey
- the starting y coordinatecontext
- the ncurses context to create a window for
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more