aboutsummaryrefslogtreecommitdiff
path: root/src/threading/event.h
Commit message (Expand)AuthorAge
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Remove threads.h and replace its definitions with their C++11 equivalents (#5...ShadowNinja2017-06-11
* Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot2017-06-06
* Pass clang-format on 14 trivial header files fixesLoic Blot2017-04-07
* Fix C++11 Windows build of threading codesfan52016-10-06
* Fix use of uninitialised variable in class EventCraig Robbins2016-05-01
* Fix C++11 compilabilityest312016-01-23
* Fix events on WindowsBlockMen2015-12-11
* Fix Event implementationShadowNinja2015-12-07
* Clean up threadingShadowNinja2015-08-23
., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "guiButtonItemImage.h" #include "client/client.h" #include "client/hud.h" // drawItemStack #include "guiItemImage.h" #include "IGUIEnvironment.h" #include "itemdef.h" using namespace irr; using namespace gui; GUIButtonItemImage::GUIButtonItemImage(gui::IGUIEnvironment *environment, gui::IGUIElement *parent, s32 id, core::rect<s32> rectangle, ISimpleTextureSource *tsrc, std::string item, Client *client, bool noclip) : GUIButton (environment, parent, id, rectangle, tsrc, noclip) { m_image = new GUIItemImage(environment, this, id, core::rect<s32>(0,0,rectangle.getWidth(),rectangle.getHeight()), item, getActiveFont(), client); sendToBack(m_image); m_item_name = item; m_client = client; } GUIButtonItemImage *GUIButtonItemImage::addButton(IGUIEnvironment *environment, const core::rect<s32> &rectangle, ISimpleTextureSource *tsrc, IGUIElement *parent, s32 id, const wchar_t *text, std::string item, Client *client) { GUIButtonItemImage *button = new GUIButtonItemImage(environment, parent ? parent : environment->getRootGUIElement(), id, rectangle, tsrc, item, client); if (text) button->setText(text); button->drop(); return button; }