⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 symbols.h

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        contrib/samples/ogl/studio/symbols.h// Purpose:     Symbol classes (symbol database)// Author:      Julian Smart// Modified by:// Created:     12/07/98// RCS-ID:      $Id: symbols.h,v 1.7 2006/02/10 11:59:49 ABX Exp $// Copyright:   (c) Julian Smart// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _STUDIO_SYMBOLS_H_#define _STUDIO_SYMBOLS_H_#include "wx/docview.h"#include "wx/string.h"#include "wx/ogl/ogl.h" // base header of OGL, includes and adjusts wx/deprecated/setup.h/* * csSymbol * Represents information about a symbol. */class csSymbol: public wxObject{public:    csSymbol(const wxString& name, wxShape* shape);    ~csSymbol();    inline void SetName(const wxString& name) { m_name = name; }    inline wxString GetName() const { return m_name; }    inline void SetShape(wxShape* shape) { m_shape = shape; }    inline wxShape* GetShape() const { return m_shape; }    inline void SetToolId(int id) { m_toolId = id; }    inline int GetToolId() const { return m_toolId; }protected:    wxString    m_name;    wxShape*    m_shape;    int         m_toolId;};/* * A table of all possible shapes. * We can use this to construct a palette, etc. */class csSymbolDatabase: public wxObject{public:    csSymbolDatabase();    ~csSymbolDatabase();// Accessors    inline wxList& GetSymbols() const { return (wxList&) m_symbols; }// Operations    void AddSymbol(csSymbol* symbol);    void ClearSymbols();    csSymbol* FindSymbol(const wxString& name) const;    csSymbol* FindSymbol(int toolId) const;    wxBitmap* CreateToolBitmap(csSymbol* symbol, const wxSize& sz);protected:    wxList          m_symbols;    int             m_currentId;};#endif  // _STUDIO_SYMBOLS_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -