mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-07-25 05:41:14 +08:00
fix: split fullscreen functions
This commit is contained in:
parent
044c2684e7
commit
77169b618d
@ -31,8 +31,9 @@ class ScreenInteractive : public Screen {
|
||||
// Constructors:
|
||||
static ScreenInteractive FixedSize(int dimx, int dimy);
|
||||
static ScreenInteractive Fullscreen();
|
||||
static ScreenInteractive FullscreenPrimaryScreen();
|
||||
static ScreenInteractive FitComponent();
|
||||
static ScreenInteractive TerminalOutput(bool use_alternative_screen = true);
|
||||
static ScreenInteractive TerminalOutput();
|
||||
|
||||
// Options. Must be called before Loop().
|
||||
void TrackMouse(bool enable = true);
|
||||
|
@ -353,12 +353,22 @@ ScreenInteractive ScreenInteractive::FixedSize(int dimx, int dimy) {
|
||||
}
|
||||
|
||||
// static
|
||||
ScreenInteractive ScreenInteractive::Fullscreen(bool use_alternative_screen) {
|
||||
ScreenInteractive ScreenInteractive::Fullscreen() {
|
||||
return {
|
||||
0,
|
||||
0,
|
||||
Dimension::Fullscreen,
|
||||
use_alternative_screen,
|
||||
true,
|
||||
};
|
||||
}
|
||||
|
||||
// static
|
||||
ScreenInteractive ScreenInteractive::FullscreenPrimaryScreen() {
|
||||
return {
|
||||
0,
|
||||
0,
|
||||
Dimension::Fullscreen,
|
||||
false,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user