mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-07 01:41:12 +08:00
19 lines
545 B
C++
19 lines
545 B
C++
#ifndef FTXUI_COMPONENT_COMPONENT_HORIZONTAL_H_
|
|
#define FTXUI_COMPONENT_COMPONENT_HORIZONTAL_H_
|
|
|
|
#include "ftxui/component/component_direction.hpp"
|
|
|
|
namespace ftxui {
|
|
|
|
// A component where focus and events are automatically handled for you.
|
|
// It assumes its children are put in the horizontal direction.
|
|
class ComponentHorizontal : public ComponentDirection {
|
|
public:
|
|
ComponentHorizontal(Delegate*);
|
|
bool HandleDirection(Event) override;
|
|
};
|
|
|
|
} // namespace ftxui
|
|
|
|
#endif /* end of include guard: FTXUI_COMPONENT_COMPONENT_HORIZONTAL_H_ */
|