mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
Kernel: Mark Console::{hide,show}_cursor methods protected
Only the Console code in the Graphics directory should be able to call on these methods. The set_cursor method stays public as VirtualConsole uses that method to change the cursor position.
This commit is contained in:
parent
a40f289ee5
commit
0a5416a87a
3 changed files with 9 additions and 6 deletions
|
@ -24,8 +24,6 @@ public:
|
|||
virtual bool has_hardware_cursor() const override { return false; }
|
||||
|
||||
virtual void set_cursor(size_t x, size_t y) override;
|
||||
virtual void hide_cursor() override;
|
||||
virtual void show_cursor() override;
|
||||
|
||||
virtual void clear(size_t x, size_t y, size_t length) override;
|
||||
virtual void write(size_t x, size_t y, char ch, Color background, Color foreground, bool critical = false) override;
|
||||
|
@ -38,6 +36,9 @@ public:
|
|||
virtual void set_resolution(size_t width, size_t height, size_t pitch) = 0;
|
||||
|
||||
protected:
|
||||
virtual void hide_cursor() override;
|
||||
virtual void show_cursor() override;
|
||||
|
||||
GenericFramebufferConsoleImpl(size_t width, size_t height, size_t pitch)
|
||||
: Console(width, height)
|
||||
, m_pitch(pitch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue