My Project
 
Loading...
Searching...
No Matches
WndBag Class Reference

#include <wndbag.h>

Inheritance diagram for WndBag:
Collaboration diagram for WndBag:

Classes

class  Listener
 

Public Types

enum  Mode {
  ALL , UNIDENTIFED , UPGRADEABLE , QUICKSLOT ,
  FOR_SALE , WEAPON , ARMOR , ENCHANTABLE ,
  WAND , SEED
}
 

Public Member Functions

 WndBag (Bag *bag, Listener *listener, Mode mode, const std::string &title)
 
- Public Member Functions inherited from WndTabbed
virtual void resize (int w, int h)
 
void select (Tab *tab)
 
void select (int index)
 
 WndTabbed ()
 
- Public Member Functions inherited from Window
 Window ()
 
 Window (int width, int height)
 
 Window (int width, int height, NinePatch *chrome)
 
virtual void onBackPressed ()
 
void hide ()
 
virtual void destroy ()
 
virtual void onSignal (Keys::Key *key)
 

Static Public Member Functions

static WndBagseedPouch (Listener *listener, Mode mode, const String &title)
 
static WndBagLastBag (Listener *listener, Mode mode, const String &title)
 

Protected Member Functions

void placeItems (Bag *container)
 
- Protected Member Functions inherited from WndTabbed
void onClick (Tab *tab)
 
int tabHeight ()
 
Tabadd (Tab *tab)
 

Protected Attributes

int count
 
int col
 
int row
 
- Protected Attributes inherited from WndTabbed
std::vector< Tab * > tabs
 
Tabselected
 

Static Protected Attributes

static const int COLS_P = 4
 
static const int COLS_L = 6
 
static const int SLOT_SIZE = 28
 
static const int SLOT_MARGIN = 1
 
static const int TAB_WIDTH = 25
 
static const int TITLE_HEIGHT = 12
 

Additional Inherited Members

- Public Attributes inherited from Window
int width
 
int height
 
TouchArea * blocker
 
ShadowBoxshadow
 
NinePatch * chrome
 
- Static Public Attributes inherited from Window
static const int TITLE_COLOR = 0xFFFF44
 

Member Enumeration Documentation

◆ Mode

Enumerator
ALL 
UNIDENTIFED 
UPGRADEABLE 
QUICKSLOT 
FOR_SALE 
WEAPON 
ARMOR 
ENCHANTABLE 
WAND 
SEED 

Constructor & Destructor Documentation

◆ WndBag()

WndBag::WndBag ( Bag * bag,
Listener * listener,
Mode mode,
const std::string & title )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ LastBag()

WndBag * WndBag::LastBag ( Listener * listener,
Mode mode,
const String & title )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ placeItems()

void WndBag::placeItems ( Bag * container)
protected
Here is the caller graph for this function:

◆ seedPouch()

WndBag * WndBag::seedPouch ( Listener * listener,
Mode mode,
const String & title )
static
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ col

int WndBag::col
protected

◆ COLS_L

const int WndBag::COLS_L = 6
staticprotected

◆ COLS_P

const int WndBag::COLS_P = 4
staticprotected

◆ count

int WndBag::count
protected

◆ row

int WndBag::row
protected

◆ SLOT_MARGIN

const int WndBag::SLOT_MARGIN = 1
staticprotected

◆ SLOT_SIZE

const int WndBag::SLOT_SIZE = 28
staticprotected

◆ TAB_WIDTH

const int WndBag::TAB_WIDTH = 25
staticprotected

◆ TITLE_HEIGHT

const int WndBag::TITLE_HEIGHT = 12
staticprotected

The documentation for this class was generated from the following files: