![]() |
![]() |
![]() |
CodeSlayer Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
#include <codeslayer/codeslayer-sourceview.h> struct CodeSlayerSourceView; #define CODESLAYER_SOURCE_VIEW_UNTITLED GtkWidget * codeslayer_source_view_new (GtkWindow *window
,CodeSlayerDocument *document
,CodeSlayerProfile *profile
); CodeSlayerDocument * codeslayer_source_view_get_document (CodeSlayerSourceView *source_view
); GTimeVal * codeslayer_source_view_get_modification_time (CodeSlayerSourceView *source_view
); void codeslayer_source_view_set_modification_time (CodeSlayerSourceView *source_view
,GTimeVal *modification_time
); void codeslayer_source_view_add_completion_provider (CodeSlayerSourceView *source_view
,CodeSlayerCompletionProvider *provider
); void codeslayer_source_view_set_text (CodeSlayerSourceView *source_view
,gchar *text
); gboolean codeslayer_source_view_scroll_to_line (CodeSlayerSourceView *source_view
,gint line_number
); void codeslayer_source_view_sync_registry (CodeSlayerSourceView *source_view
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkTextView +----GtkSourceView +----CodeSlayerSourceView
CodeSlayerSourceView implements AtkImplementorIface, GtkBuildable and GtkScrollable.
"completion" :No Hooks
"copy-lines" :No Hooks
"to-lowercase" :No Hooks
"to-uppercase" :No Hooks
GtkWidget * codeslayer_source_view_new (GtkWindow *window
,CodeSlayerDocument *document
,CodeSlayerProfile *profile
);
Creates a new CodeSlayerSourceView.
|
a GtkWindow. |
|
the CodeSlayerDocument for this source_view. |
|
a CodeSlayerProfile. |
Returns : |
a new CodeSlayerSourceView. |
CodeSlayerDocument * codeslayer_source_view_get_document
(CodeSlayerSourceView *source_view
);
|
a CodeSlayerSourceView |
Returns : |
the CodeSlayerDocument that represents this source view. |
GTimeVal * codeslayer_source_view_get_modification_time
(CodeSlayerSourceView *source_view
);
|
a CodeSlayerSourceView |
Returns : |
the modification time of the underlying file |
void codeslayer_source_view_set_modification_time (CodeSlayerSourceView *source_view
,GTimeVal *modification_time
);
The modification time of the underlying file
|
a CodeSlayerSourceView |
|
a GTimeVal |
void codeslayer_source_view_add_completion_provider (CodeSlayerSourceView *source_view
,CodeSlayerCompletionProvider *provider
);
Add the provider to find possible matches for the completion window.
|
a CodeSlayerSourceView |
|
a CodeSlayerCompletionProvider. |
void codeslayer_source_view_set_text (CodeSlayerSourceView *source_view
,gchar *text
);
Add the text to the source view, while blocking the cursor position signal.
|
a CodeSlayerSourceView |
|
the text to set. |
gboolean codeslayer_source_view_scroll_to_line (CodeSlayerSourceView *source_view
,gint line_number
);
|
a CodeSlayerSourceView. |
|
the line to scroll to within the source view. |
void codeslayer_source_view_sync_registry
(CodeSlayerSourceView *source_view
);
Apply the preferences to the current source view.
|
a CodeSlayerSourceView. |
"completion"
signalvoid user_function (CodeSlayerSourceView *source_view,
gpointer user_data) : No Hooks
The ::completion signal enables the (Ctrl + Space) keystroke to invoke the completion widget.
|
the source view that received the signal |
|
user data set when the signal handler was connected. |
"copy-lines"
signalvoid user_function (CodeSlayerSourceView *source_view,
gpointer user_data) : No Hooks
The ::copy_lines signal is a request to copy the lines of the selected text.
|
the source view that received the signal |
|
user data set when the signal handler was connected. |
"to-lowercase"
signalvoid user_function (CodeSlayerSourceView *codeslayersourceview,
gpointer user_data) : No Hooks
"to-uppercase"
signalvoid user_function (CodeSlayerSourceView *source_view,
gpointer user_data) : No Hooks
The ::uppercase signal is a request to lowercase the selected text.
|
the source view that received the signal |
|
user data set when the signal handler was connected. |