mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-25 21:14:22 +01:00
List (will this even work???)
This commit is contained in:
parent
59365e831f
commit
2cb604b095
@ -52,6 +52,35 @@ private:
|
||||
gcn::Label *title;
|
||||
};
|
||||
|
||||
|
||||
class List : public gcn::Widget
|
||||
{
|
||||
public:
|
||||
class PrivListModel : public gcn::ListModel
|
||||
{
|
||||
public:
|
||||
PrivListModel(const char **msgs, int n_msgs) : msgs(msgs), n_msgs(n_msgs)
|
||||
{
|
||||
}
|
||||
|
||||
int getNumberOfElements()
|
||||
{
|
||||
return this->n_msgs;
|
||||
}
|
||||
|
||||
std::string getElementAt(int i)
|
||||
{
|
||||
return this->msgs[this->n_msgs];
|
||||
}
|
||||
|
||||
const char **msgs;
|
||||
int n_msgs;
|
||||
};
|
||||
|
||||
List(const char **msgs, int n_msgs) {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* List boxes and drop downs need an instance of a list model
|
||||
* in order to display a list.
|
||||
|
Loading…
Reference in New Issue
Block a user