cgv
Loading...
Searching...
No Matches
cgv::gui::text_editor_callback_handler Struct Reference

implement this interface to interact with the text editor More...

#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

Definition at line 13 of file text_editor.h.

Member Function Documentation

◆ after_read()

void cgv::gui::text_editor_callback_handler::after_read ( )
virtual

called when new file has been read

Definition at line 28 of file text_editor.cxx.

◆ after_save()

void cgv::gui::text_editor_callback_handler::after_save ( )
virtual

called when text has been saved

Definition at line 33 of file text_editor.cxx.

◆ on_close_editor()

void cgv::gui::text_editor_callback_handler::on_close_editor ( )
virtual

called when the editor window is closed

Definition at line 18 of file text_editor.cxx.

◆ on_text_deletion()

void cgv::gui::text_editor_callback_handler::on_text_deletion ( int text_pos,
int nr_deleted,
const char * deleted_text )
virtual

called when the nr_deleted characters in deleted_text have been deleted at text position text_pos

Definition at line 44 of file text_editor.cxx.

◆ on_text_insertion()

void cgv::gui::text_editor_callback_handler::on_text_insertion ( int text_pos,
int nr_inserted )
virtual

called when nr_inserted characters have been inserted at text_pos

Definition at line 39 of file text_editor.cxx.

◆ on_update_callback()

void cgv::gui::text_editor_callback_handler::on_update_callback ( )
virtual

called when text has been saved

Definition at line 23 of file text_editor.cxx.


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