VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
VexUI.hpp File Reference

This file defines vex ui class, very basic ui system. More...

#include <vk_mem_alloc.h>
#include <vector>
#include <string>
#include <unordered_map>
#include <functional>
#include <glm/glm.hpp>
#include <nlohmann/json.hpp>
#include "Layout.hpp"
#include "components/ECS/ECS.hpp"
#include <SDL3/SDL.h>
#include <volk.h>
#include "../../../src/components/backends/vulkan/context.hpp"
#include "../../../src/components/backends/vulkan/Resources.hpp"
#include "components/VirtualFileSystem.hpp"
#include "components/ResolutionManager.hpp"
#include "../../../thirdparty/stb/stb_truetype.h"

Go to the source code of this file.

Classes

struct  vex::UIUnitValue
 Struct storing unit value logic natively. More...
struct  vex::UIUnitVec2
 2D representation of UIUnitValue to replace glm::vec2 size safely. More...
struct  vex::FontAtlas
 Font atlas structure. More...
struct  vex::UIStyle
 Basic UI styling component. More...
struct  vex::UIQuad
 Quad component needed for rendering. More...
struct  vex::Widget
 Struct defining widget component, it has a lot of redundancy and probably will need cleanup before expanding on a feature. More...
class  vex::VexUI
 Class defining VexUI, it initializes the UI system, loads, renders, converts ui data, essentially managing ui from file to reneering. More...

Namespaces

namespace  vex

Macros

#define VK_NO_PROTOTYPES   1
#define VMA_STATIC_VULKAN_FUNCTIONS   0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS   1

Enumerations

enum class  vex::UIUnitType {
  Auto , Px , Psp , Vw ,
  Vh , Percent
}
 Supported responsive UI unit types. More...
enum class  vex::TextAlign { Left , Center , Right }
 Allows for text aligment. More...
enum class  vex::WidgetType { Container , Label , Image , Button }
 Enum specifying possible types of widgets. More...

Detailed Description

This file defines vex ui class, very basic ui system.

Author
Eryk Roszkowski

Definition in file VexUI.hpp.

Macro Definition Documentation

◆ VK_NO_PROTOTYPES

#define VK_NO_PROTOTYPES   1

Definition at line 10 of file VexUI.hpp.

◆ VMA_DYNAMIC_VULKAN_FUNCTIONS

#define VMA_DYNAMIC_VULKAN_FUNCTIONS   1

Definition at line 13 of file VexUI.hpp.

◆ VMA_STATIC_VULKAN_FUNCTIONS

#define VMA_STATIC_VULKAN_FUNCTIONS   0

Definition at line 12 of file VexUI.hpp.