#include <vgui_win32_utils.h>
Public Member Functions | |
HMENU | vgui_menu_to_win32 (vgui_menu const &vguimenu, vcl_vector< vgui_command_sptr > &callbacks, HACCEL *hAccel, bool isPopup=false) |
HMENU | vgui_menu_to_win32ex (vgui_menu const &vguimenu, vcl_vector< vgui_command_sptr > &callbacks, HACCEL *hAccel, bool isPopup=false) |
Static Public Member Functions | |
static vgui_win32_utils * | instance () |
Protected Member Functions | |
vgui_win32_utils () | |
~vgui_win32_utils () | |
Private Member Functions | |
int | addMenuItems (vgui_menu const &vguimenu, int offset, bool is_popup) |
int | addMenuItemsEx (vgui_menu const &vguimenu, int offset, bool is_popup) |
void | addAccelerator (vcl_string &, vgui_menu_item const &, int) |
vcl_string | vgui_key_to_string (vgui_key) |
UINT | vgui_key_to_virt_key (vgui_key) |
void | ShowErrorMessage (DWORD dwErrorNo) |
Private Attributes | |
unsigned char * | pMenu |
int | menu_capacity |
vcl_vector< vgui_command_sptr > | callbacks |
int | item_count |
ACCEL * | pAccel |
int | accel_capacity |
int | accel_count |
Definition at line 35 of file vgui_win32_utils.h.
vgui_win32_utils::vgui_win32_utils | ( | ) | [inline, protected] |
Definition at line 52 of file vgui_win32_utils.h.
vgui_win32_utils::~vgui_win32_utils | ( | ) | [inline, protected] |
Definition at line 53 of file vgui_win32_utils.h.
void vgui_win32_utils::addAccelerator | ( | vcl_string & | menuItemText, |
vgui_menu_item const & | vguimenu, | ||
int | menuItemId | ||
) | [inline, private] |
Definition at line 344 of file vgui_win32_utils.cxx.
int vgui_win32_utils::addMenuItems | ( | vgui_menu const & | vguimenu, |
int | offset, | ||
bool | is_popup | ||
) | [private] |
Definition at line 77 of file vgui_win32_utils.cxx.
int vgui_win32_utils::addMenuItemsEx | ( | vgui_menu const & | vguimenu, |
int | offset, | ||
bool | is_popup | ||
) | [private] |
Definition at line 230 of file vgui_win32_utils.cxx.
vgui_win32_utils * vgui_win32_utils::instance | ( | ) | [static] |
Definition at line 9 of file vgui_win32_utils.cxx.
void vgui_win32_utils::ShowErrorMessage | ( | DWORD | dwErrorNo | ) | [private] |
Definition at line 496 of file vgui_win32_utils.cxx.
vcl_string vgui_win32_utils::vgui_key_to_string | ( | vgui_key | key | ) | [inline, private] |
Definition at line 392 of file vgui_win32_utils.cxx.
UINT vgui_win32_utils::vgui_key_to_virt_key | ( | vgui_key | key | ) | [private] |
Definition at line 449 of file vgui_win32_utils.cxx.
HMENU vgui_win32_utils::vgui_menu_to_win32 | ( | vgui_menu const & | vguimenu, |
vcl_vector< vgui_command_sptr > & | callbacks, | ||
HACCEL * | hAccel, | ||
bool | isPopup = false |
||
) |
Definition at line 18 of file vgui_win32_utils.cxx.
HMENU vgui_win32_utils::vgui_menu_to_win32ex | ( | vgui_menu const & | vguimenu, |
vcl_vector< vgui_command_sptr > & | callbacks, | ||
HACCEL * | hAccel, | ||
bool | isPopup = false |
||
) |
Definition at line 162 of file vgui_win32_utils.cxx.
int vgui_win32_utils::accel_capacity [private] |
Definition at line 71 of file vgui_win32_utils.h.
int vgui_win32_utils::accel_count [private] |
Definition at line 72 of file vgui_win32_utils.h.
vcl_vector<vgui_command_sptr> vgui_win32_utils::callbacks [private] |
Definition at line 67 of file vgui_win32_utils.h.
int vgui_win32_utils::item_count [private] |
Definition at line 68 of file vgui_win32_utils.h.
int vgui_win32_utils::menu_capacity [private] |
Definition at line 66 of file vgui_win32_utils.h.
ACCEL* vgui_win32_utils::pAccel [private] |
Definition at line 70 of file vgui_win32_utils.h.
unsigned char* vgui_win32_utils::pMenu [private] |
Definition at line 65 of file vgui_win32_utils.h.