RigsofRods
Soft-body Physics Simulation
GUI_VehicleDescription.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2020 Petr Ohlidal
6 
7  For more information, see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
25 
26 #pragma once
27 
28 #include <imgui.h>
29 
30 namespace RoR {
31 namespace GUI {
32 
34 {
35 public:
36  const float HELP_TEXTURE_WIDTH = 512.f;
37  const float HELP_TEXTURE_HEIGHT = 128.f;
38 
39  void SetVisible(bool vis) { m_is_visible = vis; }
40  bool IsVisible() const { return m_is_visible; }
41 
42  void Draw();
43 
44 private:
45  bool m_is_visible = false;
46 };
47 
48 } // namespace GUI
49 } // namespace RoR
RoR::GUI::VehicleDescription
Definition: GUI_VehicleDescription.h:33
RoR::GUI::VehicleDescription::IsVisible
bool IsVisible() const
Definition: GUI_VehicleDescription.h:40
RoR::GUI::VehicleDescription::m_is_visible
bool m_is_visible
Definition: GUI_VehicleDescription.h:45
RoR::GUI::VehicleDescription::Draw
void Draw()
Definition: GUI_VehicleDescription.cpp:41
RoR::GUI::VehicleDescription::SetVisible
void SetVisible(bool vis)
Definition: GUI_VehicleDescription.h:39
RoR::GUI::VehicleDescription::HELP_TEXTURE_WIDTH
const float HELP_TEXTURE_WIDTH
Definition: GUI_VehicleDescription.h:36
RoR::GUI::VehicleDescription::HELP_TEXTURE_HEIGHT
const float HELP_TEXTURE_HEIGHT
Definition: GUI_VehicleDescription.h:37
RoR
Definition: AppContext.h:36