2018-10-10 01:06:03 +08:00
|
|
|
#ifndef FTXUI_COMPONENT_COMPONENT_HORIZONTAL_H_
|
|
|
|
#define FTXUI_COMPONENT_COMPONENT_HORIZONTAL_H_
|
|
|
|
|
|
|
|
#include "ftxui/component/component_direction.hpp"
|
|
|
|
|
2019-01-12 22:00:08 +08:00
|
|
|
namespace ftxui {
|
2018-10-10 01:06:03 +08:00
|
|
|
|
|
|
|
// 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:
|
2018-10-19 04:58:38 +08:00
|
|
|
ComponentHorizontal(Delegate*);
|
|
|
|
bool HandleDirection(Event) override;
|
2018-10-10 01:06:03 +08:00
|
|
|
};
|
|
|
|
|
2019-01-12 22:00:08 +08:00
|
|
|
} // namespace ftxui
|
2018-10-10 01:06:03 +08:00
|
|
|
|
|
|
|
#endif /* end of include guard: FTXUI_COMPONENT_COMPONENT_HORIZONTAL_H_ */
|