imaglist.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/imaglist.h
  3. // Purpose: wxImageList base header
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created:
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_IMAGLIST_H_BASE_
  11. #define _WX_IMAGLIST_H_BASE_
  12. #include "wx/defs.h"
  13. /*
  14. * wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to
  15. * images for their items by an index into an image list.
  16. * A wxImageList is capable of creating images with optional masks from
  17. * a variety of sources - a single bitmap plus a colour to indicate the mask,
  18. * two bitmaps, or an icon.
  19. *
  20. * Image lists can also create and draw images used for drag and drop functionality.
  21. * This is not yet implemented in wxImageList. We need to discuss a generic API
  22. * for doing drag and drop and see whether it ties in with the Win95 view of it.
  23. * See below for candidate functions and an explanation of how they might be
  24. * used.
  25. */
  26. // Flag values for Set/GetImageList
  27. enum
  28. {
  29. wxIMAGE_LIST_NORMAL, // Normal icons
  30. wxIMAGE_LIST_SMALL, // Small icons
  31. wxIMAGE_LIST_STATE // State icons: unimplemented (see WIN32 documentation)
  32. };
  33. // Flags for Draw
  34. #define wxIMAGELIST_DRAW_NORMAL 0x0001
  35. #define wxIMAGELIST_DRAW_TRANSPARENT 0x0002
  36. #define wxIMAGELIST_DRAW_SELECTED 0x0004
  37. #define wxIMAGELIST_DRAW_FOCUSED 0x0008
  38. #if defined(__WXMSW__) || defined(__WXMAC__)
  39. #define wxHAS_NATIVE_IMAGELIST
  40. #endif
  41. #if !defined(wxHAS_NATIVE_IMAGELIST)
  42. #include "wx/generic/imaglist.h"
  43. #elif defined(__WXMSW__)
  44. #include "wx/msw/imaglist.h"
  45. #elif defined(__WXMAC__)
  46. #include "wx/osx/imaglist.h"
  47. #endif
  48. #endif // _WX_IMAGLIST_H_BASE_