syndilights/blib-1.1.7/docs/reference/html/BViewGtk.html

73 lines
5.7 KiB
HTML
Raw Blame History

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>BViewGtk</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="BLib Reference Manual"><link rel="up" href="blib-sim.html" title="Blinkenlights Simulation"><link rel="previous" href="BViewPixbuf.html" title="BViewPixbuf"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css">
.synopsis, .classsynopsis {
background: #eeeeee;
border: solid 1px #aaaaaa;
padding: 0.5em;
}
.programlisting {
background: #eeeeff;
border: solid 1px #aaaaff;
padding: 0.5em;
}
.variablelist {
padding: 4px;
margin-left: 3em;
}
.navigation {
background: #ffeeee;
border: solid 1px #ffaaaa;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.navigation a {
color: #770000;
}
.navigation a:visited {
color: #550000;
}
.navigation .title {
font-size: 200%;
}
</style></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="BViewPixbuf.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="blib-sim.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">BLib Reference Manual</th></tr></table><div class="refentry" lang="en"><a name="BViewGtk"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">BViewGtk</span></h2><p>BViewGtk &#8212; a GTK+ widget to display Blinkenlights</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
struct <a href="BViewGtk.html#BViewGtk-struct">BViewGtk</a>;
GtkWidget* <a href="BViewGtk.html#b-view-gtk-new">b_view_gtk_new</a> (<a href="BTheme.html" title="BTheme">BTheme</a> *theme,
GError **error);
void <a href="BViewGtk.html#b-view-gtk-update">b_view_gtk_update</a> (<a href="BViewGtk.html" title="BViewGtk">BViewGtk</a> *view,
const guchar *frame_data);
</pre></div><div class="refsect1" lang="en"><a name="id2576402"></a><h2>Object Hierarchy</h2><pre class="synopsis">
GObject
+----GtkObject
+----GtkWidget
+----GtkDrawingArea
+----BViewGtk
</pre></div><div class="refsect1" lang="en"><a name="id2576432"></a><h2>Implemented Interfaces</h2><p>
BViewGtk implements AtkImplementorIface.
</p></div><div class="refsect1" lang="en"><a name="id2576447"></a><h2>Description</h2><p>
</p></div><div class="refsect1" lang="en"><a name="id2576456"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2576462"></a><h3><a name="BViewGtk-struct"></a>struct BViewGtk</h3><pre class="programlisting">struct BViewGtk;</pre><p>
The <a href="BViewGtk.html" title="BViewGtk">BViewGtk</a> struct shouldn't be accessed directly. Its members are
considered private.
</p></div><hr><div class="refsect2" lang="en"><a name="id2576483"></a><h3><a name="b-view-gtk-new"></a>b_view_gtk_new ()</h3><pre class="programlisting">GtkWidget* b_view_gtk_new (<a href="BTheme.html" title="BTheme">BTheme</a> *theme,
GError **error);</pre><p>
Creates a new widget suitable to display Blinkenlights movies that
fit the <i class="parameter"><tt>theme</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>theme</tt></i><EFBFBD>:</span></td><td> a <a href="BTheme.html" title="BTheme">BTheme</a> object
</td></tr><tr><td><span class="term"><i class="parameter"><tt>error</tt></i><EFBFBD>:</span></td><td> location to store the error occuring, or <tt class="literal">NULL</tt> to ignore errors
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a new widget or <tt class="literal">NULL</tt> in case of an error
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2547388"></a><h3><a name="b-view-gtk-update"></a>b_view_gtk_update ()</h3><pre class="programlisting">void b_view_gtk_update (<a href="BViewGtk.html" title="BViewGtk">BViewGtk</a> *view,
const guchar *frame_data);</pre><p>
Displays a new frame on the <i class="parameter"><tt>view</tt></i>. The <i class="parameter"><tt>view</tt></i> expects <i class="parameter"><tt>frame_data</tt></i>
in the range of 0 to 255.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>view</tt></i><EFBFBD>:</span></td><td> a <a href="BViewGtk.html" title="BViewGtk">BViewGtk</a> widget
</td></tr><tr><td><span class="term"><i class="parameter"><tt>frame_data</tt></i><EFBFBD>:</span></td><td> the frame data to display
</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2575592"></a><h2>See Also</h2><p>
BViewDirectFB
</p></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="BViewPixbuf.html"><b>&lt;&lt;<EFBFBD>BViewPixbuf</b></a></td><td align="right"></td></tr></table></body></html>