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