overte/interface/src/MenuRow.h
2013-04-10 16:16:36 -07:00

33 lines
649 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// MenuRow.h
// hifi
//
// Created by Dominque Vincent on 4/10/13.
//
//
#ifndef __hifi__MenuRow__
#define __hifi__MenuRow__
const int MAX_COLUMN_NAME = 50;
const int SPACE_BETWEEN_COLUMNS = 20;
const int SPACE_BEFORE_ROW_NAME = 10;
typedef int(*MenuRowCallback)(int);
class MenuRow {
public:
MenuRow();
MenuRow(const char* rowName, MenuRowCallback callback);
~MenuRow();
void call();
char * getName();
int getWidth(float scale, int mono, int leftPosition);
int getWidth();
private:
char rowName[MAX_COLUMN_NAME];
int rowWidth;
MenuRowCallback callback;
};
#endif /* defined(__hifi__MenuRow__) */