diff options
Diffstat (limited to 'src/frontend/mame/ui/slotopt.h')
-rw-r--r-- | src/frontend/mame/ui/slotopt.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/slotopt.h b/src/frontend/mame/ui/slotopt.h index ecd44c177fd..91c78de7d1e 100644 --- a/src/frontend/mame/ui/slotopt.h +++ b/src/frontend/mame/ui/slotopt.h @@ -25,6 +25,10 @@ public: menu_slot_devices(mame_ui_manager &mui, render_container &container); virtual ~menu_slot_devices() override; +protected: + virtual void recompute_metrics(uint32_t width, uint32_t height, float aspect) override; + virtual void custom_render(uint32_t flags, void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2) override; + private: enum class step_t { @@ -32,12 +36,11 @@ private: PREVIOUS }; - virtual void populate(float &customtop, float &custombottom) override; - virtual void custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2) override; - virtual void handle() override; + virtual void populate() override; + virtual bool handle(event const *ev) override; device_slot_interface::slot_option const *get_current_option(device_slot_interface &slot) const; - void set_slot_device(device_slot_interface &slot, const char *val); + void set_slot_device(device_slot_interface &slot, std::string_view val); void record_current_options(); bool try_refresh_current_options(); void rotate_slot_device(device_slot_interface &slot, step_t step); |