libyui-ncurses
 
Loading...
Searching...
No Matches
NCtoY2Event Class Reference

#include <NCtoY2Event.h>

Inheritance diagram for NCtoY2Event:
Collaboration diagram for NCtoY2Event:

Public Member Functions

 NCtoY2Event ()
 
 NCtoY2Event (const NCursesEvent &ncev)
 
NCtoY2Eventoperator= (const NCursesEvent &ncev)
 
YEvent * propagate ()
 
- Public Member Functions inherited from NCursesEvent
 NCursesEvent (Type t=none, YEvent::EventReason r=YEvent::UnknownReason)
 
 operator void * () const
 
bool operator== (const NCursesEvent &e) const
 
bool operator!= (const NCursesEvent &e) const
 
bool isReturnEvent () const
 
bool isInternalEvent () const
 

Friends

std::ostream & operator<< (std::ostream &stream, const NCtoY2Event &event)
 

Additional Inherited Members

- Public Types inherited from NCursesEvent
enum  Type {
  handled = -1 , none = 0 , cancel , timeout ,
  button , menu , key , debug ,
  special_key_config
}
 
enum  DETAIL { NODETAIL = -1 , CONTINUE = -2 , USERDEF = -3 }
 
- Public Attributes inherited from NCursesEvent
Type type
 
NCWidgetwidget
 
YMenuItem * selection
 
std::string result
 
std::string keySymbol
 
int detail
 
YEvent::EventReason reason
 
- Static Public Attributes inherited from NCursesEvent
static const NCursesEvent Activated
 
static const NCursesEvent SelectionChanged
 
static const NCursesEvent ValueChanged
 

Detailed Description

Helper class for translating an NCurses event to a YEvent.

Constructor & Destructor Documentation

◆ NCtoY2Event() [1/2]

NCtoY2Event::NCtoY2Event ( )
inline

Default constructor

◆ NCtoY2Event() [2/2]

NCtoY2Event::NCtoY2Event ( const NCursesEvent & ncev)

Constructor from an NCursesEvent

Member Function Documentation

◆ operator=()

NCtoY2Event & NCtoY2Event::operator= ( const NCursesEvent & ncev)

Assignment operator

◆ propagate()

YEvent * NCtoY2Event::propagate ( )

The reason of existence of this class: Translate the NCursesEvent to a YEvent.


The documentation for this class was generated from the following files: