clang-tidy modernize
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h> // Para SDL_FRect, Uint32
|
||||
#include <stddef.h> // Para size_t
|
||||
|
||||
#include <memory> // Para shared_ptr, unique_ptr
|
||||
#include <vector> // Para vector
|
||||
#include <cstddef> // Para size_t
|
||||
#include <memory> // Para shared_ptr, unique_ptr
|
||||
#include <vector> // Para vector
|
||||
|
||||
#include "ui/service_menu.h" // Para ServiceMenu
|
||||
#include "utils.h" // Para Color
|
||||
@@ -26,9 +26,9 @@ class MenuRenderer {
|
||||
void setLayout(const ServiceMenu *menu_state);
|
||||
|
||||
// Getters
|
||||
const SDL_FRect &getRect() const { return rect_; }
|
||||
[[nodiscard]] auto getRect() const -> const SDL_FRect & { return rect_; }
|
||||
|
||||
private:
|
||||
private:
|
||||
// --- Referencias a los renderizadores de texto ---
|
||||
std::shared_ptr<Text> element_text_;
|
||||
std::shared_ptr<Text> title_text_;
|
||||
@@ -60,13 +60,13 @@ class MenuRenderer {
|
||||
|
||||
// --- Métodos privados de la vista ---
|
||||
void setAnchors(const ServiceMenu *menu_state);
|
||||
SDL_FRect calculateNewRect(const ServiceMenu *menu_state);
|
||||
auto calculateNewRect(const ServiceMenu *menu_state) -> SDL_FRect;
|
||||
void resize(const ServiceMenu *menu_state);
|
||||
void setSize(const ServiceMenu *menu_state);
|
||||
void updateResizeAnimation();
|
||||
void precalculateMenuWidths(const std::vector<std::unique_ptr<MenuOption>> &all_options, const ServiceMenu *menu_state);
|
||||
int getMenuWidthForGroup(ServiceMenu::SettingsGroup group) const;
|
||||
Color getAnimatedSelectedColor();
|
||||
[[nodiscard]] auto getMenuWidthForGroup(ServiceMenu::SettingsGroup group) const -> int;
|
||||
auto getAnimatedSelectedColor() -> Color;
|
||||
void updateColorCounter();
|
||||
SDL_FRect setRect(SDL_FRect rect);
|
||||
auto setRect(SDL_FRect rect) -> SDL_FRect;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user