Top |
#define | GNT_TEXT_VIEW_FLAGS() |
#define | GNT_TEXT_VIEW_SET_FLAGS() |
#define | GNT_TEXT_VIEW_UNSET_FLAGS() |
GType | gnt_text_view_get_gtype () |
GntWidget * | gnt_text_view_new () |
void | gnt_text_view_scroll () |
void | gnt_text_view_append_text_with_flags () |
void | gnt_text_view_append_text_with_tag () |
const gchar * | gnt_text_view_get_text () |
void | gnt_text_view_next_line () |
chtype | gnt_text_format_flag_to_chtype () |
void | gnt_text_view_clear () |
int | gnt_text_view_get_lines_below () |
int | gnt_text_view_get_lines_above () |
int | gnt_text_view_tag_change () |
void | gnt_text_view_attach_scroll_widget () |
void | gnt_text_view_attach_pager_widget () |
void | gnt_text_view_attach_editor_widget () |
void | gnt_text_view_set_flag () |
#define GNT_TEXT_VIEW_FLAGS(obj) (GNT_TEXT_VIEW(obj)->priv.flags)
GNT_TEXT_VIEW_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_TEXT_VIEW_SET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) |= flags)
GNT_TEXT_VIEW_SET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_TEXT_VIEW_UNSET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) &= ~(flags))
GNT_TEXT_VIEW_UNSET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
void gnt_text_view_scroll (GntTextView *view
,int scroll
);
Scroll the textview.
void gnt_text_view_append_text_with_flags (GntTextView *view
,const char *text
,GntTextFormatFlags flags
);
Append new text in a textview.
void gnt_text_view_append_text_with_tag (GntTextView *view
,const char *text
,GntTextFormatFlags flags
,const char *tag
);
Append text in the textview, with some identifier (tag) for the added text.
view |
The textview. |
|
text |
The text to append. |
|
flags |
The text-flags to apply to the new text. |
|
tag |
The tag for the appended text, so it can be changed later (see |
const gchar *
gnt_text_view_get_text (GntTextView *view
);
Get the text of the textview.
Since: 2.14.0
void
gnt_text_view_next_line (GntTextView *view
);
Move the cursor to the beginning of the next line and resets text-attributes. It first completes the current line with the current text-attributes.
chtype
gnt_text_format_flag_to_chtype (GntTextFormatFlags flags
);
gnt_text_format_flag_to_chtype
has been deprecated since version 2.14.1 and should not be used in newly-written code.
This is an internal implementation detail.
Convert GNT-text formats to ncurses-text attributes.
void
gnt_text_view_clear (GntTextView *view
);
Clear the contents of the textview.
int
gnt_text_view_get_lines_below (GntTextView *view
);
The number of lines below the bottom-most visible line.
int
gnt_text_view_get_lines_above (GntTextView *view
);
The number of lines above the topmost visible line.
int gnt_text_view_tag_change (GntTextView *view
,const char *name
,const char *text
,gboolean all
);
Change the text of a tag.
void gnt_text_view_attach_scroll_widget (GntTextView *view
,GntWidget *widget
);
Setup hooks so that pressing up/down/page-up/page-down keys when 'widget' is in focus scrolls the textview.
void gnt_text_view_attach_pager_widget (GntTextView *view
,GntWidget *pager
);
Setup appropriate hooks so that pressing some keys when the 'pager' widget is in focus triggers the PAGER to popup with the contents of the textview in it.
The default key-combination to trigger the pager is a-v, and the default PAGER application is $PAGER. Both can be changed in ~/.gntrc like this:
[pager] key = a-v path = /path/to/pager
void gnt_text_view_attach_editor_widget (GntTextView *view
,GntWidget *widget
);
Setup appropriate hooks so that pressing some keys when 'widget' is in focus triggers the EDITOR to popup with the contents of the textview in it.
The default key-combination to trigger the pager is a-e, and the default EDITOR application is $EDITOR. Both can be changed in ~/.gntrc like this:
[editor] key = a-e path = /path/to/editor
void gnt_text_view_set_flag (GntTextView *view
,GntTextViewFlag flag
);
Set a GntTextViewFlag for the textview widget.
Since: 2.1.0
struct GntTextView { GntWidget parent; GString *GNTSEAL(string); /* Deprecated. Use gnt_text_view_get_text. */ GList *GNTSEAL(list); /* List of GntTextLine */ GList *GNTSEAL(tags); /* A list of tags */ GntTextViewFlag GNTSEAL(flags); };
Access to any fields is deprecated. See inline comments for replacements.