AreaListIcons Class Reference

#include <area_list_icons.h>

Inheritance diagram for AreaListIcons:

AreaTabletScrolled AreaTablet Area ButtonBitmapped ButtonBase List of all members.

Public Types

enum  property

Public Member Functions

 AreaListIcons (TWindow *menu, char *identbranch, int akey)
void set_iconinfo (BITMAP **alistIcon, double ascale)
int getk ()
virtual void handle_rpress ()

Public Attributes

int * itemproperty
BITMAP ** listIcon
bool selected

Detailed Description

This draws a matrix of icons on an Area. It will try to display the icons in something as close to a box as possible. It will automatically detect the best size of the square; because of this, you cannot assume that the layout is exactly as you want it to be, and therefore you should only use this for icons for which a particular ordering is not important. The Area defines the area where the icons are visible.


Member Enumeration Documentation

enum AreaListIcons::property
 

values for the itemproperty


Constructor & Destructor Documentation

AreaListIcons::AreaListIcons TWindow menu,
char *  identbranch,
int  akey
 

constructor


Member Function Documentation

int AreaListIcons::getk  ) 
 

if selected, returns the k-th icon in the list

void AreaListIcons::handle_rpress  )  [virtual]
 

overloaded for scroll-help: centering the matrix on the mouse position with a right-click

Reimplemented from ButtonBase.

void AreaListIcons::set_iconinfo BITMAP **  alistIcon,
double  ascale
 

supply the list of available bitmaps. These are referenced, not copied, and you're responsible for cleaning those bitmaps up afterwards.


Member Data Documentation

int* AreaListIcons::itemproperty
 

whether the icon is present or not for the elements in the matrix (some matrix elements can be unused, if there are not enough icons to fill each position in the square)

BITMAP** AreaListIcons::listIcon
 

the list of icons

bool AreaListIcons::selected
 

shows if an icon was selected

Reimplemented from ButtonBase.


The documentation for this class was generated from the following files:
Generated on Tue Feb 14 13:48:44 2006 for Twgui by  doxygen 1.4.6-NO