IGUIToolbar.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_TOOL_BAR_H_INCLUDED
  5. #define IRR_I_GUI_TOOL_BAR_H_INCLUDED
  6. #include "IGUIElement.h"
  7. namespace irr
  8. {
  9. namespace video
  10. {
  11. class ITexture;
  12. } // end namespace video
  13. namespace gui
  14. {
  15. class IGUIButton;
  16. //! Stays at the top of its parent like the menu bar and contains tool buttons
  17. class IGUIToolBar : public IGUIElement
  18. {
  19. public:
  20. //! constructor
  21. IGUIToolBar(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
  22. : IGUIElement(EGUIET_TOOL_BAR, environment, parent, id, rectangle) {}
  23. //! Adds a button to the tool bar
  24. virtual IGUIButton* addButton(s32 id=-1, const wchar_t* text=0,const wchar_t* tooltiptext=0,
  25. video::ITexture* img=0, video::ITexture* pressedimg=0,
  26. bool isPushButton=false, bool useAlphaChannel=false) = 0;
  27. };
  28. } // end namespace gui
  29. } // end namespace irr
  30. #endif