Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
bottom_bar.hpp
Go to the documentation of this file.
1
/*
2
Copyright 2021 XITRIX
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
17
#pragma once
18
19
#include <
aurore/core/application.hpp
>
20
#include <
aurore/core/bind.hpp
>
21
#include <
aurore/core/box.hpp
>
22
#include <
aurore/views/image.hpp
>
23
#include <
aurore/views/label.hpp
>
24
25
namespace
aurore
26
{
27
28
class
BottomBar
:
public
Box
29
{
30
public
:
31
BottomBar
();
32
void
draw
(NVGcontext* vg,
float
x,
float
y,
float
width,
float
height,
Style
style,
FrameContext
* ctx)
override
;
33
static
View
*
create
();
34
35
private
:
36
void
updateText();
37
std::string bottomText;
38
AURORE_BIND
(
Box
, hints,
"aurore/hints"
);
39
AURORE_BIND
(
Label
, time,
"aurore/hints/time"
);
40
AURORE_BIND
(
View
, battery,
"aurore/battery"
);
41
AURORE_BIND
(
View
, wireless,
"aurore/wireless"
);
42
};
43
44
}
// namespace aurore
application.hpp
bind.hpp
AURORE_BIND
#define AURORE_BIND(type, name, id)
Definition
bind.hpp:39
box.hpp
aurore::BottomBar
Definition
bottom_bar.hpp:29
aurore::BottomBar::BottomBar
BottomBar()
aurore::BottomBar::draw
void draw(NVGcontext *vg, float x, float y, float width, float height, Style style, FrameContext *ctx) override
aurore::BottomBar::create
static View * create()
aurore::Box
Generic FlexBox layout.
Definition
box.hpp:74
aurore::FrameContext
Definition
frame_context.hpp:30
aurore::Label
Definition
label.hpp:65
aurore::Style
Simple wrapper around StyleValues for the array operator.
Definition
style.hpp:115
aurore::View
Definition
view.hpp:232
image.hpp
label.hpp
aurore
Definition
actions.hpp:25
aurore
views
bottom_bar.hpp
Generated by
1.9.8