1 Star 0 Fork 0

yoyojacky/CSMoE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MenuBar.h 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef MENUBAR_H
#define MENUBAR_H
#ifdef _WIN32
#pragma once
#endif
#include "Panel.h"
#include <tier1/utlvector.h>
namespace vgui2
{
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class MenuBar : public Panel
{
DECLARE_CLASS_SIMPLE( MenuBar, Panel );
public:
MenuBar(Panel *parent, const char *panelName);
~MenuBar();
virtual void AddButton(MenuButton *button); // add button to end of menu list
virtual void AddMenu( const char *pButtonName, Menu *pMenu );
virtual void GetContentSize( int& w, int&h );
protected:
virtual void OnKeyCodeTyped(KeyCode code);
virtual void OnKeyTyped(wchar_t unichar);
virtual void ApplySchemeSettings(IScheme *pScheme);
virtual void PerformLayout();
virtual void Paint();
MESSAGE_FUNC( OnMenuClose, "MenuClose" );
MESSAGE_FUNC_INT( OnCursorEnteredMenuButton, "CursorEnteredMenuButton", VPanel);
private:
CUtlVector<MenuButton *> m_pMenuButtons;
int m_nRightEdge;
};
} // namespace vgui
#endif // MENUBAR_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yoyojacky/CSMoE.git
git@gitee.com:yoyojacky/CSMoE.git
yoyojacky
CSMoE
CSMoE
master

搜索帮助