cgv
cgv::gui::text_editor_callback_handler Struct Reference

#include <text_editor.h>

Public Member Functions

virtual void on_close_editor ()
 called when the editor window is closed
 
virtual void after_read ()
 called when new file has been read
 
virtual void after_save ()
 called when text has been saved
 
virtual void on_text_insertion (int text_pos, int nr_inserted)
 called when nr_inserted characters have been inserted at text_pos
 
virtual void on_text_deletion (int text_pos, int nr_deleted, const char *deleted_text)
 called when the nr_deleted characters in deleted_text have been deleted at text position text_pos
 
virtual void on_update_callback ()
 called when text has been saved
 

Detailed Description

implement this interface to interact with the text editor


The documentation for this struct was generated from the following files: