Panda3D
Loading...
Searching...
No Matches
winStatsChartMenu.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file winStatsChartMenu.h
10 * @author drose
11 * @date 2004-01-08
12 */
13
14#ifndef WINSTATSCHARTMENU_H
15#define WINSTATSCHARTMENU_H
16
17#include "pandatoolbase.h"
18
19#ifndef WIN32_LEAN_AND_MEAN
20#define WIN32_LEAN_AND_MEAN 1
21#endif
22#include <windows.h>
23
24class WinStatsMonitor;
25class PStatView;
26class PStatViewLevel;
27
28/**
29 * A pulldown menu of charts available for a particular thread.
30 */
32public:
33 WinStatsChartMenu(WinStatsMonitor *monitor, int thread_index);
35
36 HMENU get_menu_handle();
37 void add_to_menu_bar(HMENU menu_bar, int before_menu_id);
38
39 void check_update();
40 void do_update();
41
42private:
43 void add_view(HMENU parent_menu, const PStatViewLevel *view_level,
44 bool show_level);
45
46 WinStatsMonitor *_monitor;
47 int _thread_index;
48
49 int _last_level_index;
50 HMENU _menu;
51};
52
53#endif
This is a single level value, or band of color, within a View.
A View boils down the frame data to a linear list of times spent in a number of different Collectors,...
Definition pStatView.h:31
A pulldown menu of charts available for a particular thread.
void add_to_menu_bar(HMENU menu_bar, int before_menu_id)
Adds the menu to the end of the indicated menu bar.
void check_update()
Checks to see if the menu needs to be updated (e.g.
HMENU get_menu_handle()
Returns the Windows menu handle for this particular menu.
void do_update()
Unconditionally updates the menu with the latest data from the client.
This class represents a connection to a PStatsClient and manages the data exchange with the client.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.