]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/dragimag.cpp
782c168db5d90a832ed4ab375137f4facacd09e5
[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/setup.h"
32 #include "wx/window.h"
33 #include "wx/dcclient.h"
34 #include "wx/dcscreen.h"
35 #include "wx/dcmemory.h"
36 #include "wx/settings.h"
37 #endif
38
39 #include "wx/log.h"
40 #include "wx/intl.h"
41 #include "wx/frame.h"
42 #include "wx/image.h"
43
44 #include "wx/palmos/dragimag.h"
45 #include "wx/palmos/private.h"
46
47 // ----------------------------------------------------------------------------
48 // macros
49 // ----------------------------------------------------------------------------
50
51 IMPLEMENT_DYNAMIC_CLASS(wxDragImage, wxObject)
52
53 #define GetHimageList() ((HIMAGELIST) m_hImageList)
54
55 // ============================================================================
56 // implementation
57 // ============================================================================
58
59 // ----------------------------------------------------------------------------
60 // wxDragImage ctors/dtor
61 // ----------------------------------------------------------------------------
62
63 wxDragImage::wxDragImage()
64 {
65 }
66
67 wxDragImage::~wxDragImage()
68 {
69 }
70
71 void wxDragImage::Init()
72 {
73 }
74
75 // Attributes
76 ////////////////////////////////////////////////////////////////////////////
77
78
79 // Operations
80 ////////////////////////////////////////////////////////////////////////////
81
82 // Create a drag image from a bitmap and optional cursor
83 bool wxDragImage::Create(const wxBitmap& image, const wxCursor& cursor)
84 {
85 return false;
86 }
87
88 // Create a drag image from an icon and optional cursor
89 bool wxDragImage::Create(const wxIcon& image, const wxCursor& cursor)
90 {
91 return false;
92 }
93
94 // Create a drag image from a string and optional cursor
95 bool wxDragImage::Create(const wxString& str, const wxCursor& cursor)
96 {
97 return false;
98 }
99
100 #if wxUSE_TREECTRL
101 // Create a drag image for the given tree control item
102 bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
103 {
104 return false;
105 }
106 #endif
107
108 #if wxUSE_LISTCTRL
109 // Create a drag image for the given list control item
110 bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
111 {
112 return false;
113 }
114 #endif
115
116 // Begin drag
117 bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect)
118 {
119 return false;
120 }
121
122 // Begin drag. hotspot is the location of the drag position relative to the upper-left
123 // corner of the image. This is full screen only. fullScreenRect gives the
124 // position of the window on the screen, to restrict the drag to.
125 bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, wxWindow* fullScreenRect)
126 {
127 return false;
128 }
129
130 // End drag
131 bool wxDragImage::EndDrag()
132 {
133 return false;
134 }
135
136 // Move the image: call from OnMouseMove. Pt is in window client coordinates if window
137 // is non-NULL, or in screen coordinates if NULL.
138 bool wxDragImage::Move(const wxPoint& pt)
139 {
140 return false;
141 }
142
143 bool wxDragImage::Show()
144 {
145 return false;
146 }
147
148 bool wxDragImage::Hide()
149 {
150 return false;
151 }
152
153
154 #endif // wxUSE_DRAGIMAGE