1 /* 2 * Copyright (C) 2002-2020 by the Widelands Development Team 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 * 18 */ 19 20 #ifndef WL_UI_FSMENU_MAIN_MENU_H 21 #define WL_UI_FSMENU_MAIN_MENU_H 22 23 #include "ui_basic/box.h" 24 #include "ui_fsmenu/base.h" 25 26 /** 27 * This sets the values for alignment and size and other common properties 28 * for main menus that contain only buttons. 29 */ 30 class FullscreenMenuMainMenu : public FullscreenMenuBase { 31 public: 32 /// Assigns values for alignment and size, depending on screen size 33 FullscreenMenuMainMenu(); 34 35 protected: 36 void layout() override; 37 38 uint32_t box_x_, box_y_; 39 uint32_t butw_, buth_; 40 uint32_t title_y_; 41 uint32_t padding_; 42 43 UI::Box vbox_; 44 }; 45 46 #endif // end of include guard: WL_UI_FSMENU_MAIN_MENU_H 47