Appendix C. Implementing Text Editing

Table of Contents

The Technique

Cluttermm provides a Clutter::Entry actor for text entry. However, this is limited to single lines of text. Therefore you will need to implement your own custom actor if you need this functionality with multiple lines of text.

Like Clutter::Entry you can use the Pango API -- specifically the Pango::Layout object. The Pango::Layout can then be rendered to the clutter display in your ClutterActor::on_paint() implementation by using the cogl_pango_render_layout() utility function.