Mario Kart 64
Loading...
Searching...
No Matches
UIWidgets.h File Reference
#include <string>
#include <vector>
#include <span>
#include <stdint.h>
#include <imgui.h>
#include <libultraship/libultraship.h>
#include <unordered_map>
#include "port/ShipUtils.h"
Include dependency graph for UIWidgets.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  UIWidgets::TextFilters
 
struct  UIWidgets::WidgetOptions
 
struct  UIWidgets::ButtonOptions
 
struct  UIWidgets::CheckboxOptions
 
struct  UIWidgets::ComboboxOptions
 
struct  UIWidgets::IntSliderOptions
 
struct  UIWidgets::FloatSliderOptions
 

Namespaces

namespace  UIWidgets
 
namespace  UIWidgets::Sizes
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 

Typedefs

using UIWidgets::SectionFunc = void(*)()
 

Enumerations

enum  UIWidgets::Colors {
  UIWidgets::Red , UIWidgets::DarkRed , UIWidgets::Orange , UIWidgets::Green ,
  UIWidgets::DarkGreen , UIWidgets::LightBlue , UIWidgets::Blue , UIWidgets::DarkBlue ,
  UIWidgets::Indigo , UIWidgets::Violet , UIWidgets::Purple , UIWidgets::Brown ,
  UIWidgets::Gray , UIWidgets::DarkGray , UIWidgets::Pink , UIWidgets::Yellow ,
  UIWidgets::Cyan , UIWidgets::Black , UIWidgets::LightGray , UIWidgets::White ,
  UIWidgets::NoColor
}
 
enum  UIWidgets::LabelPosition {
  UIWidgets::Near , UIWidgets::Far , UIWidgets::Above , UIWidgets::None ,
  UIWidgets::Within
}
 
enum  UIWidgets::ComponentAlignment { UIWidgets::Left , UIWidgets::Right }
 

Functions

std::string UIWidgets::WrappedText (const char *text, unsigned int charactersPerLine)
 
std::string UIWidgets::WrappedText (const std::string &text, unsigned int charactersPerLine)
 
void UIWidgets::Tooltip (const char *text)
 
void UIWidgets::PushStyleMenu (const ImVec4 &color)
 
void UIWidgets::PushStyleMenu (Colors color)
 
void UIWidgets::PopStyleMenu ()
 
bool UIWidgets::BeginMenu (const char *label, Colors color)
 
void UIWidgets::PushStyleMenuItem (const ImVec4 &color)
 
void UIWidgets::PushStyleMenuItem (Colors color)
 
void UIWidgets::PopStyleMenuItem ()
 
bool UIWidgets::MenuItem (const char *label, const char *shortcut, Colors color)
 
void UIWidgets::PushStyleButton (const ImVec4 &color)
 
void UIWidgets::PushStyleButton (Colors color)
 
void UIWidgets::PopStyleButton ()
 
bool UIWidgets::Button (const char *label, const ButtonOptions &options)
 
bool UIWidgets::WindowButton (const char *label, const char *cvarName, std::shared_ptr< Ship::GuiWindow > windowPtr, const ButtonOptions &options)
 
void UIWidgets::PushStyleCheckbox (const ImVec4 &color)
 
void UIWidgets::PushStyleCheckbox (Colors color)
 
void UIWidgets::PopStyleCheckbox ()
 
void UIWidgets::RenderText (ImVec2 pos, const char *text, const char *text_end, bool hide_text_after_hash)
 
bool UIWidgets::Checkbox (const char *_label, bool *value, const CheckboxOptions &options)
 
bool UIWidgets::CVarCheckbox (const char *label, const char *cvarName, const CheckboxOptions &options)
 
void UIWidgets::PushStyleCombobox (const ImVec4 &color)
 
void UIWidgets::PushStyleCombobox (Colors color)
 
void UIWidgets::PopStyleCombobox ()
 
template<typename T>
bool UIWidgets::Combobox (const char *label, T *value, const std::unordered_map< T, const char * > &comboMap, const ComboboxOptions &options={})
 
template<typename T = size_t>
bool UIWidgets::Combobox (const char *label, T *value, const std::vector< const char * > &comboVector, const ComboboxOptions &options={})
 
template<typename T = size_t, size_t N>
bool UIWidgets::Combobox (const char *label, T *value, const char *(&comboArray)[N], const ComboboxOptions &options={})
 
template<typename T = int32_t>
bool UIWidgets::CVarCombobox (const char *label, const char *cvarName, const std::unordered_map< T, const char * > &comboMap, const ComboboxOptions &options={})
 
template<typename T = int32_t>
bool UIWidgets::CVarCombobox (const char *label, const char *cvarName, const std::vector< const char * > &comboVector, const ComboboxOptions &options={})
 
template<typename T = int32_t, size_t N>
bool UIWidgets::CVarCombobox (const char *label, const char *cvarName, const char *(&comboArray)[N], const ComboboxOptions &options={})
 
void UIWidgets::PushStyleSlider (Colors color_)
 
void UIWidgets::PopStyleSlider ()
 
bool UIWidgets::SliderInt (const char *label, int32_t *value, const IntSliderOptions &options)
 
bool UIWidgets::CVarSliderInt (const char *label, const char *cvarName, const IntSliderOptions &options)
 
bool UIWidgets::SliderFloat (const char *label, float *value, const FloatSliderOptions &options)
 
bool UIWidgets::CVarSliderFloat (const char *label, const char *cvarName, const FloatSliderOptions &options)
 
bool UIWidgets::CVarColorPicker (const char *label, const char *cvarName, Color_RGBA8 defaultColor)
 
void UIWidgets::DrawFlagArray32 (const std::string &name, uint32_t &flags)
 
void UIWidgets::DrawFlagArray16 (const std::string &name, uint16_t &flags)
 
void UIWidgets::DrawFlagArray8 (const std::string &name, uint8_t &flags)
 
void UIWidgets::DrawFlagArray8Mask (const std::string &name, uint8_t &flags)
 

Variables

const std::unordered_map< Colors, ImVec4 > UIWidgets::ColorValues
 
const ImVec2 UIWidgets::Sizes::Inline = ImVec2(0.0f, 0.0f)
 
const ImVec2 UIWidgets::Sizes::Fill = ImVec2(-1.0f, 0.0f)
 

Macro Definition Documentation

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS