MauiKit Terminal
ScreenWindow.h
42 * Use the getImage() method to retrieve the character image which is currently visible in the window.
44 * setTrackOutput() controls whether the window moves to the bottom of the associated screen when new
47 * Whenever the output from the underlying screen is changed, the notifyOutputChanged() slot should
48 * be called. This in turn will update the window's position and Q_EMIT the outputChanged() signal
58 * A screen must be specified by calling setScreen() before calling getImage() or getLineProperties().
60 * You should not call this constructor directly, instead use the Emulation::createWindow() method
181 };
Command
This enum describes commands which are associated with particular key sequences.
Definition KeyboardTranslator.h:94
Provides a window onto a section of a terminal screen.
Definition ScreenWindow.h:52
void setSelectionStart(int column, int line, bool columnMode)
Sets the start of the selection to the given line and column within the window.
Definition ScreenWindow.cpp:131
void setSelectionEnd(int column, int line)
Sets the end of the selection to the given line and column within the window.
Definition ScreenWindow.cpp:139
void getSelectionEnd(int &column, int &line)
Retrieves the end of the selection within the window.
Definition ScreenWindow.cpp:126
RelativeScrollMode
Describes the units which scrollBy() moves the window by.
Definition ScreenWindow.h:173
@ ScrollPages
Scroll the window down by a given number of pages, where one page is windowLines() lines.
Definition ScreenWindow.h:180
void setTrackOutput(bool trackOutput)
Specifies whether the window should automatically move to the bottom of the screen when new output is...
Definition ScreenWindow.cpp:230
QRect scrollRegion() const
Returns the area of the window which was last scrolled, this is usually the whole window area.
Definition ScreenWindow.cpp:250
int currentLine() const
Returns the index of the line which is currently at the top of this window.
Definition ScreenWindow.cpp:194
bool isSelected(int column, int line)
Returns true if the character at line , column is part of the selection.
Definition ScreenWindow.cpp:147
int lineCount() const
Returns the total number of lines in the screen.
Definition ScreenWindow.cpp:174
void getSelectionStart(int &column, int &line)
Retrieves the start of the selection within the window.
Definition ScreenWindow.cpp:121
int columnCount() const
Returns the total number of columns in the screen.
Definition ScreenWindow.cpp:179
QString selectedText(bool preserveLineBreaks) const
Returns the text which is currently selected.
Definition ScreenWindow.cpp:116
int windowColumns() const
Returns the number of columns in the window.
Definition ScreenWindow.cpp:169
void selectionChanged()
Emitted when the selection is changed.
bool trackOutput() const
Returns whether the window automatically moves to the bottom of the screen as new output is added.
Definition ScreenWindow.cpp:235
ScreenWindow(QObject *parent=nullptr)
Constructs a new screen window with the given parent.
Definition ScreenWindow.cpp:28
void setScreen(Screen *screen)
Sets the screen which this window looks onto.
Definition ScreenWindow.cpp:41
void notifyOutputChanged()
Notifies the window that the contents of the associated terminal screen have changed.
Definition ScreenWindow.cpp:260
QPoint cursorPosition() const
Returns the position of the cursor within the window.
Definition ScreenWindow.cpp:184
void scrollBy(RelativeScrollMode mode, int amount)
Scrolls the window relative to its current position on the screen.
Definition ScreenWindow.cpp:199
int scrollCount() const
Returns the number of lines which the region of the window specified by scrollRegion() has been scrol...
Definition ScreenWindow.cpp:240
void scrolled(int line)
Emitted when the screen window is scrolled to a different position.
void scrollTo(int line)
Scrolls the window so that line is at the top of the window.
Definition ScreenWindow.cpp:213
void resetScrollCount()
Resets the count of scrolled lines returned by scrollCount()
Definition ScreenWindow.cpp:245
std::span< Character > getImage()
Returns the image of characters which are currently visible through this window onto the screen.
Definition ScreenWindow.cpp:53
Screen * screen() const
Returns the screen which this window looks onto.
Definition ScreenWindow.cpp:48
QVector< LineProperty > getLineProperties()
Returns the line attributes associated with the lines of characters which are currently visible throu...
Definition ScreenWindow.cpp:106
void outputChanged()
Emitted when the contents of the associated terminal screen (see screen()) changes.
void setWindowLines(int lines)
Sets the number of lines in the window.
Definition ScreenWindow.cpp:159
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.