Jan Arne Petersen
0e5bd45100
editor: Add support for selection
...
Make it possible to select text and render the selection to the editor
example.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
09e7c96574
editor: Insert commit-string at cursor
...
Instead of appending at the end, insert the commit-string at the cursor
position.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
7e634a0ea7
editor: Add support for cursor
...
Add support for setting, moving and rendering a cursor.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
b9eb02c46f
editor: Extract text handling into text_layout
...
Create a text_layout struct and functions for handling simple text
layouts.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
f80bc06a8e
editor: Make text_entry a widget
...
Simplify the example client by making text_entry a widget.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
4c26518ad1
text: Remove surface arg in create_text_model
...
Remove the wl_surface argument from create_text_model request. The
wl_surface is specified as an argument in the activate request instead.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
e829adc514
text: Assign text_model to a wl_seat
...
Add a wl_seat argument to the activate and deactivate requests of
text_method.
On activation a text_model gets assigned to the input_method of the
wl_seat specified in the activate request.
12 years ago
Jan Arne Petersen
de3b6a15c0
text: Add activate/deactivate events
...
Let the client know when a text model gets activated or deactiavted.
12 years ago
Jan Arne Petersen
5196374218
text: Rename text_model_manager to factory
...
The text_model_manager interface is just used to create text_model
instances. It is more a factory than a manager so rename it to
text_model_factory.
12 years ago
Jan Arne Petersen
72f6082313
text: Add missing callbacks for text_model events
...
Add all required callbacks for the text_model_listener in the editor
example.
12 years ago
Philipp Brüschweiler
f25602bdc0
Extract the text_model_manager interface from input_method
...
This is necessary because all clients need a way to create
text_models, but only one client at a time can be bound to
the input_method global (else we don't know to whom we are
supposed to send events).
12 years ago
Philipp Brüschweiler
591cfca4e8
editor: deactivate old text model before activating the new one
12 years ago
Jan Arne Petersen
cba9e470ba
text: Add example clients for text protocol
13 years ago