]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/imaglist.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImageList base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_IMAGLIST_H_BASE_
13 #define _WX_IMAGLIST_H_BASE_
16 * wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to
17 * images for their items by an index into an image list.
18 * A wxImageList is capable of creating images with optional masks from
19 * a variety of sources - a single bitmap plus a colour to indicate the mask,
20 * two bitmaps, or an icon.
22 * Image lists can also create and draw images used for drag and drop functionality.
23 * This is not yet implemented in wxImageList. We need to discuss a generic API
24 * for doing drag and drop and see whether it ties in with the Win95 view of it.
25 * See below for candidate functions and an explanation of how they might be
29 // Flag values for Set/GetImageList
31 wxIMAGE_LIST_NORMAL
, // Normal icons
32 wxIMAGE_LIST_SMALL
, // Small icons
33 wxIMAGE_LIST_STATE
// State icons: unimplemented (see WIN32 documentation)
37 #define wxIMAGELIST_DRAW_NORMAL 0x0001
38 #define wxIMAGELIST_DRAW_TRANSPARENT 0x0002
39 #define wxIMAGELIST_DRAW_SELECTED 0x0004
40 #define wxIMAGELIST_DRAW_FOCUSED 0x0008
42 #include "wx/generic/imaglist.h"
44 #if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
45 #include "wx/msw/imaglist.h"
46 #elif defined(__WXMAC_CARBON__)
47 #include "wx/mac/imaglist.h"
51 // _WX_IMAGLIST_H_BASE_