mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 21:36:12 +02:00
33 lines
998 B
C++
33 lines
998 B
C++
#ifndef __hifi__MenuColumn__
|
||
#define __hifi__MenuColumn__
|
||
#include <vector>
|
||
|
||
class MenuColumn {
|
||
public:
|
||
MenuColumn();
|
||
MenuColumn(char * columnName);
|
||
~MenuColumn();
|
||
void mouseClickRow(int iColumnIndex);
|
||
bool mouseClick(int x, int y, int xLeft, int menuHeight, int lineHeight);
|
||
void setMouseOver(int xLeft, int xRight, int yTop, int yBottom);
|
||
bool mouseOver(int x, int y, int xLeft, int menuHeight, int lineHeight);
|
||
char* getName();
|
||
int getWidth(float scale, int mono, int leftPosition);
|
||
int getWidth();
|
||
int getLeftPosition();
|
||
void render(int yOffset, int menuHeight, int lineHeight);
|
||
void renderMouseOver(int yOffset);
|
||
int addRow(const char * rowName, MenuRowCallback callback);
|
||
private:
|
||
char columnName[MAX_COLUMN_NAME];
|
||
int columnWidth;
|
||
int leftPosition;
|
||
std::vector<MenuRow> rows;
|
||
int leftMouseOver;
|
||
int rightMouseOver;
|
||
int topMouseOver;
|
||
int bottomMouseOver;
|
||
};
|
||
|
||
#endif /* defined(__hifi__MenuColumn__) */
|
||
|