2003-03-21 21:56:04 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2003-04-06 21:44:11 -04:00
|
|
|
// Name: wx/cocoa/dcclient.h
|
2003-03-21 21:56:04 -05:00
|
|
|
// Purpose: wxClientDC, wxPaintDC and wxWindowDC classes
|
2003-04-06 21:44:11 -04:00
|
|
|
// Author: David Elliott
|
2003-03-21 21:56:04 -05:00
|
|
|
// Modified by:
|
2003-04-06 21:44:11 -04:00
|
|
|
// Created: 2003/04/01
|
2003-03-21 21:56:04 -05:00
|
|
|
// RCS-ID: $Id$
|
2003-04-06 21:44:11 -04:00
|
|
|
// Copyright: (c) 2003 David Elliott
|
|
|
|
// Licence: wxWindows license
|
2003-03-21 21:56:04 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2003-04-06 21:44:11 -04:00
|
|
|
#ifndef __WX_COCOA_DCCLIENT_H__
|
|
|
|
#define __WX_COCOA_DCCLIENT_H__
|
2003-03-21 21:56:04 -05:00
|
|
|
|
|
|
|
#include "wx/dc.h"
|
|
|
|
|
2003-04-06 21:44:11 -04:00
|
|
|
// DFE: A while ago I stumbled upon the fact that retrieving the parent
|
|
|
|
// NSView of the content view seems to return the entire window rectangle
|
|
|
|
// (including decorations). Of course, that is not at all part of the
|
|
|
|
// Cocoa or OpenStep APIs, but it might be a neat hack.
|
|
|
|
class wxWindowDC: public wxDC
|
2003-03-21 21:56:04 -05:00
|
|
|
{
|
2003-04-06 21:44:11 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxWindowDC)
|
|
|
|
public:
|
|
|
|
wxWindowDC(void);
|
|
|
|
// Create a DC corresponding to a window
|
|
|
|
wxWindowDC(wxWindow *win);
|
|
|
|
~wxWindowDC(void);
|
2003-03-21 21:56:04 -05:00
|
|
|
};
|
|
|
|
|
2003-04-06 21:44:11 -04:00
|
|
|
class wxClientDC: public wxWindowDC
|
2003-03-21 21:56:04 -05:00
|
|
|
{
|
2003-04-06 21:44:11 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxClientDC)
|
|
|
|
public:
|
|
|
|
wxClientDC(void);
|
|
|
|
// Create a DC corresponding to a window
|
|
|
|
wxClientDC(wxWindow *win);
|
|
|
|
~wxClientDC(void);
|
2003-03-21 21:56:04 -05:00
|
|
|
};
|
|
|
|
|
2003-04-06 21:44:11 -04:00
|
|
|
class wxPaintDC: public wxWindowDC
|
2003-03-21 21:56:04 -05:00
|
|
|
{
|
2003-04-06 21:44:11 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPaintDC)
|
|
|
|
public:
|
|
|
|
wxPaintDC(void);
|
|
|
|
// Create a DC corresponding to a window
|
|
|
|
wxPaintDC(wxWindow *win);
|
|
|
|
~wxPaintDC(void);
|
2003-03-21 21:56:04 -05:00
|
|
|
};
|
|
|
|
|
2003-04-06 21:44:11 -04:00
|
|
|
#endif // __WX_COCOA_DCCLIENT_H__
|