![]() |
Lua Player Plus Vita
Documentation of lpp-vita
|
Module that handles 2D GUI development through dear ImGui wrapper. More...
Enumerations | |
| enum | GuiTheme { DARK_THEME , LIGHT_THEME , CLASSIC_THEME } |
| Themes constants to use with Gui.setTheme. More... | |
| enum | WinFlags { FLAG_NONE , FLAG_NO_COLLAPSE , FLAG_NO_MOVE , FLAG_NO_RESIZE , FLAG_NO_SCROLLBAR , FLAG_NO_TITLEBAR , FLAG_HORIZONTAL_SCROLLBAR } |
| Window flags to use with Gui.initWindow. More... | |
| enum | ConfigMode { SET_ONCE , SET_ALWAYS } |
| Function mode to alter frequency of execution. More... | |
Functions | |
| void | Gui::init (void) |
| Init Gui sub-system. | |
| void | Gui::term (void) |
| Terminate Gui sub-system. | |
| void | Gui::initBlend (void) |
| Init Gui drawing phase. | |
| void | Gui::termBlend (void) |
| Terminate Gui drawing phase. | |
| void | Gui::setTheme (GuiTheme theme) |
| Change theme for the running Gui. | |
| void | Gui::setInputMode (bool use_touch, bool use_rear, bool use_buttons, bool indirect_touch) |
| Change input mode for the running Gui. | |
| bool | Gui::initMainMenubar (void) |
| Init screen menubar. | |
| void | Gui::termMainMenubar (void) |
| Terminate screen menubar. | |
| bool | Gui::initMenu (string label, bool enabled) |
| Init a menu. | |
| void | Gui::termMenu (void) |
| Terminate a menu. | |
| bool | Gui::drawMenuItem (string label, bool selected, bool enabled) |
| Draw a menu item. | |
| void | Gui::drawText (string label, int color) |
| Draw a text. | |
| number[] | Gui::getTextSize (string text) |
| Calculate a text size. | |
| void | Gui::drawDisabledText (string label) |
| Draw a greyed out text. | |
| void | Gui::drawWrappedText (string label) |
| Draw a text with automatic newlines to fit the window. | |
| bool | Gui::drawButton (string label, number width, number height) |
| Draw a button. | |
| bool | Gui::drawSmallButton (string label) |
| Draw a small button. | |
| bool | Gui::drawCheckbox (string label, bool status) |
| Draw a checkbox. | |
| bool | Gui::drawRadioButton (string label, bool status) |
| Draw a radiobutton. | |
| void | Gui::resetLine (void) |
| Make next element be drawn on current line. | |
| void | Gui::initWindow (string label, WinFlags flags) |
| Init a window. | |
| void | Gui::termWindow (void) |
| Terminate a window. | |
| void | Gui::setWindowPos (number x, number y, ConfigMode mode) |
| Set next window position. | |
| void | Gui::setWindowSize (number w, number h, ConfigMode mode) |
| Set next window size. | |
| void | Gui::drawSeparator (void) |
| Draw a separator. | |
| void | Gui::drawTooltip (string label) |
| Draw a tooltip when cursor hover on the previous item. | |
| number[] | Gui::drawSlider (string label, number val_min, number val_max, number val1, number val2, number val3, number val4) |
| Draw a slider with variable amount of values. | |
| int[] | Gui::drawIntSlider (string label, int val_min, int val_max, int val1, int val2, int val3, int val4) |
| Draw a slider with variable amount of integer values. | |
| int | Gui::drawComboBox (string label, int index, table elements) |
| Draw a combobox. | |
| int | Gui::drawListBox (string label, int index, table elements) |
| Draw a listbox. | |
| int | Gui::drawColorPicker (string label, int color, bool alpha) |
| Draw a color picker. | |
| void | Gui::drawProgressbar (number fraction, number w, number h) |
| Draw a progressbar. | |
| void | Gui::drawImage (int img, number width, number height, number img_x, number img_y, number img_w, number img_h, int color) |
| Draw an image in the Gui subsystem. | |
| void | Gui::setWidgetPos (number x, number y) |
| Set next widget position. | |
| void | Gui::setWidgetWidth (number w) |
| Set next widgets width. | |
| void | Gui::resetWidgetWidth () |
| Reset next widgets width to original values. | |
Module that handles 2D GUI development through dear ImGui wrapper.
| enum GuiTheme |
Themes constants to use with Gui.setTheme.
| Enumerator | |
|---|---|
| DARK_THEME | Dark Theme. |
| LIGHT_THEME | Light Theme. |
| CLASSIC_THEME | Classic Theme. |
| enum WinFlags |
Window flags to use with Gui.initWindow.
| enum ConfigMode |
| void Gui::init | ( | void | ) |
| void Gui::term | ( | void | ) |
| void Gui::initBlend | ( | void | ) |
Init Gui drawing phase.
| void Gui::termBlend | ( | void | ) |
Terminate Gui drawing phase.
| void Gui::setTheme | ( | GuiTheme | theme | ) |
| void Gui::setInputMode | ( | bool | use_touch, |
| bool | use_rear, | ||
| bool | use_buttons, | ||
| bool | indirect_touch | ||
| ) |
Change input mode for the running Gui.
| use_touch | - Enable front touch usage for cursor movement. |
| use_rear | - Enable rearpad touch usage for cursor movement. |
| use_buttons | - Enable buttons usage for cursor movement. |
| indirect_touch | - If enabled, cursor is moved by dragging it. If disabled, cursor jumps to the touched location. |
| bool Gui::initMainMenubar | ( | void | ) |
Init screen menubar.
| void Gui::termMainMenubar | ( | void | ) |
Terminate screen menubar.
| bool Gui::initMenu | ( | string | label, |
| bool | enabled | ||
| ) |
Init a menu.
| label | - The label to show. |
| enabled | - The menu status to set (optional). |
| void Gui::termMenu | ( | void | ) |
| bool Gui::drawMenuItem | ( | string | label, |
| bool | selected, | ||
| bool | enabled | ||
| ) |
Draw a menu item.
| label | - The label to show. |
| selected | - The item checked status (optional). |
| enabled | - The item status to set (optional). |
| void Gui::drawText | ( | string | label, |
| int | color | ||
| ) |
Draw a text.
| label | - The label to show. |
| color | - A valid color (See Color) (optional). |
| number[] Gui::getTextSize | ( | string | text | ) |
Calculate a text size.
| text | - The text to calculate the size about. |
| void Gui::drawDisabledText | ( | string | label | ) |
Draw a greyed out text.
| label | - The label to show. |
| void Gui::drawWrappedText | ( | string | label | ) |
Draw a text with automatic newlines to fit the window.
| label | - The label to show. |
| bool Gui::drawButton | ( | string | label, |
| number | width, | ||
| number | height | ||
| ) |
Draw a button.
| label | - The label to show. |
| width | - The width of the button (optional). |
| height | - The height of the button (optional). |
| bool Gui::drawSmallButton | ( | string | label | ) |
Draw a small button.
| label | - The label to show. |
| bool Gui::drawCheckbox | ( | string | label, |
| bool | status | ||
| ) |
Draw a checkbox.
| label | - The label to show. |
| status | - The initial checked status of the checkbox. |
| bool Gui::drawRadioButton | ( | string | label, |
| bool | status | ||
| ) |
Draw a radiobutton.
| label | - The label to show. |
| status | - The initial checked status of the radiobutton. |
| void Gui::resetLine | ( | void | ) |
Make next element be drawn on current line.
| void Gui::initWindow | ( | string | label, |
| WinFlags | flags | ||
| ) |
Init a window.
| label | - The label to show. |
| flags | - The flags to use with the window. |
| void Gui::termWindow | ( | void | ) |
Terminate a window.
| void Gui::setWindowPos | ( | number | x, |
| number | y, | ||
| ConfigMode | mode | ||
| ) |
Set next window position.
| x | - X coordinate of the window position in pixels. |
| y | - Y coordinate of the window position in pixels. |
| mode | - A mode to use for the function. |
| void Gui::setWindowSize | ( | number | w, |
| number | h, | ||
| ConfigMode | mode | ||
| ) |
Set next window size.
| w | -Width of the window in pixels. |
| h | - Height of the window in pixels. |
| mode | - A mode to use for the function. |
| void Gui::drawSeparator | ( | void | ) |
Draw a separator.
| void Gui::drawTooltip | ( | string | label | ) |
Draw a tooltip when cursor hover on the previous item.
| label | - The label to show. |
| number[] Gui::drawSlider | ( | string | label, |
| number | val_min, | ||
| number | val_max, | ||
| number | val1, | ||
| number | val2, | ||
| number | val3, | ||
| number | val4 | ||
| ) |
Draw a slider with variable amount of values.
| label | - The label to show. |
| val_min | - The minimum value settable through the slider. |
| val_max | - The maximum value settable through the slider. |
| val1 | - The first value to handle with the slider. |
| val2 | - The second value to handle with the slider (optional). |
| val3 | - The third value to handle with the slider (optional). |
| val4 | - The forth value to handle with the slider (optional). |
| int[] Gui::drawIntSlider | ( | string | label, |
| int | val_min, | ||
| int | val_max, | ||
| int | val1, | ||
| int | val2, | ||
| int | val3, | ||
| int | val4 | ||
| ) |
Draw a slider with variable amount of integer values.
| label | - The label to show. |
| val_min | - The minimum value settable through the slider. |
| val_max | - The maximum value settable through the slider. |
| val1 | - The first value to handle with the slider. |
| val2 | - The second value to handle with the slider (optional). |
| val3 | - The third value to handle with the slider (optional). |
| val4 | - The forth value to handle with the slider (optional). |
| int Gui::drawComboBox | ( | string | label, |
| int | index, | ||
| table | elements | ||
| ) |
Draw a combobox.
| label | - The label to show. |
| index | - The currently selected element. |
| elements | - The elements to use for the combobox. |
| int Gui::drawListBox | ( | string | label, |
| int | index, | ||
| table | elements | ||
| ) |
Draw a listbox.
| label | - The label to show. |
| index | - The currently selected element. |
| elements | - The elements to use for the combobox. |
| int Gui::drawColorPicker | ( | string | label, |
| int | color, | ||
| bool | alpha | ||
| ) |
Draw a color picker.
| label | - The label to show. |
| color | - The currently picked color (See Color) |
| alpha | - If true, alpha value will be pickable, not otherwise. (optional). |
| void Gui::drawProgressbar | ( | number | fraction, |
| number | w, | ||
| number | h | ||
| ) |
Draw a progressbar.
| fraction | - Progress value to show in 0.0 - 1.0 range. |
| w | - Width of the element in pixels (optional). |
| h | - Height of the element in pixels (optional). |
| void Gui::drawImage | ( | int | img, |
| number | width, | ||
| number | height, | ||
| number | img_x, | ||
| number | img_y, | ||
| number | img_w, | ||
| number | img_h, | ||
| int | color | ||
| ) |
Draw an image in the Gui subsystem.
| img | - A valid image ID. |
| width | - Width in pixels of the widget (optional). |
| height | - Height in pixels of the widget (optional). |
| img_x | - Source image X coordinate (optional). |
| img_y | - Source image Y coordinate (optional). |
| img_w | - Source image width (optional). |
| img_h | - Source image height (optional). |
| color | - Image tint color (See Color) (optional). |
| void Gui::setWidgetPos | ( | number | x, |
| number | y | ||
| ) |
Set next widget position.
| x | - X coordinate in pixels. |
| y | - Y coordinate in pixels. |
| void Gui::setWidgetWidth | ( | number | w | ) |
Set next widgets width.
| w | - Width of the element in pixels. |
| void Gui::resetWidgetWidth | ( | ) |
Reset next widgets width to original values.