nova clase renderInfo
afegit control de offset a les notificacions
This commit is contained in:
@@ -173,7 +173,7 @@ void Notifier::show(std::vector<std::string> texts, const Style& style, int icon
|
||||
;
|
||||
|
||||
// Posición vertical
|
||||
const int DESP_V = PADDING_OUT;
|
||||
const int DESP_V = y_offset_;
|
||||
|
||||
// Offset
|
||||
const auto TRAVEL_DIST = HEIGHT + PADDING_OUT;
|
||||
@@ -278,6 +278,10 @@ void Notifier::clearNotifications() {
|
||||
clearFinishedNotifications();
|
||||
}
|
||||
|
||||
// Ajusta el offset vertical base
|
||||
void Notifier::addYOffset(int px) { y_offset_ += px; }
|
||||
void Notifier::removeYOffset(int px) { y_offset_ -= px; }
|
||||
|
||||
// Obtiene los códigos de las notificaciones
|
||||
auto Notifier::getCodes() -> std::vector<std::string> {
|
||||
std::vector<std::string> codes;
|
||||
|
||||
Reference in New Issue
Block a user