]> git.saurik.com Git - wxWidgets.git/blob - src/mac/imaglist.cpp
added calls for invalidating the dc setup on mac explicitely (needed in case of neste...
[wxWidgets.git] / src / mac / imaglist.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: imaglist.cpp
3 // Purpose: wxImageList. You may wish to use the generic version.
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "imaglist.h"
14 #endif
15
16 #include "wx/stubs/imaglist.h"
17
18 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject)
20 #endif
21
22 wxImageList::wxImageList()
23 {
24 // TODO: init image list handle, if any
25 }
26
27 wxImageList::~wxImageList()
28 {
29 // TODO: destroy image list handle, if any
30 }
31
32 // Attributes
33 ////////////////////////////////////////////////////////////////////////////
34
35 // Returns the number of images in the image list.
36 int wxImageList::GetImageCount() const
37 {
38 // TODO
39 return 0;
40 }
41
42 #if 0
43 bool wxImageList::GetSize(int index, int &width, int &hieght) const
44 {
45 // TODO
46 return false;
47 }
48 #endif
49
50 // Operations
51 ////////////////////////////////////////////////////////////////////////////
52
53 // Creates an image list
54 bool wxImageList::Create(int width, int height, bool mask, int initial)
55 {
56 // TODO
57 return FALSE;
58 }
59
60 // Adds a bitmap, and optionally a mask bitmap.
61 // Note that wxImageList creates new bitmaps, so you may delete
62 // 'bitmap' and 'mask'.
63 int wxImageList::Add(const wxBitmap& bitmap, const wxBitmap& mask)
64 {
65 // TODO
66 return 0;
67 }
68
69 // Adds a bitmap, using the specified colour to create the mask bitmap
70 // Note that wxImageList creates new bitmaps, so you may delete
71 // 'bitmap'.
72 int wxImageList::Add(const wxBitmap& bitmap, const wxColour& maskColour)
73 {
74 // TODO
75 return 0;
76 }
77
78 // Adds a bitmap and mask from an icon.
79 int wxImageList::Add(const wxIcon& icon)
80 {
81 // TODO
82 return 0;
83 }
84
85 // Replaces a bitmap, optionally passing a mask bitmap.
86 // Note that wxImageList creates new bitmaps, so you may delete
87 // 'bitmap' and 'mask'.
88 bool wxImageList::Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask)
89 {
90 // TODO
91 return 0;
92 }
93
94 // Replaces a bitmap and mask from an icon.
95 bool wxImageList::Replace(int index, const wxIcon& icon)
96 {
97 // TODO
98 return 0;
99 }
100
101 // Removes the image at the given index.
102 bool wxImageList::Remove(int index)
103 {
104 // TODO
105 return FALSE;
106 }
107
108 // Remove all images
109 bool wxImageList::RemoveAll()
110 {
111 // TODO
112 return FALSE;
113 }
114
115 // Draws the given image on a dc at the specified position.
116 // If 'solidBackground' is TRUE, Draw sets the image list background
117 // colour to the background colour of the wxDC, to speed up
118 // drawing by eliminating masked drawing where possible.
119 bool wxImageList::Draw(int index, wxDC& dc, int x, int y,
120 int flags, bool solidBackground)
121 {
122 // TODO
123 return FALSE;
124 }
125