Skip to content

Commit 34cdd9a

Browse files
committed
format
1 parent 5365ebd commit 34cdd9a

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

src/ruis/widget/button/touch/tab_button.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ using namespace ruis::touch;
77
using namespace ruis::length_literals;
88

99
tab_button::tab_button(
10-
utki::shared_ref<ruis::context> context, //
11-
all_parameters params,
12-
ruis::string text
10+
utki::shared_ref<ruis::context> context, //
11+
all_parameters params,
12+
ruis::string text
1313
) :
14-
widget(
15-
std::move(context), //
16-
std::move(params.layout_params),
17-
std::move(params.widget_params)
18-
),
19-
button(
20-
this->context,
21-
{
14+
widget(
15+
std::move(context), //
16+
std::move(params.layout_params),
17+
std::move(params.widget_params)
18+
),
19+
button(
20+
this->context,
21+
{
2222
}
23-
),
24-
toggle_button(this->context),
25-
choice_button(this->context),
26-
// clang-format off
23+
),
24+
toggle_button(this->context),
25+
choice_button(this->context),
26+
// clang-format off
2727
ruis::container(
2828
this->context, //
2929
{
@@ -73,18 +73,18 @@ tab_button::tab_button(
7373

7474
ruis::event_status tab_button::on_mouse_button(const ruis::mouse_button_event& event)
7575
{
76-
return this->choice_button::on_mouse_button(event);
76+
return this->choice_button::on_mouse_button(event);
7777
}
7878

7979
utki::shared_ref<ruis::touch::tab_button> ruis::touch::make::tab_button(
8080
utki::shared_ref<ruis::context> context, //
8181
ruis::touch::tab_button::all_parameters params,
82-
ruis::string text
82+
ruis::string text
8383
)
8484
{
8585
return utki::make_shared<ruis::touch::tab_button>(
86-
std::move(context),
87-
std::move(params),
88-
std::move(text)
89-
);
86+
std::move(context), //
87+
std::move(params),
88+
std::move(text)
89+
);
9090
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#pragma once
22

3-
#include "../choice_button.hpp"
43
#include "../../label/image.hpp"
54
#include "../../label/text.hpp"
5+
#include "../choice_button.hpp"
66

7-
namespace ruis::touch{
7+
namespace ruis::touch {
88

99
class tab_button :
1010
public ruis::choice_button, //
@@ -15,24 +15,24 @@ class tab_button :
1515
ruis::layout::parameters layout_params;
1616
ruis::widget::parameters widget_params;
1717
ruis::image::parameters image_params;
18-
ruis::text_widget::parameters text_params;
18+
ruis::text_widget::parameters text_params;
1919
};
2020

2121
tab_button(
2222
utki::shared_ref<ruis::context> context, //
2323
all_parameters params,
24-
ruis::string text
24+
ruis::string text
2525
);
2626

2727
ruis::event_status on_mouse_button(const ruis::mouse_button_event& event) override;
2828
};
2929

30-
namespace make{
30+
namespace make {
3131
utki::shared_ref<ruis::touch::tab_button> tab_button(
3232
utki::shared_ref<ruis::context> context, //
3333
ruis::touch::tab_button::all_parameters params,
34-
ruis::string text
34+
ruis::string text
3535
);
36-
}
36+
} // namespace make
3737

38-
}
38+
} // namespace ruis::touch

tests/touch/src/gui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
#include "gui.hpp"
2323

2424
#include <ruis/res/image.hpp>
25+
#include <ruis/widget/button/touch/tab_button.hpp>
2526
#include <ruis/widget/group/overlay.hpp>
2627
#include <ruis/widget/group/touch/tabbed_book.hpp>
2728
#include <ruis/widget/label/image.hpp>
2829
#include <ruis/widget/label/padding.hpp>
2930
#include <ruis/widget/label/text.hpp>
30-
#include <ruis/widget/button/touch/tab_button.hpp>
3131

3232
#include "list_page.hpp"
3333
#include "scroll_area_page.hpp"

0 commit comments

Comments
 (0)