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

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

#include "gtkStatsChartMenu.h"

Public Member Functions

 GtkStatsChartMenu (GtkStatsMonitor *monitor, int thread_index)
 
void add_to_menu_bar (GtkWidget *menu_bar, int position)
 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...
 
GtkWidget * get_menu_widget ()
 Returns the gtk widget for this particular menu. More...
 

Detailed Description

A pulldown menu of charts available for a particular thread.

Definition at line 28 of file gtkStatsChartMenu.h.

Member Function Documentation

◆ add_to_menu_bar()

void GtkStatsChartMenu::add_to_menu_bar ( GtkWidget *  menu_bar,
int  position 
)

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

Definition at line 49 of file gtkStatsChartMenu.cxx.

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

Referenced by GtkStatsMonitor::new_thread().

◆ check_update()

void GtkStatsChartMenu::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 71 of file gtkStatsChartMenu.cxx.

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

◆ do_update()

void GtkStatsChartMenu::do_update ( )

◆ get_menu_widget()

GtkWidget * GtkStatsChartMenu::get_menu_widget ( )

Returns the gtk widget for this particular menu.

Definition at line 41 of file gtkStatsChartMenu.cxx.


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