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

📄 region.h

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        wx/os2/region.h// Purpose:     wxRegion class// Author:      David Webster// Modified by:// Created:     10/15/99// RCS-ID:      $Id: region.h,v 1.19 2006/11/10 20:35:35 ABX Exp $// Copyright:   (c) David Webster// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _WX_OS2_REGION_H_#define _WX_OS2_REGION_H_#include "wx/list.h"#include "wx/os2/private.h"class WXDLLEXPORT wxRegion : public wxRegionWithCombine{public:    wxRegion( wxCoord x             ,wxCoord y             ,wxCoord vWidth             ,wxCoord vHeight            );    wxRegion( const wxPoint& rTopLeft             ,const wxPoint& rBottomRight            );    wxRegion(const wxRect& rRect);    wxRegion(WXHRGN hRegion, WXHDC hPS); // Hangs on to this region    wxRegion(size_t n, const wxPoint *points, int fillStyle = wxODDEVEN_RULE );    wxRegion( const wxBitmap& bmp)    {        Union(bmp);    }    wxRegion( const wxBitmap& bmp,              const wxColour& transColour, int tolerance = 0)    {        Union(bmp, transColour, tolerance);    }    wxRegion();    virtual ~wxRegion();    //    // Modify region    //    //    // Clear current region    //    virtual void Clear();    //    // Is region empty?    //    virtual bool IsEmpty() const;    //    // Get internal region handle    //    WXHRGN GetHRGN() const;    void   SetPS(HPS hPS);protected:    virtual wxObjectRefData* CreateData(void) const;    virtual wxObjectRefData* CloneData(const wxObjectRefData* pData) const;    virtual bool DoIsEqual(const wxRegion& region) const;    virtual bool DoGetBox(wxCoord& x, wxCoord& y, wxCoord& w, wxCoord& h) const;    virtual wxRegionContain DoContainsPoint(wxCoord x, wxCoord y) const;    virtual wxRegionContain DoContainsRect(const wxRect& rect) const;    virtual bool DoOffset(wxCoord x, wxCoord y);    virtual bool DoCombine(const wxRegion& region, wxRegionOp op);    friend class WXDLLEXPORT wxRegionIterator;    DECLARE_DYNAMIC_CLASS(wxRegion);}; // end of CLASS wxRegionclass WXDLLEXPORT wxRegionIterator : public wxObject{DECLARE_DYNAMIC_CLASS(wxRegionIterator);public:    wxRegionIterator();    wxRegionIterator(const wxRegion& rRegion);    virtual ~wxRegionIterator();    void Reset(void) { m_lCurrent = 0; }    void Reset(const wxRegion& rRegion);    operator bool (void) const { return m_lCurrent < m_lNumRects; }    bool HaveRects(void) const { return m_lCurrent < m_lNumRects; }    void operator ++ (void);    void operator ++ (int);    wxCoord GetX(void) const;    wxCoord GetY(void) const;    wxCoord GetW(void) const;    wxCoord GetWidth(void) const { return GetW(); }    wxCoord GetH(void) const;    wxCoord GetHeight(void) const { return GetH(); }    wxRect  GetRect(void) const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); }private:    long                            m_lCurrent;    long                            m_lNumRects;    wxRegion                        m_vRegion;    wxRect*                         m_pRects;}; // end of wxRegionIterator#endif // _WX_OS2_REGION_H_

⌨️ 快捷键说明

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