mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-02 03:26:40 -04:00
Insulate ui::Context a bit from its clients.
Add accessor methods.
This commit is contained in:
parent
85383e488b
commit
47a3ffb15a
9 changed files with 35 additions and 23 deletions
|
@ -26,7 +26,7 @@
|
|||
namespace ui {
|
||||
|
||||
void Audio::on_show() {
|
||||
context().message_map.register_handler(Message::ID::AudioStatistics,
|
||||
context().message_map().register_handler(Message::ID::AudioStatistics,
|
||||
[this](const Message* const p) {
|
||||
this->on_statistics_update(static_cast<const AudioStatisticsMessage*>(p)->statistics);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ void Audio::on_show() {
|
|||
}
|
||||
|
||||
void Audio::on_hide() {
|
||||
context().message_map.unregister_handler(Message::ID::AudioStatistics);
|
||||
context().message_map().unregister_handler(Message::ID::AudioStatistics);
|
||||
}
|
||||
|
||||
void Audio::paint(Painter& painter) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue