Planeshift
Classes | Defines | Typedefs | Functions

pawslistbox.h File Reference

#include "pawswidget.h"
#include "pawsmanager.h"
#include "pawstextbox.h"
#include "util/log.h"

Go to the source code of this file.

Classes

struct  ColumnDef
 Defines the structure of the list box table. More...
class  pawsListBox
 A simple list box widget. More...
class  pawsListBoxRow
 A List Box Row. More...

Defines

#define LISTBOX_HIGHLIGHTED   0x01
#define LISTBOX_MOUSE_SCROLL_AMOUNT   3
#define LISTBOX_SELECTED   0x02

Typedefs

typedef int(* listBoxSortingFunc )(pawsWidget *a, pawsWidget *b)
 Type of functions that are used to compare listbox rows during sorting:

Functions

 CREATE_PAWS_FACTORY (pawsListBox)
int textBoxSortFunc (pawsWidget *widgetA, pawsWidget *widgetB)
 Compare function that works with listbox columns that are pawsTextBox widgets:
int textBoxSortFunc_number (pawsWidget *widgetA, pawsWidget *widgetB)
 Function that compares listbox rows which contain pawsTextBoxWidget with numbers inside.