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