Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
Engine::UIButtonComponent Struct Reference

#include <UIComponents.hpp>

Public Attributes

std::string label = "Button"
glm::vec4 normalColor {0.15f, 0.40f, 0.70f, 1.0f}
glm::vec4 hoverColor {0.20f, 0.50f, 0.80f, 1.0f}
glm::vec4 pressedColor {0.10f, 0.30f, 0.60f, 1.0f}
glm::vec4 textColor {1.0f, 1.0f, 1.0f, 1.0f}
bool isClicked = false
std::string clickEventName

Member Data Documentation

◆ clickEventName

std::string Engine::UIButtonComponent::clickEventName

◆ hoverColor

glm::vec4 Engine::UIButtonComponent::hoverColor {0.20f, 0.50f, 0.80f, 1.0f}

◆ isClicked

bool Engine::UIButtonComponent::isClicked = false

◆ label

std::string Engine::UIButtonComponent::label = "Button"

◆ normalColor

glm::vec4 Engine::UIButtonComponent::normalColor {0.15f, 0.40f, 0.70f, 1.0f}

◆ pressedColor

glm::vec4 Engine::UIButtonComponent::pressedColor {0.10f, 0.30f, 0.60f, 1.0f}

◆ textColor

glm::vec4 Engine::UIButtonComponent::textColor {1.0f, 1.0f, 1.0f, 1.0f}

The documentation for this struct was generated from the following file: