Module: Plushie::Command::Text
- Defined in:
- lib/plushie/command/text.rb
Overview
Text input commands: selection and cursor movement.
All functions support window-qualified paths ("window#widget").
Class Method Summary collapse
-
.move_cursor_to(widget_id, position) ⇒ Cmd
Move cursor to a specific position.
-
.move_cursor_to_end(widget_id) ⇒ Cmd
Move cursor to the end.
-
.move_cursor_to_front(widget_id) ⇒ Cmd
Move cursor to the beginning.
-
.select_all(widget_id) ⇒ Cmd
Select all text in a text widget.
-
.select_range(widget_id, start_pos, end_pos) ⇒ Cmd
Select a range of text.
Class Method Details
.move_cursor_to(widget_id, position) ⇒ Cmd
Move cursor to a specific position.
41 42 43 |
# File 'lib/plushie/command/text.rb', line 41 def move_cursor_to(, position) Command.(, "move_cursor_to", position) end |
.move_cursor_to_end(widget_id) ⇒ Cmd
Move cursor to the end.
33 34 35 |
# File 'lib/plushie/command/text.rb', line 33 def move_cursor_to_end() Command.(, "move_cursor_to_end") end |
.move_cursor_to_front(widget_id) ⇒ Cmd
Move cursor to the beginning.
26 27 28 |
# File 'lib/plushie/command/text.rb', line 26 def move_cursor_to_front() Command.(, "move_cursor_to_front") end |