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

ndk::label Class Reference

Inheritance diagram for ndk::label:

Inheritance graph
Collaboration diagram for ndk::label:

Collaboration graph
List of all members.

Public Member Functions

 label (const std::string &str, panel *parent=0)
void set_text (const std::string &str)
const std::string & text () const
virtual void draw ()

Protected Member Functions

void draw (const std::string &str, std::string::size_type begin)
virtual void set_color (ncurses::pen &)

Protected Attributes

std::string text_

Detailed Description

General label object, add to ndk::panel feature to set/get and draw text

Constructor & Destructor Documentation

label::label const std::string &  str,
panel parent = 0

Member Function Documentation

void label::draw const std::string &  str,
std::string::size_type  begin

void label::draw  )  [virtual]

draw text in the window, don't made refresh

Reimplemented from ndk::panel.

Reimplemented in ndk::edit, ndk::push_button, ndk::switch_button< T >, and ndk::switch_button< radio >.

void label::set_color ncurses::pen &   )  [protected, virtual]

Reimplemented in ndk::mini_button, and ndk::button.

void label::set_text const std::string &  str  ) 

set label text

Reimplemented in ndk::edit.

const std::string & label::text  )  const

get label text

Member Data Documentation

std::string ndk::label::text_ [protected]

label's text

The documentation for this class was generated from the following files:
Generated on Fri Jun 4 16:20:57 2004 for NDK++ by doxygen 1.3.6