IGUIColorSelectDialog.h 906 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef IRR_I_GUI_COLOR_SELECT_DIALOG_H_INCLUDED
  5. #define IRR_I_GUI_COLOR_SELECT_DIALOG_H_INCLUDED
  6. #include "IGUIElement.h"
  7. namespace irr
  8. {
  9. namespace gui
  10. {
  11. //! Standard color chooser dialog.
  12. class IGUIColorSelectDialog : public IGUIElement
  13. {
  14. public:
  15. //! constructor
  16. IGUIColorSelectDialog(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
  17. : IGUIElement(EGUIET_COLOR_SELECT_DIALOG, environment, parent, id, rectangle) {}
  18. //! get chosen color as usual SColor struct
  19. virtual video::SColor getColor() =0;
  20. //! get chosen color as HSL values
  21. virtual video::SColorHSL getColorHSL() =0;
  22. };
  23. } // end namespace gui
  24. } // end namespace irr
  25. #endif