diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-06-08 00:48:40 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-07 23:54:21 +0200 |
commit | aa3e440a58270f606320ed4e3072c34eb4584c38 (patch) | |
tree | e0d3f842fe951bdb226c7c87f713d5565ee908a2 /Libraries/LibLine/SuggestionDisplay.h | |
parent | 9b17bf3dcd5a38a6731ceb974f0ca4d787524a89 (diff) | |
download | serenity-aa3e440a58270f606320ed4e3072c34eb4584c38.zip |
LibLine: Use more descriptive names for row/column
The names x and y caused confusion because of their typical use as
horiz/vert.
Diffstat (limited to 'Libraries/LibLine/SuggestionDisplay.h')
-rw-r--r-- | Libraries/LibLine/SuggestionDisplay.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Libraries/LibLine/SuggestionDisplay.h b/Libraries/LibLine/SuggestionDisplay.h index 6798ada5d8..346ee4bc59 100644 --- a/Libraries/LibLine/SuggestionDisplay.h +++ b/Libraries/LibLine/SuggestionDisplay.h @@ -45,18 +45,18 @@ public: virtual void set_vt_size(size_t lines, size_t columns) = 0; - size_t origin_x() const { return m_origin_x; } - size_t origin_y() const { return m_origin_y; } + size_t origin_row() const { return m_origin_row; } + size_t origin_col() const { return m_origin_column; } - void set_origin(int x, int y, Badge<Editor>) + void set_origin(int row, int col, Badge<Editor>) { - m_origin_x = x; - m_origin_y = y; + m_origin_row = row; + m_origin_column = col; } protected: - int m_origin_x { 0 }; - int m_origin_y { 0 }; + int m_origin_row { 0 }; + int m_origin_column { 0 }; }; class XtermSuggestionDisplay : public SuggestionDisplay { |