]> git.saurik.com Git - wxWidgets.git/blame - src/mac/imaglist.cpp
corrected redraw problems with native controls
[wxWidgets.git] / src / mac / imaglist.cpp
CommitLineData
e9576ca5
SC
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
2f1ae414 18#if !USE_SHARED_LIBRARY
e9576ca5 19IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject)
2f1ae414 20#endif
e9576ca5
SC
21
22wxImageList::wxImageList()
23{
24 // TODO: init image list handle, if any
25}
26
27wxImageList::~wxImageList()
28{
29 // TODO: destroy image list handle, if any
30}
31
e9576ca5
SC
32// Attributes
33////////////////////////////////////////////////////////////////////////////
34
35// Returns the number of images in the image list.
36int wxImageList::GetImageCount() const
37{
03e11df5
GD
38 // TODO
39 return 0;
40}
41
42#if 0
43bool wxImageList::GetSize(int index, int &width, int &hieght) const
44{
45 // TODO
46 return false;
e9576ca5 47}
03e11df5 48#endif
e9576ca5
SC
49
50// Operations
51////////////////////////////////////////////////////////////////////////////
52
53// Creates an image list
54bool 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'.
63int 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'.
72int 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.
79int 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'.
88bool 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.
95bool wxImageList::Replace(int index, const wxIcon& icon)
96{
97 // TODO
98 return 0;
99}
100
101// Removes the image at the given index.
102bool wxImageList::Remove(int index)
103{
104 // TODO
105 return FALSE;
106}
107
108// Remove all images
109bool 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.
119bool wxImageList::Draw(int index, wxDC& dc, int x, int y,
120 int flags, bool solidBackground)
121{
122 // TODO
123 return FALSE;
124}
125