ManaPlus
Public Member Functions | Data Fields
TouchItem Struct Reference

#include <touchmanager.h>

Public Member Functions

 TouchItem (const std::string &text0, const Rect &rect0, const int type0, const std::string &eventPressed0, const std::string &eventReleased0, ImageRect *const images0, Image *const icon0, const int x0, const int y0, const int width0, const int height0, const TouchFuncPtr ptrAll, const TouchFuncPtr ptrPressed, const TouchFuncPtr ptrReleased, const TouchFuncPtr ptrOut)
 

Data Fields

std::string text
 
Rect rect
 
int type
 
std::string eventPressed
 
std::string eventReleased
 
ImageRectimages
 
Imageicon
 
int x
 
int y
 
int width
 
int height
 
TouchFuncPtr funcAll
 
TouchFuncPtr funcPressed
 
TouchFuncPtr funcReleased
 
TouchFuncPtr funcOut
 

Detailed Description

Definition at line 46 of file touchmanager.h.

Constructor & Destructor Documentation

◆ TouchItem()

TouchItem::TouchItem ( const std::string &  text0,
const Rect rect0,
const int  type0,
const std::string &  eventPressed0,
const std::string &  eventReleased0,
ImageRect *const  images0,
Image *const  icon0,
const int  x0,
const int  y0,
const int  width0,
const int  height0,
const TouchFuncPtr  ptrAll,
const TouchFuncPtr  ptrPressed,
const TouchFuncPtr  ptrReleased,
const TouchFuncPtr  ptrOut 
)
inline

Definition at line 48 of file touchmanager.h.

60  :
61  text(text0),
62  rect(rect0),
63  type(type0),
64  eventPressed(eventPressed0),
65  eventReleased(eventReleased0),
66  images(images0),
67  icon(icon0),
68  x(x0),
69  y(y0),
70  width(width0),
71  height(height0),
72  funcAll(ptrAll),
73  funcPressed(ptrPressed),
74  funcReleased(ptrReleased),
75  funcOut(ptrOut)
76  {
77  }
std::string eventPressed
Definition: touchmanager.h:84
TouchFuncPtr funcOut
Definition: touchmanager.h:95
Image * icon
Definition: touchmanager.h:87
TouchFuncPtr funcReleased
Definition: touchmanager.h:94
std::string eventReleased
Definition: touchmanager.h:85
std::string text
Definition: touchmanager.h:81
TouchFuncPtr funcAll
Definition: touchmanager.h:92
ImageRect * images
Definition: touchmanager.h:86
TouchFuncPtr funcPressed
Definition: touchmanager.h:93

Field Documentation

◆ eventPressed

std::string TouchItem::eventPressed

Definition at line 84 of file touchmanager.h.

Referenced by TouchManager::processEvent().

◆ eventReleased

std::string TouchItem::eventReleased

Definition at line 85 of file touchmanager.h.

Referenced by TouchManager::processEvent().

◆ funcAll

TouchFuncPtr TouchItem::funcAll

Definition at line 92 of file touchmanager.h.

Referenced by TouchManager::processEvent().

◆ funcOut

TouchFuncPtr TouchItem::funcOut

Definition at line 95 of file touchmanager.h.

Referenced by TouchManager::processEvent().

◆ funcPressed

TouchFuncPtr TouchItem::funcPressed

Definition at line 93 of file touchmanager.h.

Referenced by TouchManager::processEvent().

◆ funcReleased

TouchFuncPtr TouchItem::funcReleased

Definition at line 94 of file touchmanager.h.

Referenced by TouchManager::processEvent().

◆ height

int TouchItem::height

Definition at line 91 of file touchmanager.h.

Referenced by TouchManager::draw(), TouchManager::resize(), and TouchManager::safeDraw().

◆ icon

Image* TouchItem::icon

Definition at line 87 of file touchmanager.h.

Referenced by TouchManager::draw(), and TouchManager::safeDraw().

◆ images

ImageRect* TouchItem::images

Definition at line 86 of file touchmanager.h.

Referenced by TouchManager::draw(), and TouchManager::safeDraw().

◆ rect

Rect TouchItem::rect

◆ text

std::string TouchItem::text

Definition at line 81 of file touchmanager.h.

Referenced by TouchManager::drawText().

◆ type

int TouchItem::type

Definition at line 83 of file touchmanager.h.

Referenced by TouchManager::resize().

◆ width

int TouchItem::width

Definition at line 90 of file touchmanager.h.

Referenced by TouchManager::draw(), and TouchManager::safeDraw().

◆ x

int TouchItem::x

◆ y

int TouchItem::y

The documentation for this struct was generated from the following file: