iwyu
clang-tidy clang-format
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL.h> // Para SDL_FPoint, SDL_FRect
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <algorithm> // Para min
|
||||
#include <memory> // Para allocator, shared_ptr
|
||||
#include <string> // Para string
|
||||
#include <vector> // Para vector
|
||||
|
||||
#include "color.h"
|
||||
#include "text.h"
|
||||
#include "color.h" // Para Color
|
||||
#include "text.h" // Para Text
|
||||
|
||||
class WindowMessage {
|
||||
public:
|
||||
@@ -24,21 +25,21 @@ class WindowMessage {
|
||||
Color text_color;
|
||||
|
||||
// Espaciado y dimensiones
|
||||
float padding{15.0f};
|
||||
float line_spacing{5.0f};
|
||||
float title_separator_spacing{10.0f}; // Espacio extra para separador del título
|
||||
float padding{15.0F};
|
||||
float line_spacing{5.0F};
|
||||
float title_separator_spacing{10.0F}; // Espacio extra para separador del título
|
||||
|
||||
// Límites de tamaño
|
||||
float min_width{200.0f};
|
||||
float min_height{100.0f};
|
||||
float max_width_ratio{0.8f}; // % máximo de ancho de pantalla
|
||||
float max_height_ratio{0.8f}; // % máximo de alto de pantalla
|
||||
float min_width{200.0F};
|
||||
float min_height{100.0F};
|
||||
float max_width_ratio{0.8F}; // % máximo de ancho de pantalla
|
||||
float max_height_ratio{0.8F}; // % máximo de alto de pantalla
|
||||
|
||||
// Margen de seguridad para texto
|
||||
float text_safety_margin{20.0f}; // Margen extra para evitar texto cortado
|
||||
float text_safety_margin{20.0F}; // Margen extra para evitar texto cortado
|
||||
|
||||
// Animaciones
|
||||
float animation_duration{0.3f}; // Duración en segundos para todas las animaciones
|
||||
float animation_duration{0.3F}; // Duración en segundos para todas las animaciones
|
||||
|
||||
// Constructor con valores por defecto
|
||||
Config()
|
||||
@@ -123,7 +124,7 @@ class WindowMessage {
|
||||
// Posición y tamaño
|
||||
SDL_FRect rect_{0, 0, 300, 200};
|
||||
PositionMode position_mode_ = PositionMode::CENTERED;
|
||||
SDL_FPoint anchor_{0.0f, 0.0f};
|
||||
SDL_FPoint anchor_{0.0F, 0.0F};
|
||||
|
||||
// Animación de redimensionado
|
||||
struct ResizeAnimation {
|
||||
|
||||
Reference in New Issue
Block a user