The Battle for Wesnoth  1.19.10+dev
fps_report.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2025 - 2025
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 namespace gui2
18 {
19 class tracked_drawable;
20 
21 namespace dialogs::fps
22 {
23 /**
24  * Displays the fps report popup for the given tracked_drawable.
25  *
26  * Only one popup may be active at a time, and subsequent calls
27  * to this function are no-op unless @ref hide is called first.
28  */
29 void show(const gui2::tracked_drawable& target);
30 
31 /** Hides the fps report popup. */
32 void hide();
33 
34 } // namespace dialogs::fps
35 
36 } // namespace gui2
Middleware class that tracks framerate and times.
void show(const gui2::tracked_drawable &target)
Displays the fps report popup for the given tracked_drawable.
Definition: fps_report.cpp:131
void hide()
Hides the fps report popup.
Definition: fps_report.cpp:147
Generic file dialog.