nova clase renderInfo
afegit control de offset a les notificacions
This commit is contained in:
@@ -59,6 +59,10 @@ class Notifier {
|
||||
auto isActive() -> bool; // Indica si hay notificaciones activas
|
||||
auto getCodes() -> std::vector<std::string>; // Obtiene códigos de notificaciones
|
||||
|
||||
// Offset vertical (para evitar solapamiento con Console y renderInfo)
|
||||
void addYOffset(int px); // Suma píxeles al offset base
|
||||
void removeYOffset(int px); // Resta píxeles al offset base
|
||||
|
||||
private:
|
||||
// Tipos anidados
|
||||
enum class Status {
|
||||
@@ -107,4 +111,5 @@ class Notifier {
|
||||
std::vector<Notification> notifications_; // Lista de notificaciones activas
|
||||
bool stack_{false}; // Indica si las notificaciones se apilan
|
||||
bool has_icons_{false}; // Indica si el notificador tiene textura para iconos
|
||||
int y_offset_{0}; // Offset vertical base (ajustado por Console y renderInfo)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user