Panda3D
Public Member Functions | List of all members
WinStatsChartMenu Class Reference

A pulldown menu of charts available for a particular thread. More...

#include "winStatsChartMenu.h"

Public Member Functions

 WinStatsChartMenu (WinStatsMonitor *monitor, int thread_index)
 
void add_to_menu_bar (HMENU menu_bar, int before_menu_id)
 Adds the menu to the end of the indicated menu bar. More...
 
void check_update ()
 Checks to see if the menu needs to be updated (e.g. More...
 
void do_update ()
 Unconditionally updates the menu with the latest data from the client. More...
 
HMENU get_menu_handle ()
 Returns the Windows menu handle for this particular menu. More...
 

Detailed Description

A pulldown menu of charts available for a particular thread.

Definition at line 28 of file winStatsChartMenu.h.

Member Function Documentation

◆ add_to_menu_bar()

void WinStatsChartMenu::add_to_menu_bar ( HMENU  menu_bar,
int  before_menu_id 
)

Adds the menu to the end of the indicated menu bar.

Definition at line 48 of file winStatsChartMenu.cxx.

References PStatMonitor::get_client_data(), and PStatClientData::get_thread_name().

Referenced by WinStatsMonitor::new_thread().

◆ check_update()

void WinStatsChartMenu::check_update ( )

Checks to see if the menu needs to be updated (e.g.

because of new data from the client), and updates it if necessary.

Definition at line 74 of file winStatsChartMenu.cxx.

References do_update(), PStatView::get_level_index(), and PStatMonitor::get_view().

◆ do_update()

void WinStatsChartMenu::do_update ( )

Unconditionally updates the menu with the latest data from the client.

Definition at line 85 of file winStatsChartMenu.cxx.

References PStatView::get_level_index(), and PStatMonitor::get_view().

Referenced by check_update().

◆ get_menu_handle()

HMENU WinStatsChartMenu::get_menu_handle ( )

Returns the Windows menu handle for this particular menu.

Definition at line 40 of file winStatsChartMenu.cxx.


The documentation for this class was generated from the following files: