guit
0.1
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Enumerations
Friends
gadgets
gbar.hpp
1
//
2
// MenuBar, ToolBar, StatusBar
3
// Guit GUI Toolkit
4
// Copyright © 2021 Eric Lecolinet. All rights reserved.
5
// http://www.telecom-paris.fr/~elc
6
//
7
8
#ifndef Guit_Bar_hpp
9
#define Guit_Bar_hpp
10
#include <gbox.hpp>
11
namespace
guit {
12
33
class
GMenuBar
:
public
GButtonBox
{
34
protected
:
35
GMenuBar
(
GadgetType
&, GString
const
& css_and_title);
36
37
public
:
38
GMenuBar
(GString
const
& css_and_title =
""
);
39
40
GMenuBar
* toMenuBar()
override
{
return
this
;}
41
42
using
GButtonBox::add
;
43
void
add
(
GMenu
* child)
override
;
44
45
Place
place()
const override
{
return
Place::Top;}
46
47
using
GType
=
GadgetType_<GMenuBar,GButtonBox>
;
48
static
GType
& Type();
49
GType
& type()
const override
{
return
Type();}
50
};
51
52
GMenuBar
& MenuBar(GString
const
& css_and_title =
""
);
53
54
55
67
class
GToolBar
:
public
GButtonBox
{
68
protected
:
69
GToolBar
(
GadgetType
&, GString
const
& css_and_title);
70
71
public
:
72
GToolBar
(GString
const
& css_and_title =
""
);
73
74
Place
place()
const override
{
return
Place::ToolBar;}
75
76
using
GType
=
GadgetType_<GToolBar,GButtonBox>
;
77
static
GType
& Type();
78
GType
& type()
const override
{
return
Type();}
79
};
80
81
GToolBar
& ToolBar(GString
const
& css_and_title =
""
);
82
83
84
94
class
GStatusBar
:
public
GBox
{
95
protected
:
96
GStatusBar
(
GadgetType
&, GString
const
& css_and_title);
97
98
public
:
99
GStatusBar
(GString
const
& css_and_title =
""
);
100
101
Place
place()
const override
{
return
Place::Bottom;}
102
103
using
GType
=
GadgetType_<GStatusBar,GBox>
;
104
static
GType
& Type();
105
GType
& type()
const override
{
return
Type();}
106
107
Gadget
& createDefaultItem(GString
const
& arg)
override
;
108
};
109
110
GStatusBar
& StatusBar(GString
const
& css_and_title =
""
);
111
112
}
113
#endif
Generated on Thu Feb 25 2021 16:42:45 for guit by
1.8.4