mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Set clang-format macro indent.
1) Set clang-format macro indent. 2) Run clang-format on every files.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#ifndef FTXUI_COMPONENT_CHECKBOX_HPP
|
||||
#define FTXUI_COMPONENT_CHECKBOX_HPP
|
||||
|
||||
#include "ftxui/component/component.hpp"
|
||||
#include <functional>
|
||||
|
||||
#include "ftxui/component/component.hpp"
|
||||
|
||||
namespace ftxui {
|
||||
|
||||
class CheckBox : public Component {
|
||||
@@ -15,8 +16,8 @@ class CheckBox : public Component {
|
||||
bool state = false;
|
||||
std::wstring label = L"label";
|
||||
|
||||
//std::wstring checked = L"[X] ";
|
||||
//std::wstring unchecked = L"[ ] ";
|
||||
// std::wstring checked = L"[X] ";
|
||||
// std::wstring unchecked = L"[ ] ";
|
||||
std::wstring checked = L"▣ ";
|
||||
std::wstring unchecked = L"☐ ";
|
||||
|
||||
@@ -24,7 +25,7 @@ class CheckBox : public Component {
|
||||
Decorator unfocused_style = nothing;
|
||||
|
||||
// State update callback.
|
||||
std::function<void()> on_change = [](){};
|
||||
std::function<void()> on_change = []() {};
|
||||
|
||||
// Component implementation.
|
||||
Element Render() override;
|
||||
|
Reference in New Issue
Block a user