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

📄 palette.h

📁 wxGTK 是 wxWidgets 的 linux GTK+ (>2.2.3)版本。wxWidgets 是一个跨平台的 GUI 框架
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        contrib/samples/ogl/ogledit/palette.h// Purpose:     OGL sample palette// Author:      Julian Smart// Modified by:// Created:     12/07/98// RCS-ID:      $Id: palette.h,v 1.8 2006/02/10 11:59:45 ABX Exp $// Copyright:   (c) Julian Smart// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _OGLSAMPLE_PALETTE_H_#define _OGLSAMPLE_PALETTE_H_#include "wx/wx.h"#include "wx/string.h"#include "wx/deprecated/setup.h"#include "wx/deprecated/tbarsmpl.h"/* * Object editor tool palette * */// TODO for wxWin: wxToolBar95 cannot be moved to a non-0,0 position!// Needs to have a parent window...// So use a simple toolbar at present.// ABX: Simple toolbar is not available in default compilation//      so I use wxToolBar anyway// #if 0 // def __WXGTK__// #define TOOLPALETTECLASS    wxToolBar// #else// #define TOOLPALETTECLASS    wxToolBarSimple// #endif#define TOOLPALETTECLASS    wxToolBarclass EditorToolPalette: public TOOLPALETTECLASS{ public:  int currentlySelected;  EditorToolPalette(wxWindow *parent, const wxPoint& pos = wxDefaultPosition,    const wxSize& size = wxDefaultSize,    long style = wxTB_VERTICAL);  bool OnLeftClick(int toolIndex, bool toggled);  void OnMouseEnter(int toolIndex);  void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);};#define PALETTE_TOOL1           1#define PALETTE_TOOL2           2#define PALETTE_TOOL3           3#define PALETTE_TOOL4           4#define PALETTE_TOOL5           5#define PALETTE_TOOL6           6#define PALETTE_TOOL7           7#define PALETTE_TOOL8           8#define PALETTE_TOOL9           9#define PALETTE_ARROW           10#endif    // _OGLSAMPLE_PALETTE_H_

⌨️ 快捷键说明

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