![]() |
![]() |
![]() |
CodeSlayer Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
#include <codeslayer/codeslayer-editor.h> struct CodeSlayerEditor; GtkWidget * codeslayer_editor_new (GtkWindow *window
,CodeSlayerDocument *document
,CodeSlayerPreferences *preferences
,CodeSlayerSettings *settings
); gboolean codeslayer_editor_scroll_to_line (CodeSlayerEditor *editor
,gint line_number
); void codeslayer_editor_sync_settings_preferences (CodeSlayerEditor *editor
); CodeSlayerDocument * codeslayer_editor_get_document (CodeSlayerEditor *editor
); void codeslayer_editor_add_completion_provider (CodeSlayerEditor *editor
,CodeSlayerCompletionProvider *provider
); const gchar * codeslayer_editor_get_file_path (CodeSlayerEditor *editor
); gint codeslayer_editor_get_line_number (CodeSlayerEditor *editor
); GTimeVal * codeslayer_editor_get_modification_time (CodeSlayerEditor *editor
); void codeslayer_editor_set_modification_time (CodeSlayerEditor *editor
,GTimeVal *modification_time
); void codeslayer_editor_set_text (CodeSlayerEditor *editor
,gchar *text
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkTextView +----GtkSourceView +----CodeSlayerEditor
CodeSlayerEditor implements AtkImplementorIface, GtkBuildable and GtkScrollable.
"completion" :No Hooks
"copy-lines" :No Hooks
"to-lowercase" :No Hooks
"to-uppercase" :No Hooks
GtkWidget * codeslayer_editor_new (GtkWindow *window
,CodeSlayerDocument *document
,CodeSlayerPreferences *preferences
,CodeSlayerSettings *settings
);
Creates a new CodeSlayerEditor.
|
a GtkWindow. |
|
the CodeSlayerDocument for this editor. |
|
a CodeSlayerPreferences. |
|
a CodeSlayerSettings. |
Returns : |
a new CodeSlayerEditor. |
gboolean codeslayer_editor_scroll_to_line (CodeSlayerEditor *editor
,gint line_number
);
|
a CodeSlayerEditor. |
|
the line to scroll to within the editor. |
void codeslayer_editor_sync_settings_preferences
(CodeSlayerEditor *editor
);
CodeSlayerDocument * codeslayer_editor_get_document (CodeSlayerEditor *editor
);
|
a CodeSlayerEditor |
Returns : |
the CodeSlayerDocument that represents this editor. |
void codeslayer_editor_add_completion_provider (CodeSlayerEditor *editor
,CodeSlayerCompletionProvider *provider
);
Add the provider to find possible matches for the completion window.
|
a CodeSlayerEditor |
|
a CodeSlayerCompletionProvider. |
const gchar * codeslayer_editor_get_file_path (CodeSlayerEditor *editor
);
The file path for the editors document.
|
a CodeSlayerEditor |
Returns : |
a string that is owned by the editor and should not be freed. |
gint codeslayer_editor_get_line_number (CodeSlayerEditor *editor
);
The current line number for the editors document.
|
a CodeSlayerEditor |
GTimeVal * codeslayer_editor_get_modification_time
(CodeSlayerEditor *editor
);
|
a CodeSlayerEditor |
Returns : |
the modification time of the underlying file |
void codeslayer_editor_set_modification_time (CodeSlayerEditor *editor
,GTimeVal *modification_time
);
The modification time of the underlying file
|
a CodeSlayerEditor |
|
a GTimeVal |
void codeslayer_editor_set_text (CodeSlayerEditor *editor
,gchar *text
);
Add the text to the editor, while blocking the cursor position signal.
|
a CodeSlayerEditor |
|
the text to set. |
"completion"
signalvoid user_function (CodeSlayerEditor *editor,
gpointer user_data) : No Hooks
The ::completion signal enables the (Ctrl + Space) keystroke to invoke the completion widget.
|
the editor that received the signal |
|
user data set when the signal handler was connected. |
"copy-lines"
signalvoid user_function (CodeSlayerEditor *editor,
gpointer user_data) : No Hooks
The ::copy-lines signal enables the (Ctrl + Shift + Down) keystroke to copy the currently selected lines.
|
the editor that received the signal |
|
user data set when the signal handler was connected. |
"to-lowercase"
signalvoid user_function (CodeSlayerEditor *editor,
gpointer user_data) : No Hooks
The ::to-lowercase signal enables the (Ctrl + L) keystroke to lowercase the selected text.
|
the editor that received the signal |
|
user data set when the signal handler was connected. |
"to-uppercase"
signalvoid user_function (CodeSlayerEditor *editor,
gpointer user_data) : No Hooks
The ::to-uppercase signal enables the (Ctrl + U) keystroke to uppercase the selected text.
|
the editor that received the signal |
|
user data set when the signal handler was connected. |