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