libwiigui 1.07
libwiigui is a GUI library for the Wii
 
Loading...
Searching...
No Matches
gui_optionbrowser.h
1#ifndef LIBWIIGUI_OPTIONBROWSER_H
2#define LIBWIIGUI_OPTIONBROWSER_H
3
4typedef struct _optionlist {
5 int length;
6 char name[MAX_OPTIONS][50];
7 char value[MAX_OPTIONS][50];
9
12public:
13 GuiOptionBrowser(int w, int h, OptionList * l);
15 void SetCol1Position(int x);
16 void SetCol2Position(int x);
17 int FindMenuItem(int c, int d);
18 int GetClickedOption();
19 void ResetState();
20 void SetFocus(int f);
21 void Draw() override;
22 void TriggerUpdate();
23 void ResetText();
24 void Update(GuiTrigger * t);
25 GuiText * optionVal[PAGESIZE];
26protected:
27 int optionIndex[PAGESIZE];
28 GuiButton * optionBtn[PAGESIZE];
29 GuiText * optionTxt[PAGESIZE];
30 GuiImage * optionBg[PAGESIZE];
31
32 int selectedItem;
33 int listOffset;
34 OptionList * options;
35
36 GuiButton * arrowUpBtn;
37 GuiButton * arrowDownBtn;
38
39 GuiImage * bgOptionsImg;
40 GuiImage * scrollbarImg;
41 GuiImage * arrowDownImg;
42 GuiImage * arrowDownOverImg;
43 GuiImage * arrowUpImg;
44 GuiImage * arrowUpOverImg;
45
46 GuiImageData * bgOptions;
47 GuiImageData * bgOptionsEntry;
48 GuiImageData * scrollbar;
49 GuiImageData * arrowDown;
50 GuiImageData * arrowDownOver;
51 GuiImageData * arrowUp;
52 GuiImageData * arrowUpOver;
53
54 GuiSound * btnSoundOver;
55 GuiSound * btnSoundClick;
56 GuiTrigger * trigA;
57 GuiTrigger * trig2;
58
59 bool listChanged;
60};
61
62#endif
Display, manage, and manipulate buttons in the GUI. Buttons can have images, icons,...
Definition: gui_button.h:5
Primary GUI class. Most other classes inherit from this class.
Definition: gui_element.h:7
Converts image data into GX-useable RGBA8. Currently designed for use only with PNG files.
Definition: gui_imagedata.h:5
Display, manage, and manipulate images in the GUI.
Definition: gui_image.h:12
Display a list of menu options.
Definition: gui_optionbrowser.h:11
void Draw() override
Definition: gui_optionbrowser.cpp:214
void ResetText()
Called when the language has changed, to obtain new text values for all text elements.
Definition: gui_optionbrowser.cpp:246
~GuiOptionBrowser()
Definition: gui_optionbrowser.cpp:106
void Update(GuiTrigger *t)
Definition: gui_optionbrowser.cpp:262
void SetFocus(int f)
Definition: gui_optionbrowser.cpp:152
void ResetState()
Resets the element's state to STATE::DEFAULT.
Definition: gui_optionbrowser.cpp:163
Sound conversion and playback. A wrapper for other sound libraries - ASND, libmad,...
Definition: gui_sound.h:10
Display, manage, and manipulate text in the GUI.
Definition: gui_text.h:5
Menu input trigger management. Determine if action is neccessary based on input data by comparing con...
Definition: gui_trigger.h:12
Definition: gui_optionbrowser.h:4