mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
menue.cpp/h: modify move behavior of menu window for custom position
MENU_POS_PRESET is replaced with MENU_POS_CUSTOM. This allows
with methode setPos() to any position on screen without preset offset.
Old behavior is untouched.
Origin commit data
------------------
Commit: 8174f094e6
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-03-27 (Sun, 27 Mar 2022)
This commit is contained in:
@@ -652,6 +652,7 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
|
||||
void initSelectable();
|
||||
int getSelected()const { return selected; };
|
||||
void move(int xoff, int yoff);
|
||||
void setPos(int X, int Y);
|
||||
int getHeight() {calcSize(); return full_height;}
|
||||
int getFullWidth() {calcSize(); return full_width;}
|
||||
int getWidth() {calcSize(); return full_width - DETAILSLINE_WIDTH;}
|
||||
@@ -670,7 +671,7 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
|
||||
MENU_POS_BOTTOM_LEFT ,
|
||||
MENU_POS_BOTTOM_RIGHT ,
|
||||
|
||||
MENU_POS_PRESET
|
||||
MENU_POS_CUSTOM
|
||||
};
|
||||
void addKey(neutrino_msg_t key, CMenuTarget *menue, const std::string &action);
|
||||
void setFooter(const struct button_label *_fbutton_label, const int _fbutton_count, bool repaint = false);
|
||||
|
Reference in New Issue
Block a user