IGUIToolbar.h 952 B

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