mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
HexEditor: Add ability to set a selection range
This commit is contained in:
parent
151eb8606d
commit
1b70c5f605
2 changed files with 15 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Mustafa Quraish <mustafa@serenityos.org>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
* Copyright (c) 2022, Timothy Slater <tslater2006@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -53,6 +54,7 @@ public:
|
|||
void set_bytes_per_row(size_t);
|
||||
|
||||
void set_position(size_t position);
|
||||
void set_selection(size_t position, size_t length);
|
||||
void highlight(size_t start, size_t end);
|
||||
Optional<size_t> find(ByteBuffer& needle, size_t start = 0);
|
||||
Optional<size_t> find_and_highlight(ByteBuffer& needle, size_t start = 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue