mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 16:49:36 +00:00
Insulate ui::Context a bit from its clients.
Add accessor methods.
This commit is contained in:
@@ -252,7 +252,7 @@ public:
|
||||
}
|
||||
|
||||
void on_show() override {
|
||||
context().message_map.register_handler(Message::ID::ChannelSpectrum,
|
||||
context().message_map().register_handler(Message::ID::ChannelSpectrum,
|
||||
[this](const Message* const p) {
|
||||
this->on_channel_spectrum(reinterpret_cast<const ChannelSpectrumMessage*>(p)->spectrum);
|
||||
}
|
||||
@@ -260,7 +260,7 @@ public:
|
||||
}
|
||||
|
||||
void on_hide() override {
|
||||
context().message_map.unregister_handler(Message::ID::ChannelSpectrum);
|
||||
context().message_map().unregister_handler(Message::ID::ChannelSpectrum);
|
||||
}
|
||||
|
||||
void set_parent_rect(const Rect new_parent_rect) override {
|
||||
|
||||
Reference in New Issue
Block a user