Project stdui: "Simple Type Dialog User-Interface"

|
Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

stdui::cursesui Class Reference

#include <cursesui.h>

List of all members.


Public Member Functions

 cursesui ()
 ~cursesui ()

Private Member Functions

bool startncurses ()
void endncurses ()
void eventsloop ()

Private Attributes

crect _termgeometry

Friends

class stdapp

Detailed Description

Author:
Serge Lussier,,,

Definition at line 34 of file cursesui.h.


Constructor & Destructor Documentation

stdui::cursesui::cursesui  ) 
 

Definition at line 28 of file cursesui.cpp.

00029 {
00030 }

stdui::cursesui::~cursesui  ) 
 

Definition at line 33 of file cursesui.cpp.

00034 {
00035 }


Member Function Documentation

void stdui::cursesui::endncurses  )  [private]
 

Definition at line 64 of file cursesui.cpp.

00065 {
00066    endwin();
00067 }

void stdui::cursesui::eventsloop  )  [private]
 

Definition at line 73 of file cursesui.cpp.

00074 {
00075    int kevent;
00076    bool meta = false;
00077     for(;;) {
00078       meta = false;
00079       kevent = getch();
00080       if( kevent == 27 ) { // meta key candiate...
00081          kevent = getch();
00082          if(kevent != 27 ) meta = true;
00083       }
00084       //stdapp::signal_keyevent(kevent,true);
00085     }
00086 }

bool stdui::cursesui::startncurses  )  [private]
 

Definition at line 44 of file cursesui.cpp.

References _termgeometry.

00045 {
00046    if(! initscr() ) return false;
00047    int sw,sh;
00048    raw();     // want all inputs now;
00049    noecho();  // .... no comments :-)
00050    curs_set(0);
00051    keypad(stdscr,true);
00052    meta(stdscr, true);
00053    halfdelay(1);
00054    mousemask(ALL_MOUSE_EVENTS|REPORT_MOUSE_POSITION, NULL);
00055    getmaxyx(stdscr, sh, sw);
00056    _termgeometry.assign(0,0, sw, sh);
00057    stdcolor::init();
00058 }


Friends And Related Function Documentation

friend class stdapp [friend]
 

Definition at line 40 of file cursesui.h.


Member Data Documentation

crect stdui::cursesui::_termgeometry [private]
 

Definition at line 46 of file cursesui.h.

Referenced by startncurses().


The documentation for this class was generated from the following files:
API Documentation Generated by:  doxygen 1.4.0
About the author | Site started with trial version of DreamWeaver MX 2004 | Finalizing with  | Contact | ©2005, Serge Lussier ( Bretzel )