Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

crs::drawing_area Class Reference

#include <drawing_area.h>

List of all members.

Public Methods

 drawing_area (const chtype Background, const unsigned int Width, const unsigned int Height)
void resize (const unsigned int Width, const unsigned int Height)
void setText (const std::string &text, const unsigned int x, const unsigned int y)
void putPixel (const unsigned int x, const unsigned int y, const chtype ch)
void fill (const chtype ch)
void drawHLine (const unsigned int x, const unsigned int y, unsigned int len, const chtype ch)
void drawVLine (const unsigned int x, const unsigned int y, unsigned int height, const chtype ch)
void fillRect (const unsigned int x1, const unsigned int y1, const unsigned int x2, const unsigned int y2, const chtype ch)
chtype & operator[] (unsigned int index)

Protected Methods

void resize_buffer ()

Protected Attributes

unsigned int width
unsigned int height
chtype background
chtype * buffer


Constructor & Destructor Documentation

crs::drawing_area::drawing_area const chtype    Background,
const unsigned int    Width,
const unsigned int    Height
 

Definition at line 5 of file drawing_area.cpp.

References resize_buffer().


Member Function Documentation

void crs::drawing_area::drawHLine const unsigned int    x,
const unsigned int    y,
unsigned int    len,
const chtype    ch
 

Definition at line 26 of file drawing_area.cpp.

References buffer, height, and width.

Referenced by crs::list_box< T >::draw(), crs::group_box::draw(), crs::edit_ctrl< T >::draw(), crs::debug_ctrl::draw(), and fillRect().

void crs::drawing_area::drawVLine const unsigned int    x,
const unsigned int    y,
unsigned int    height,
const chtype    ch
 

Definition at line 36 of file drawing_area.cpp.

References buffer, height, and width.

Referenced by crs::list_box< T >::draw(), and crs::group_box::draw().

void crs::drawing_area::fill const chtype    ch
 

Definition at line 63 of file drawing_area.cpp.

References buffer, height, and width.

Referenced by crs::static_text::draw(), crs::list_box< T >::draw(), crs::choice_box< T >::draw(), and crs::base_control::draw().

void crs::drawing_area::fillRect const unsigned int    x1,
const unsigned int    y1,
const unsigned int    x2,
const unsigned int    y2,
const chtype    ch
 

Definition at line 44 of file drawing_area.cpp.

References drawHLine(), height, and width.

Referenced by crs::debug_ctrl::draw().

chtype& crs::drawing_area::operator[] unsigned int    index [inline]
 

Definition at line 29 of file drawing_area.h.

References buffer.

void crs::drawing_area::putPixel const unsigned int    x,
const unsigned int    y,
const chtype    ch
 

Definition at line 59 of file drawing_area.cpp.

References buffer, and width.

Referenced by crs::debug_ctrl::draw().

void crs::drawing_area::resize const unsigned int    Width,
const unsigned int    Height
 

Definition at line 53 of file drawing_area.cpp.

References height, resize_buffer(), and width.

Referenced by crs::base_control::resize().

void crs::drawing_area::resize_buffer   [protected]
 

Definition at line 10 of file drawing_area.cpp.

References background, buffer, height, and width.

Referenced by drawing_area(), and resize().

void crs::drawing_area::setText const std::string &    text,
const unsigned int    x,
const unsigned int    y
 

Definition at line 16 of file drawing_area.cpp.

References buffer, height, and width.

Referenced by crs::push_button::draw(), crs::list_box< T >::draw(), crs::group_box::draw(), crs::edit_ctrl< T >::draw(), crs::choice_box< T >::draw(), crs::check_box::draw(), and crs::base_control::setText().


Member Data Documentation

chtype crs::drawing_area::background [protected]
 

Definition at line 16 of file drawing_area.h.

Referenced by resize_buffer().

chtype* crs::drawing_area::buffer [protected]
 

Definition at line 17 of file drawing_area.h.

Referenced by drawHLine(), drawVLine(), fill(), operator[](), putPixel(), resize_buffer(), and setText().

unsigned int crs::drawing_area::height [protected]
 

Definition at line 15 of file drawing_area.h.

Referenced by drawHLine(), drawVLine(), fill(), fillRect(), resize(), resize_buffer(), and setText().

unsigned int crs::drawing_area::width [protected]
 

Definition at line 15 of file drawing_area.h.

Referenced by drawHLine(), drawVLine(), fill(), fillRect(), putPixel(), resize(), resize_buffer(), and setText().


The documentation for this class was generated from the following files:
Generated on Mon May 19 20:36:04 2003 for cursive by doxygen1.2.18