mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-12-05 09:21:57 +08:00
Compare commits
3 Commits
c3b940f99b
...
31d46a6e83
Author | SHA1 | Date | |
---|---|---|---|
|
31d46a6e83 | ||
|
58ff448e76 | ||
|
ee584c5fdd |
@ -39,6 +39,8 @@ class ScreenInteractive : public Screen {
|
|||||||
// Options. Must be called before Loop().
|
// Options. Must be called before Loop().
|
||||||
void TrackMouse(bool enable = true);
|
void TrackMouse(bool enable = true);
|
||||||
|
|
||||||
|
void SetCursorReset(Screen::Cursor::Shape shape);
|
||||||
|
|
||||||
// Return the currently active screen, nullptr if none.
|
// Return the currently active screen, nullptr if none.
|
||||||
static ScreenInteractive* Active();
|
static ScreenInteractive* Active();
|
||||||
|
|
||||||
|
@ -441,6 +441,11 @@ void ScreenInteractive::TrackMouse(bool enable) {
|
|||||||
track_mouse_ = enable;
|
track_mouse_ = enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// @brief Set cursor shape on exit of main loop
|
||||||
|
void ScreenInteractive::SetCursorReset(Screen::Cursor::Shape shape) {
|
||||||
|
cursor_reset_shape_ = shape;
|
||||||
|
}
|
||||||
|
|
||||||
/// @brief Add a task to the main loop.
|
/// @brief Add a task to the main loop.
|
||||||
/// It will be executed later, after every other scheduled tasks.
|
/// It will be executed later, after every other scheduled tasks.
|
||||||
/// @ingroup component
|
/// @ingroup component
|
||||||
|
@ -65,7 +65,7 @@ class Border : public Node {
|
|||||||
if (children_.size() == 2) {
|
if (children_.size() == 2) {
|
||||||
Box title_box;
|
Box title_box;
|
||||||
title_box.x_min = box.x_min + 1;
|
title_box.x_min = box.x_min + 1;
|
||||||
title_box.x_max = box.x_max - 1;
|
title_box.x_max = std::min(box.x_max - 1, box.x_min + children_[1]->requirement().min_x);
|
||||||
title_box.y_min = box.y_min;
|
title_box.y_min = box.y_min;
|
||||||
title_box.y_max = box.y_min;
|
title_box.y_max = box.y_min;
|
||||||
children_[1]->SetBox(title_box);
|
children_[1]->SetBox(title_box);
|
||||||
|
Loading…
Reference in New Issue
Block a user