1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>InfTextGtkViewport</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
<link rel="home" href="index.html" title="libinftextgtk-0.5 Reference Manual">
8
<link rel="up" href="ch01.html" title="libinftextgtk API">
9
<link rel="prev" href="InfTextGtkView.html" title="InfTextGtkView">
10
<link rel="next" href="InfTextGtkHueChooser.html" title="InfTextGtkHueChooser">
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="InfTextGtkView.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">libinftextgtk-0.5 Reference Manual</th>
21
<td><a accesskey="n" href="InfTextGtkHueChooser.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#InfTextGtkViewport.synopsis" class="shortcut">Top</a>
26
<a href="#InfTextGtkViewport.description" class="shortcut">Description</a>
28
<a href="#InfTextGtkViewport.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#InfTextGtkViewport.properties" class="shortcut">Properties</a>
33
<div class="refentry">
34
<a name="InfTextGtkViewport"></a><div class="titlepage"></div>
35
<div class="refnamediv"><table width="100%"><tr>
37
<h2><span class="refentrytitle"><a name="InfTextGtkViewport.top_of_page"></a>InfTextGtkViewport</span></h2>
38
<p>InfTextGtkViewport</p>
40
<td valign="top" align="right"></td>
42
<div class="refsynopsisdiv">
43
<a name="InfTextGtkViewport.synopsis"></a><h2>Synopsis</h2>
44
<pre class="synopsis"> <a class="link" href="InfTextGtkViewport.html#InfTextGtkViewport-struct" title="InfTextGtkViewport">InfTextGtkViewport</a>;
45
<a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="returnvalue">InfTextGtkViewport</span></a> * <a class="link" href="InfTextGtkViewport.html#inf-text-gtk-viewport-new" title="inf_text_gtk_viewport_new ()">inf_text_gtk_viewport_new</a> (<em class="parameter"><code><span class="type">GtkScrolledWindow</span> *scroll</code></em>,
46
<em class="parameter"><code><a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="type">InfUserTable</span></a> *user_table</code></em>);
47
<span class="returnvalue">GtkScrolledWindow</span> * <a class="link" href="InfTextGtkViewport.html#inf-text-gtk-viewport-get-scrolled-window" title="inf_text_gtk_viewport_get_scrolled_window ()">inf_text_gtk_viewport_get_scrolled_window</a>
48
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>);
49
<a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="returnvalue">InfUserTable</span></a> * <a class="link" href="InfTextGtkViewport.html#inf-text-gtk-viewport-get-user-table" title="inf_text_gtk_viewport_get_user_table ()">inf_text_gtk_viewport_get_user_table</a>
50
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>);
51
<span class="returnvalue">void</span> <a class="link" href="InfTextGtkViewport.html#inf-text-gtk-viewport-set-active-user" title="inf_text_gtk_viewport_set_active_user ()">inf_text_gtk_viewport_set_active_user</a>
52
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>,
53
<em class="parameter"><code><a href="http://infinote.0x539.de/libinfinity/API/libinftext/InfTextUser.html"><span class="type">InfTextUser</span></a> *user</code></em>);
54
<a href="http://infinote.0x539.de/libinfinity/API/libinftext/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> * <a class="link" href="InfTextGtkViewport.html#inf-text-gtk-viewport-get-active-user" title="inf_text_gtk_viewport_get_active_user ()">inf_text_gtk_viewport_get_active_user</a>
55
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>);
56
<span class="returnvalue">void</span> <a class="link" href="InfTextGtkViewport.html#inf-text-gtk-viewport-set-show-user-markers" title="inf_text_gtk_viewport_set_show_user_markers ()">inf_text_gtk_viewport_set_show_user_markers</a>
57
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>,
58
<em class="parameter"><code><span class="type">gboolean</span> show</code></em>);
61
<div class="refsect1">
62
<a name="InfTextGtkViewport.object-hierarchy"></a><h2>Object Hierarchy</h2>
63
<pre class="synopsis">
65
+----InfTextGtkViewport
68
<div class="refsect1">
69
<a name="InfTextGtkViewport.properties"></a><h2>Properties</h2>
70
<pre class="synopsis">
71
"<a class="link" href="InfTextGtkViewport.html#InfTextGtkViewport--active-user" title='The "active-user" property'>active-user</a>" <a href="http://infinote.0x539.de/libinfinity/API/libinftext/InfTextUser.html"><span class="type">InfTextUser</span></a>* : Read / Write
72
"<a class="link" href="InfTextGtkViewport.html#InfTextGtkViewport--scrolled-window" title='The "scrolled-window" property'>scrolled-window</a>" <span class="type">GtkScrolledWindow</span>* : Read / Write / Construct Only
73
"<a class="link" href="InfTextGtkViewport.html#InfTextGtkViewport--show-user-markers" title='The "show-user-markers" property'>show-user-markers</a>" <span class="type">gboolean</span> : Read / Write
74
"<a class="link" href="InfTextGtkViewport.html#InfTextGtkViewport--user-table" title='The "user-table" property'>user-table</a>" <a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="type">InfUserTable</span></a>* : Read / Write / Construct Only
77
<div class="refsect1">
78
<a name="InfTextGtkViewport.description"></a><h2>Description</h2>
82
<div class="refsect1">
83
<a name="InfTextGtkViewport.details"></a><h2>Details</h2>
84
<div class="refsect2">
85
<a name="InfTextGtkViewport-struct"></a><h3>InfTextGtkViewport</h3>
86
<pre class="programlisting">typedef struct _InfTextGtkViewport InfTextGtkViewport;</pre>
91
<div class="refsect2">
92
<a name="inf-text-gtk-viewport-new"></a><h3>inf_text_gtk_viewport_new ()</h3>
93
<pre class="programlisting"><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="returnvalue">InfTextGtkViewport</span></a> * inf_text_gtk_viewport_new (<em class="parameter"><code><span class="type">GtkScrolledWindow</span> *scroll</code></em>,
94
<em class="parameter"><code><a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="type">InfUserTable</span></a> *user_table</code></em>);</pre>
96
Creates a new <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> for <em class="parameter"><code>scroll</code></em>. This draws the position of
97
remote user's cursors into the scrollbars of <em class="parameter"><code>scroll</code></em>.
99
<div class="variablelist"><table border="0">
100
<col align="left" valign="top">
103
<td><p><span class="term"><em class="parameter"><code>scroll</code></em> :</span></p></td>
104
<td>A <span class="type">GtkScrolledWindow</span>.</td>
107
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
108
<td>The <a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="type">InfUserTable</span></a> for the text session displayed in <em class="parameter"><code>viewport</code></em>.</td>
111
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
112
<td>A new <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>.</td>
118
<div class="refsect2">
119
<a name="inf-text-gtk-viewport-get-scrolled-window"></a><h3>inf_text_gtk_viewport_get_scrolled_window ()</h3>
120
<pre class="programlisting"><span class="returnvalue">GtkScrolledWindow</span> * inf_text_gtk_viewport_get_scrolled_window
121
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>);</pre>
123
Returns the underlying <span class="type">GtkScrolledWindow</span>.
125
<div class="variablelist"><table border="0">
126
<col align="left" valign="top">
129
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
130
<td>A <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>.</td>
133
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
134
<td>The <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>'s <span class="type">GtkScrolledWindow</span>.</td>
140
<div class="refsect2">
141
<a name="inf-text-gtk-viewport-get-user-table"></a><h3>inf_text_gtk_viewport_get_user_table ()</h3>
142
<pre class="programlisting"><a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="returnvalue">InfUserTable</span></a> * inf_text_gtk_viewport_get_user_table
143
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>);</pre>
145
Returns the <a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="type">InfUserTable</span></a> containing the users of the session the
146
<a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>'s <span class="type">GtkScrolledWindow</span> is displaying.
148
<div class="variablelist"><table border="0">
149
<col align="left" valign="top">
152
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
153
<td>A <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>.</td>
156
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
157
<td>The <span class="type">InfGtkTextViewport</span>'s <a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="type">InfUserTable</span></a>.</td>
163
<div class="refsect2">
164
<a name="inf-text-gtk-viewport-set-active-user"></a><h3>inf_text_gtk_viewport_set_active_user ()</h3>
165
<pre class="programlisting"><span class="returnvalue">void</span> inf_text_gtk_viewport_set_active_user
166
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>,
167
<em class="parameter"><code><a href="http://infinote.0x539.de/libinfinity/API/libinftext/InfTextUser.html"><span class="type">InfTextUser</span></a> *user</code></em>);</pre>
169
Sets the user for which perspective to draw the viewport. The cursor
170
position for teh active user is not draws since it is assumed that the
171
viewport's "real" scrollbars match the active user's position.
173
<div class="variablelist"><table border="0">
174
<col align="left" valign="top">
177
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
178
<td>A <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>.</td>
181
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
182
<td>A user from <em class="parameter"><code>viewport</code></em>'s user table, or <code class="literal">NULL</code>.</td>
188
<div class="refsect2">
189
<a name="inf-text-gtk-viewport-get-active-user"></a><h3>inf_text_gtk_viewport_get_active_user ()</h3>
190
<pre class="programlisting"><a href="http://infinote.0x539.de/libinfinity/API/libinftext/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> * inf_text_gtk_viewport_get_active_user
191
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>);</pre>
193
Returns the active user of <em class="parameter"><code>viewport</code></em>. See
194
<a class="link" href="InfTextGtkViewport.html#inf-text-gtk-viewport-set-active-user" title="inf_text_gtk_viewport_set_active_user ()"><code class="function">inf_text_gtk_viewport_set_active_user()</code></a>.
196
<div class="variablelist"><table border="0">
197
<col align="left" valign="top">
200
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
201
<td>A <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>.</td>
204
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
205
<td>The active user of <em class="parameter"><code>viewport</code></em>.</td>
211
<div class="refsect2">
212
<a name="inf-text-gtk-viewport-set-show-user-markers"></a><h3>inf_text_gtk_viewport_set_show_user_markers ()</h3>
213
<pre class="programlisting"><span class="returnvalue">void</span> inf_text_gtk_viewport_set_show_user_markers
214
(<em class="parameter"><code><a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a> *viewport</code></em>,
215
<em class="parameter"><code><span class="type">gboolean</span> show</code></em>);</pre>
217
If <em class="parameter"><code>show</code></em> is <code class="literal">TRUE</code> then draw a marker indicating the cursor position of all
218
non-local users with status <code class="literal">INF_USER_ACTIVE</code> in the scrollbar of the
219
scrolled window. If <em class="parameter"><code>show</code></em> is <code class="literal">FALSE</code> then do not draw user markers into the
222
<div class="variablelist"><table border="0">
223
<col align="left" valign="top">
226
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
227
<td>A <a class="link" href="InfTextGtkViewport.html" title="InfTextGtkViewport"><span class="type">InfTextGtkViewport</span></a>.</td>
230
<td><p><span class="term"><em class="parameter"><code>show</code></em> :</span></p></td>
231
<td>Whether to show the position of non-local users.</td>
237
<div class="refsect1">
238
<a name="InfTextGtkViewport.property-details"></a><h2>Property Details</h2>
239
<div class="refsect2">
240
<a name="InfTextGtkViewport--active-user"></a><h3>The <code class="literal">"active-user"</code> property</h3>
241
<pre class="programlisting"> "active-user" <a href="http://infinote.0x539.de/libinfinity/API/libinftext/InfTextUser.html"><span class="type">InfTextUser</span></a>* : Read / Write</pre>
242
<p>The user for which to show the viewport.</p>
245
<div class="refsect2">
246
<a name="InfTextGtkViewport--scrolled-window"></a><h3>The <code class="literal">"scrolled-window"</code> property</h3>
247
<pre class="programlisting"> "scrolled-window" <span class="type">GtkScrolledWindow</span>* : Read / Write / Construct Only</pre>
248
<p>The underlying GtkScrolledWindow.</p>
251
<div class="refsect2">
252
<a name="InfTextGtkViewport--show-user-markers"></a><h3>The <code class="literal">"show-user-markers"</code> property</h3>
253
<pre class="programlisting"> "show-user-markers" <span class="type">gboolean</span> : Read / Write</pre>
254
<p>Whether to indicate the position of non-local user's cursors in the scrollbar.</p>
255
<p>Default value: TRUE</p>
258
<div class="refsect2">
259
<a name="InfTextGtkViewport--user-table"></a><h3>The <code class="literal">"user-table"</code> property</h3>
260
<pre class="programlisting"> "user-table" <a href="http://infinote.0x539.de/libinfinity/API/libinfinity/InfUserTable.html"><span class="type">InfUserTable</span></a>* : Read / Write / Construct Only</pre>
261
<p>The user table containing the users of the session shown in the viewport.</p>
267
Generated by GTK-Doc V1.17</div>
b'\\ No newline at end of file'