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

ndk::text_view Class Reference

Inheritance diagram for ndk::text_view:

Inheritance graph
[legend]
Collaboration diagram for ndk::text_view:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 text_view (const std::string &title="", panel *parent=0)
void add_text (const std::string &str)
void set_text (const std::string &str)
virtual void draw ()
virtual int padding () const
virtual void resize (unsigned int w, unsigned int h)

Private Member Functions

event::result at_system (const event &)
event::result at_mouse (const mouse &)

Private Attributes

text text_
v_scroll_bar bar_
std::string title_
bool active_

Constructor & Destructor Documentation

text_view::text_view const std::string &  title = "",
panel parent = 0
 


Member Function Documentation

void text_view::add_text const std::string &  str  ) 
 

event::result text_view::at_mouse const mouse  )  [private]
 

event::result text_view::at_system const event  )  [private]
 

system event processor

Reimplemented from ndk::panel.

void text_view::draw  )  [virtual]
 

specific version of draw, specially for NDK engine

Reimplemented from ndk::panel.

int text_view::padding  )  const [virtual]
 

return padding size from the edge, helps to control drawing area it's usefull for packing under frames: active area will be (x()+padding(),x()+width()-padding()) x (y()+padding(),y()+height()-padding())

Reimplemented from ndk::panel.

void text_view::resize unsigned int  w,
unsigned int  h
[virtual]
 

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


Member Data Documentation

bool ndk::text_view::active_ [private]
 

v_scroll_bar ndk::text_view::bar_ [private]
 

text ndk::text_view::text_ [private]
 

std::string ndk::text_view::title_ [private]
 


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