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

📄 button.h

📁 做为linux下图形用户界面支持系统之一的MicroWindows采用C++设计
💻 H
字号:
//
// Micro Windows Implementation
// button.h: Standard push-button
//
// 按鈕 (button) 是 GUI 裡常見的物件, 現在只要簡單 new 一下
// 就出來一個, 何樂不為呢?
//
// $Revision: 1.2 $
// $Source: P:/MWINDOWS/INCLUDE/rcs/button.h $
// $Date: 1993/10/03 15:19:34 $
//

#ifndef __button_h
#define __button_h

#ifndef __control_h
#   include "control.h"
#endif

#ifndef __shape_h
#   include "shape.h"
#endif

class Button : public Control
{
public:
    Button (char *text, Rect *prect, View *pparent, Model *client,
            BOOL attach = TRUE, BOOL killModel = FALSE);
    ~Button ();

protected:
    virtual void selfDraw (Port *port, Rect *area);

    virtual void leftButtonDown (Point *pnt);
    virtual void leftButtonUp (Point *pnt);

    virtual void drawButton (Port *port);
    virtual void drawText (Port *port);
    BOOL hitted;

    Text *buttonText;
};

#endif

⌨️ 快捷键说明

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