Top | ![]() |
![]() |
![]() |
![]() |
InfTextUser * | active-user | Read / Write |
InfIo * | io | Read / Write / Construct Only |
gboolean | show-remote-current-lines | Read / Write |
gboolean | show-remote-cursors | Read / Write |
gboolean | show-remote-selections | Read / Write |
InfUserTable * | user-table | Read / Write / Construct Only |
GtkTextView * | view | Read / Write / Construct Only |
InfTextGtkView * inf_text_gtk_view_new (InfIo *io
,GtkTextView *view
,InfUserTable *user_table
);
Creates a new InfTextGtkView for view
. This draws remote user's cursors
and selections into the text view.
io |
A InfIo. |
|
view |
A GtkTextView. |
|
user_table |
The InfUserTable for the text session displayed in |
GtkTextView *
inf_text_gtk_view_get_text_view (InfTextGtkView *view
);
Returns the underlying GtkTextView.
InfUserTable *
inf_text_gtk_view_get_user_table (InfTextGtkView *view
);
Returns the InfUserTable containing the users of the session the InfTextGtkView's GtkTextView is displaying.
void inf_text_gtk_view_set_active_user (InfTextGtkView *view
,InfTextUser *user
);
Sets the user for which perspective to draw the view. The selection and cursor position is not drawn for this user since it is assumed that the view's buffer cursor position and selection match the active user ones (which is automatically the case if the buffer is managed by a InfTextGtkBuffer).
InfTextUser *
inf_text_gtk_view_get_active_user (InfTextGtkView *view
);
Returns the active user of view
. See inf_text_gtk_view_set_active_user()
.
void inf_text_gtk_view_set_show_remote_cursors (InfTextGtkView *view
,gboolean show
);
If show
is TRUE
then view
draws a cursor for each non-local user in
INF_USER_ACTIVE
status in that user's color into its underlying
GtkTextView. If it is FALSE
then remote cursors are not drawn.
void inf_text_gtk_view_set_show_remote_selections (InfTextGtkView *view
,gboolean show
);
If show
is TRUE
then view
draws the selection ranges for each non-local
user in INF_USER_ACTIVE
status. The selection range is drawn shaded in
that user's color on top of the author color which indicates who wrote the
selected text. If more than one user has a given piece of text selected
then an alternating stripe pattern with each of the user's colors is drawn.
If show
is FALES
then selection ranges of remote users are not drawn.
void inf_text_gtk_view_set_show_remote_current_lines (InfTextGtkView *view
,gboolean show
);
If show
is TRUE
then all lines in which the cursor of a non-local user
in INF_USER_ACTIVE
status is is highlighted with that user's color, similar
to GtkSourceView's "highlight current line" functionality. If it is FALSE
then the current line of non-local users is not be highlighted.
“active-user”
property“active-user” InfTextUser *
The user for which to show the view.
Flags: Read / Write
“io”
property“io” InfIo *
The IO object to schedule timeouts.
Flags: Read / Write / Construct Only
“show-remote-current-lines”
property “show-remote-current-lines” gboolean
Whether to highlight the line in which the cursor of non-local users is.
Flags: Read / Write
Default value: TRUE
“show-remote-cursors”
property “show-remote-cursors” gboolean
Whether to show cursors of non-local users.
Flags: Read / Write
Default value: TRUE
“show-remote-selections”
property “show-remote-selections” gboolean
Whether to highlight text selected by non-local users.
Flags: Read / Write
Default value: TRUE
“user-table”
property“user-table” InfUserTable *
The user table containing the users of the session shown in the view.
Flags: Read / Write / Construct Only