mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Cleanup
This commit is contained in:
@@ -69,8 +69,7 @@ class ScreenInteractive : public Screen {
|
||||
void ForceHandleCtrlZ(bool force);
|
||||
|
||||
// Selection API.
|
||||
//void OnSelectionChange(std::function<void(std::
|
||||
//void ClearSelection();
|
||||
// TODO: Implement somethings here.
|
||||
|
||||
private:
|
||||
void ExitNow();
|
||||
|
||||
@@ -113,8 +113,6 @@ Decorator focusPositionRelative(float x, float y);
|
||||
Element automerge(Element child);
|
||||
Decorator hyperlink(std::string link);
|
||||
Element hyperlink(std::string link, Element child);
|
||||
Element selectable(Element child);
|
||||
Decorator selectable(void);
|
||||
|
||||
// --- Layout is
|
||||
// Horizontal, Vertical or stacked set of elements.
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#ifndef FTXUI_DOM_NODE_HPP
|
||||
#define FTXUI_DOM_NODE_HPP
|
||||
|
||||
#include <list> // for list
|
||||
#include <memory> // for shared_ptr
|
||||
#include <vector> // for vector
|
||||
|
||||
@@ -58,7 +57,6 @@ class Node {
|
||||
};
|
||||
virtual void Check(Status* status);
|
||||
|
||||
|
||||
protected:
|
||||
Elements children_;
|
||||
Requirement requirement_;
|
||||
|
||||
@@ -18,7 +18,6 @@ class Selection {
|
||||
Selection SaturateHorizontal(Box box);
|
||||
Selection SaturateVertical(Box box);
|
||||
|
||||
|
||||
private:
|
||||
Selection* const parent_ = nullptr;
|
||||
const int start_x_;
|
||||
|
||||
@@ -21,7 +21,6 @@ struct Pixel {
|
||||
underlined(false),
|
||||
underlined_double(false),
|
||||
strikethrough(false),
|
||||
selectable(false),
|
||||
automerge(false) {}
|
||||
|
||||
// A bit field representing the style:
|
||||
@@ -31,7 +30,6 @@ struct Pixel {
|
||||
bool inverted : 1;
|
||||
bool underlined : 1;
|
||||
bool underlined_double : 1;
|
||||
bool selectable : 1;
|
||||
bool strikethrough : 1;
|
||||
bool automerge : 1;
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
#include "ftxui/screen/image.hpp" // for Pixel, Image
|
||||
#include "ftxui/screen/terminal.hpp" // for Dimensions
|
||||
#include "ftxui/component/captured_mouse.hpp" // for CapturedMouse
|
||||
|
||||
namespace ftxui {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user