OpenMoHAA 0.82.1
Loading...
Searching...
No Matches
uipulldownmenucontainer.h
1/*
2===========================================================================
3Copyright (C) 2024 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23#pragma once
24
25class UIPulldownMenuContainer : public UIWidget
26{
27protected:
29 Container<char *> m_dataContainer;
30 UIPulldownMenu *m_menu;
31
32public:
33 CLASS_PROTOTYPE(UIPulldownMenuContainer);
34
35 UIPulldownMenuContainer();
36 ~UIPulldownMenuContainer();
37
38protected:
39 void FrameInitialized(void) override;
40 void setBackgroundAlpha(float f) override;
41 void setBackgroundColor(const UColor& color, bool setbordercolor) override;
42 void setForegroundColor(const UColor& color) override;
43 void SetPopupHighlightFGColor(Event *ev);
44 void SetPopupHighlightBGColor(Event *ev);
45 void SetPopupFGColor(Event *ev);
46 void SetPopupBGColor(Event *ev);
47 void SetHighlightFGColor(Event *ev);
48 void SetHighlightBGColor(Event *ev);
49 void SetMenuShader(Event *ev);
50 void SetSelectedMenuShader(Event *ev);
51 void Realign(void) override;
52 void PulldownVirtualRes(Event *ev);
53
54public:
55 void AddPopup(Event *ev);
56};
Definition container.h:85
Definition listener.h:246
Definition ucolor.h:26
Definition uipulldownmenu.h:56