]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/dragimag.cpp
Corrected bug in in revision 47973
[wxWidgets.git] / src / palmos / dragimag.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dragimag.cpp
3 // Purpose: wxDragImage
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10.13.04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #if wxUSE_DRAGIMAGE
28
29 #ifndef WX_PRECOMP
30 #include <stdio.h>
31 #include "wx/window.h"
32 #include "wx/dcclient.h"
33 #include "wx/dcscreen.h"
34 #include "wx/dcmemory.h"
35 #include "wx/settings.h"
36 #include "wx/intl.h"
37 #include "wx/log.h"
38 #include "wx/frame.h"
39 #include "wx/image.h"
40 #endif
41
42 #include "wx/palmos/dragimag.h"
43 #include "wx/palmos/private.h"
44
45 // ----------------------------------------------------------------------------
46 // macros
47 // ----------------------------------------------------------------------------
48
49 IMPLEMENT_DYNAMIC_CLASS(wxDragImage, wxObject)
50
51 #define GetHimageList() ((HIMAGELIST) m_hImageList)
52
53 // ============================================================================
54 // implementation
55 // ============================================================================
56
57 // ----------------------------------------------------------------------------
58 // wxDragImage ctors/dtor
59 // ----------------------------------------------------------------------------
60
61 wxDragImage::wxDragImage()
62 {
63 }
64
65 wxDragImage::~wxDragImage()
66 {
67 }
68
69 void wxDragImage::Init()
70 {
71 }
72
73 // Attributes
74 ////////////////////////////////////////////////////////////////////////////
75
76
77 // Operations
78 ////////////////////////////////////////////////////////////////////////////
79
80 // Create a drag image from a bitmap and optional cursor
81 bool wxDragImage::Create(const wxBitmap& image, const wxCursor& cursor)
82 {
83 return false;
84 }
85
86 // Create a drag image from an icon and optional cursor
87 bool wxDragImage::Create(const wxIcon& image, const wxCursor& cursor)
88 {
89 return false;
90 }
91
92 // Create a drag image from a string and optional cursor
93 bool wxDragImage::Create(const wxString& str, const wxCursor& cursor)
94 {
95 return false;
96 }
97
98 #if wxUSE_TREECTRL
99 // Create a drag image for the given tree control item
100 bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
101 {
102 return false;
103 }
104 #endif
105
106 #if wxUSE_LISTCTRL
107 // Create a drag image for the given list control item
108 bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
109 {
110 return false;
111 }
112 #endif
113
114 // Begin drag
115 bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect)
116 {
117 return false;
118 }
119
120 // Begin drag. hotspot is the location of the drag position relative to the upper-left
121 // corner of the image. This is full screen only. fullScreenRect gives the
122 // position of the window on the screen, to restrict the drag to.
123 bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, wxWindow* fullScreenRect)
124 {
125 return false;
126 }
127
128 // End drag
129 bool wxDragImage::EndDrag()
130 {
131 return false;
132 }
133
134 // Move the image: call from OnMouseMove. Pt is in window client coordinates if window
135 // is non-NULL, or in screen coordinates if NULL.
136 bool wxDragImage::Move(const wxPoint& pt)
137 {
138 return false;
139 }
140
141 bool wxDragImage::Show()
142 {
143 return false;
144 }
145
146 bool wxDragImage::Hide()
147 {
148 return false;
149 }
150
151
152 #endif // wxUSE_DRAGIMAGE