OS/2 Image processing updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -216,6 +216,8 @@ public:
 | 
				
			|||||||
    inline wxDC* GetSelectedInto() const
 | 
					    inline wxDC* GetSelectedInto() const
 | 
				
			||||||
      { return (GetBitmapData() ? GetBitmapData()->m_pSelectedInto : (wxDC*) NULL); }
 | 
					      { return (GetBitmapData() ? GetBitmapData()->m_pSelectedInto : (wxDC*) NULL); }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    inline bool IsMono(void) const { return m_bIsMono; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // An OS/2 version that probably doesn't do anything like the msw version
 | 
					    // An OS/2 version that probably doesn't do anything like the msw version
 | 
				
			||||||
    wxBitmap GetBitmapForDC(wxDC& rDc) const;
 | 
					    wxBitmap GetBitmapForDC(wxDC& rDc) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -237,6 +239,8 @@ protected:
 | 
				
			|||||||
private:
 | 
					private:
 | 
				
			||||||
    bool CopyFromIconOrCursor(const wxGDIImage& rIcon);
 | 
					    bool CopyFromIconOrCursor(const wxGDIImage& rIcon);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    bool                            m_bIsMono;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    DECLARE_DYNAMIC_CLASS(wxBitmap)
 | 
					    DECLARE_DYNAMIC_CLASS(wxBitmap)
 | 
				
			||||||
}; // end of CLASS wxBitmap
 | 
					}; // end of CLASS wxBitmap
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,8 +22,8 @@
 | 
				
			|||||||
    #define wxICON_IS_BITMAP 1
 | 
					    #define wxICON_IS_BITMAP 1
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "wx/bitmap.h"
 | 
				
			||||||
#if wxICON_IS_BITMAP
 | 
					#if wxICON_IS_BITMAP
 | 
				
			||||||
    #include "wx/bitmap.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #define wxIconRefDataBase   wxBitmapRefData
 | 
					    #define wxIconRefDataBase   wxBitmapRefData
 | 
				
			||||||
    #define wxIconBase          wxBitmap
 | 
					    #define wxIconBase          wxBitmap
 | 
				
			||||||
@@ -85,6 +85,8 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    inline void SetHICON(WXHICON hIcon) { SetHandle((WXHANDLE)hIcon); }
 | 
					    inline void SetHICON(WXHICON hIcon) { SetHandle((WXHANDLE)hIcon); }
 | 
				
			||||||
    inline WXHICON GetHICON() const { return (WXHICON)GetHandle(); }
 | 
					    inline WXHICON GetHICON() const { return (WXHICON)GetHandle(); }
 | 
				
			||||||
 | 
					    inline bool    IsXpm(void) const { return m_bIsXpm; };
 | 
				
			||||||
 | 
					    inline const wxBitmap& GetXpmSrc(void) const { return m_vXpmSrc; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void CopyFromBitmap(const wxBitmap& rBmp);
 | 
					    void CopyFromBitmap(const wxBitmap& rBmp);
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
@@ -95,6 +97,9 @@ protected:
 | 
				
			|||||||
    void    CreateIconFromXpm(const char **ppData);
 | 
					    void    CreateIconFromXpm(const char **ppData);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
 | 
					    bool                            m_bIsXpm;
 | 
				
			||||||
 | 
					    wxBitmap                        m_vXpmSrc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    DECLARE_DYNAMIC_CLASS(wxIcon)
 | 
					    DECLARE_DYNAMIC_CLASS(wxIcon)
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user