]> git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/imaglist.cpp
workarounded false memory leak report
[wxWidgets.git] / src / mac / carbon / 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
33 // Attributes
34 ////////////////////////////////////////////////////////////////////////////
35
36 // Returns the number of images in the image list.
37 int wxImageList::GetImageCount() const
38 {
39 // TODO
40 return 0;
41 }
42
43 // Operations
44 ////////////////////////////////////////////////////////////////////////////
45
46 // Creates an image list
47 bool wxImageList::Create(int width, int height, bool mask, int initial)
48 {
49 // TODO
50 return FALSE;
51 }
52
53 // Adds a bitmap, and optionally a mask bitmap.
54 // Note that wxImageList creates new bitmaps, so you may delete
55 // 'bitmap' and 'mask'.
56 int wxImageList::Add(const wxBitmap& bitmap, const wxBitmap& mask)
57 {
58 // TODO
59 return 0;
60 }
61
62 // Adds a bitmap, using the specified colour to create the mask bitmap
63 // Note that wxImageList creates new bitmaps, so you may delete
64 // 'bitmap'.
65 int wxImageList::Add(const wxBitmap& bitmap, const wxColour& maskColour)
66 {
67 // TODO
68 return 0;
69 }
70
71 // Adds a bitmap and mask from an icon.
72 int wxImageList::Add(const wxIcon& icon)
73 {
74 // TODO
75 return 0;
76 }
77
78 // Replaces a bitmap, optionally passing a mask bitmap.
79 // Note that wxImageList creates new bitmaps, so you may delete
80 // 'bitmap' and 'mask'.
81 bool wxImageList::Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask)
82 {
83 // TODO
84 return 0;
85 }
86
87 // Replaces a bitmap and mask from an icon.
88 bool wxImageList::Replace(int index, const wxIcon& icon)
89 {
90 // TODO
91 return 0;
92 }
93
94 // Removes the image at the given index.
95 bool wxImageList::Remove(int index)
96 {
97 // TODO
98 return FALSE;
99 }
100
101 // Remove all images
102 bool wxImageList::RemoveAll()
103 {
104 // TODO
105 return FALSE;
106 }
107
108 // Draws the given image on a dc at the specified position.
109 // If 'solidBackground' is TRUE, Draw sets the image list background
110 // colour to the background colour of the wxDC, to speed up
111 // drawing by eliminating masked drawing where possible.
112 bool wxImageList::Draw(int index, wxDC& dc, int x, int y,
113 int flags, bool solidBackground)
114 {
115 // TODO
116 return FALSE;
117 }
118