Duckcpp
2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIToolbar.hpp
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 duckcpp/duckcpp.hpp
4
5
#ifndef DCPP_I_GUI_TOOL_BAR_HPP_INCLUDED
6
#define DCPP_I_GUI_TOOL_BAR_HPP_INCLUDED
7
8
#include <duckcpp/core/engine/IGUIElement.hpp>
9
10
namespace
dcpp
11
{
12
namespace
video
13
{
14
class
ITexture;
15
}
// end namespace video
16
namespace
gui
17
{
18
class
IGUIButton;
19
21
class
IGUIToolBar
:
public
IGUIElement
22
{
23
public
:
24
26
IGUIToolBar
(
IGUIEnvironment
* environment,
IGUIElement
* parent,
dcpp::int32_kt
id
,
dcpp::nub::recti
rectangle)
27
:
IGUIElement
(
EGUIET_TOOL_BAR
, environment, parent, id, rectangle) {}
28
30
virtual
IGUIButton
*
addButton
(
dcpp::int32_kt
id
=-1,
const
wchar_t
* text=0,
const
wchar_t
* tooltiptext=0,
31
dcpp::video::ITexture
* img=0,
dcpp::video::ITexture
* pressedimg=0,
32
bool
isPushButton=
false
,
bool
useAlphaChannel=
false
) = 0;
33
};
34
35
36
}
// end namespace gui
37
}
// end namespace dcpp
38
39
#endif
dcpp::gui::IGUIButton
GUI Button interface.
Definition
IGUIButton.hpp:110
dcpp::gui::IGUIElement
Base class of all GUI elements.
Definition
IGUIElement.hpp:24
dcpp::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition
IGUIEnvironment.hpp:73
dcpp::gui::IGUIToolBar
Stays at the top of its parent like the menu bar and contains tool buttons.
Definition
IGUIToolbar.hpp:22
dcpp::gui::IGUIToolBar::IGUIToolBar
IGUIToolBar(IGUIEnvironment *environment, IGUIElement *parent, dcpp::int32_kt id, dcpp::nub::recti rectangle)
constructor
Definition
IGUIToolbar.hpp:26
dcpp::gui::IGUIToolBar::addButton
virtual IGUIButton * addButton(dcpp::int32_kt id=-1, const wchar_t *text=0, const wchar_t *tooltiptext=0, dcpp::video::ITexture *img=0, dcpp::video::ITexture *pressedimg=0, bool isPushButton=false, bool useAlphaChannel=false)=0
Adds a button to the tool bar.
dcpp::nub::rect
Rectangle template.
Definition
rect.hpp:27
dcpp::video::ITexture
Interface of a Video Driver dependent Texture.
Definition
ITexture.hpp:186
dcpp::gui::EGUIET_TOOL_BAR
@ EGUIET_TOOL_BAR
A tool bar (IGUIToolBar)
Definition
EGUIElementTypes.hpp:80
dcpp
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition
shared_device.hpp:34
dcpp::int32_kt
signed int int32_kt
32 bit signed variable.
Definition
irrTypes.hpp:72
Duckcpp
@
cppfx.xyz