Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 0be7620be6a1578fbd49765844864a01 > files > 43

ocaml-lablgtk2-doc-2.14.0-2mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="Start" href="index.html">
<link rel="previous" href="GPack.html">
<link rel="next" href="GText.html">
<link rel="Up" href="index.html">
<title>LablGTK : GButton</title>
</head>
<body>
<div class="navbar"><a href="GPack.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="GText.html">Next</a>
</div>
<center><h1>Module <a href="type_GButton.html">GButton</a></h1></center>
<br>
<pre><span class="keyword">module</span> GButton: <code class="code">sig</code> <a href="GButton.html">..</a> <code class="code">end</code></pre>A widget that creates a signal when clicked on<br>
<hr width="100%">
<br>
A widget that creates a signal when clicked on<br>
<br>
<a name="3_GtkButton"></a>
<h3>GtkButton</h3><br>
<pre><span class="keyword">class</span> <a name="TYPEbutton_skel"></a><a href="GButton.button_skel.html">button_skel</a> : <code class="type">[> <a href="Gtk.html#TYPEbutton">Gtk.button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.button_skel.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEbutton_signals"></a><a href="GButton.button_signals.html">button_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEbutton">Gtk.button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.button_signals.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEbutton"></a><a href="GButton.button.html">button</a> : <code class="type"><a href="Gtk.html#TYPEbutton">Gtk.button</a> <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.button.html">..</a> <code class="code">end</code></pre><div class="info">
A widget that creates a signal when clicked on
</div>
<br><pre><span class="keyword">val</span> <a name="VALbutton"></a>button : <code class="type">?label:string -><br>       ?use_mnemonic:bool -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?relief:<a href="Gtk.Tags.html#TYPErelief_style">Gtk.Tags.relief_style</a> -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.button.html">button</a></code></pre><div class="info">
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkButton.html">GtkButton</a></small></div>
<br>
<a name="4_GtkToggleButtonGtkRadioButton"></a>
<h4>GtkToggleButton &amp; GtkRadioButton</h4><br>
<pre><span class="keyword">class</span> <a name="TYPEtoggle_button_signals"></a><a href="GButton.toggle_button_signals.html">toggle_button_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEtoggle_button">Gtk.toggle_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.toggle_button_signals.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEtoggle_button"></a><a href="GButton.toggle_button.html">toggle_button</a> : <code class="type">[> <a href="Gtk.html#TYPEtoggle_button">Gtk.toggle_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.toggle_button.html">..</a> <code class="code">end</code></pre><div class="info">
Create buttons which retain their state
</div>
<br><pre><span class="keyword">val</span> <a name="VALtoggle_button"></a>toggle_button : <code class="type">?label:string -><br>       ?use_mnemonic:bool -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?relief:<a href="Gtk.Tags.html#TYPErelief_style">Gtk.Tags.relief_style</a> -><br>       ?active:bool -><br>       ?draw_indicator:bool -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.toggle_button.html">toggle_button</a></code></pre><div class="info">
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkToggleButton.html">GtkToggleButton</a></small></div>
<pre><span class="keyword">val</span> <a name="VALcheck_button"></a>check_button : <code class="type">?label:string -><br>       ?use_mnemonic:bool -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?relief:<a href="Gtk.Tags.html#TYPErelief_style">Gtk.Tags.relief_style</a> -><br>       ?active:bool -><br>       ?draw_indicator:bool -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.toggle_button.html">toggle_button</a></code></pre><div class="info">
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkCheckButton.html">GtkCheckButton</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPEradio_button"></a><a href="GButton.radio_button.html">radio_button</a> : <code class="type"><a href="Gtk.html#TYPEradio_button">Gtk.radio_button</a> <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.radio_button.html">..</a> <code class="code">end</code></pre><div class="info">
A choice from multiple check buttons
</div>
<br><pre><span class="keyword">val</span> <a name="VALradio_button"></a>radio_button : <code class="type">?group:<a href="Gtk.html#TYPEradio_button">Gtk.radio_button</a> <a href="Gtk.html#TYPEgroup">Gtk.group</a> -><br>       ?label:string -><br>       ?use_mnemonic:bool -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?relief:<a href="Gtk.Tags.html#TYPErelief_style">Gtk.Tags.relief_style</a> -><br>       ?active:bool -><br>       ?draw_indicator:bool -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.radio_button.html">radio_button</a></code></pre><div class="info">
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkRadioButton.html">GtkRadioButton</a></small></div>
<br>
<a name="4_GtkColorButtonGtkFontButton"></a>
<h4>GtkColorButton &amp; GtkFontButton</h4><br>
<pre><span class="keyword">class</span> <a name="TYPEcolor_button_signals"></a><a href="GButton.color_button_signals.html">color_button_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEcolor_button">Gtk.color_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.color_button_signals.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEcolor_button"></a><a href="GButton.color_button.html">color_button</a> : <code class="type">[> <a href="Gtk.html#TYPEcolor_button">Gtk.color_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.color_button.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALcolor_button"></a>color_button : <code class="type">?color:<a href="Gdk.html#TYPEcolor">Gdk.color</a> -><br>       ?title:string -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.color_button.html">color_button</a></code></pre><div class="info">
A button to launch a color selection dialog<br>
<b>Since</b> GTK 2.4<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkColorButton.html">GtkColorButton</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPEfont_button_signals"></a><a href="GButton.font_button_signals.html">font_button_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEfont_button">Gtk.font_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.font_button_signals.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEfont_button"></a><a href="GButton.font_button.html">font_button</a> : <code class="type">[> <a href="Gtk.html#TYPEfont_button">Gtk.font_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.font_button.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALfont_button"></a>font_button : <code class="type">?font_name:string -><br>       ?title:string -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.font_button.html">font_button</a></code></pre><div class="info">
A button to launch a font selection dialog<br>
<b>Since</b> GTK 2.4<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkFontButton.html">GtkFontButton</a></small></div>
<br>
<a name="3_GtkToolbar"></a>
<h3>GtkToolbar</h3><br>
<pre><span class="keyword">class type</span> <a name="TYPEtool_item_o"></a><a href="GButton.tool_item_o.html">tool_item_o</a> = <code class="code">object</code> <a href="GButton.tool_item_o.html">..</a> <code class="code">end</code></pre><pre><span class="keyword">class</span> <a name="TYPEtoolbar_signals"></a><a href="GButton.toolbar_signals.html">toolbar_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEtoolbar">Gtk.toolbar</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.toolbar_signals.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEtoolbar"></a><a href="GButton.toolbar.html">toolbar</a> : <code class="type"><a href="Gtk.html#TYPEtoolbar">Gtk.toolbar</a> <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.toolbar.html">..</a> <code class="code">end</code></pre><div class="info">
Create bars of buttons and other widgets
</div>
<br><pre><span class="keyword">val</span> <a name="VALtoolbar"></a>toolbar : <code class="type">?orientation:<a href="Gtk.Tags.html#TYPEorientation">Gtk.Tags.orientation</a> -><br>       ?style:<a href="Gtk.Tags.html#TYPEtoolbar_style">Gtk.Tags.toolbar_style</a> -><br>       ?tooltips:bool -><br>       ?border_width:int -><br>       ?width:int -><br>       ?height:int -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.toolbar.html">toolbar</a></code></pre><div class="info">
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkToolbar.html">GtkToolbar</a></small></div>
<br>
<a name="4_ToolItemsforthenewtoolbarAPI"></a>
<h4>ToolItems for the new toolbar API</h4><br>
<pre><span class="keyword">class</span> <a name="TYPEtool_item_skel"></a><a href="GButton.tool_item_skel.html">tool_item_skel</a> : <code class="type">[> <a href="Gtk.html#TYPEtool_item">Gtk.tool_item</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.tool_item_skel.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEtool_item"></a><a href="GButton.tool_item.html">tool_item</a> : <code class="type">[> <a href="Gtk.html#TYPEtool_item">Gtk.tool_item</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.tool_item.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALtool_item"></a>tool_item : <code class="type">?homogeneous:bool -><br>       ?expand:bool -><br>       ?packing:(<a href="GButton.tool_item_o.html">tool_item_o</a> -> unit) -><br>       ?show:bool -> unit -> <a href="GButton.tool_item.html">tool_item</a></code></pre><div class="info">
<b>Since</b> GTK 2.4<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkToolItem.html">GtkToolItem</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPEseparator_tool_item"></a><a href="GButton.separator_tool_item.html">separator_tool_item</a> : <code class="type">[> <a href="Gtk.html#TYPEseparator_tool_item">Gtk.separator_tool_item</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.separator_tool_item.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALseparator_tool_item"></a>separator_tool_item : <code class="type">?draw:bool -><br>       ?homogeneous:bool -><br>       ?expand:bool -><br>       ?packing:(<a href="GButton.tool_item_o.html">tool_item_o</a> -> unit) -><br>       ?show:bool -> unit -> <a href="GButton.separator_tool_item.html">separator_tool_item</a></code></pre><div class="info">
<b>Since</b> GTK 2.4<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkSeparatorToolItem.html">GtkSeparatorToolItem</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPEtool_button_signals"></a><a href="GButton.tool_button_signals.html">tool_button_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEtool_button">Gtk.tool_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.tool_button_signals.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEtool_button_skel"></a><a href="GButton.tool_button_skel.html">tool_button_skel</a> : <code class="type">[> <a href="Gtk.html#TYPEtool_button">Gtk.tool_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.tool_button_skel.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEtool_button"></a><a href="GButton.tool_button.html">tool_button</a> : <code class="type">[> <a href="Gtk.html#TYPEtool_button">Gtk.tool_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.tool_button.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALtool_button"></a>tool_button : <code class="type">?label:string -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?use_underline:bool -><br>       ?homogeneous:bool -><br>       ?expand:bool -><br>       ?packing:(<a href="GButton.tool_item_o.html">tool_item_o</a> -> unit) -><br>       ?show:bool -> unit -> <a href="GButton.tool_button.html">tool_button</a></code></pre><div class="info">
<b>Since</b> GTK 2.4<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkToolButton.html">GtkToolButton</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPEtoggle_tool_button_signals"></a><a href="GButton.toggle_tool_button_signals.html">toggle_tool_button_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEtoggle_tool_button">Gtk.toggle_tool_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.toggle_tool_button_signals.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">class</span> <a name="TYPEtoggle_tool_button"></a><a href="GButton.toggle_tool_button.html">toggle_tool_button</a> : <code class="type">[> <a href="Gtk.html#TYPEtoggle_tool_button">Gtk.toggle_tool_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.toggle_tool_button.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALtoggle_tool_button"></a>toggle_tool_button : <code class="type">?active:bool -><br>       ?label:string -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?use_underline:bool -><br>       ?homogeneous:bool -><br>       ?expand:bool -><br>       ?packing:(<a href="GButton.tool_item_o.html">tool_item_o</a> -> unit) -><br>       ?show:bool -> unit -> <a href="GButton.toggle_tool_button.html">toggle_tool_button</a></code></pre><div class="info">
<b>Since</b> GTK 2.4<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkToggleToolButton.html">GtkToggleToolButton</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPEradio_tool_button"></a><a href="GButton.radio_tool_button.html">radio_tool_button</a> : <code class="type">[> <a href="Gtk.html#TYPEradio_tool_button">Gtk.radio_tool_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.radio_tool_button.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALradio_tool_button"></a>radio_tool_button : <code class="type">?group:<a href="GButton.radio_tool_button.html">radio_tool_button</a> -><br>       ?active:bool -><br>       ?label:string -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?use_underline:bool -><br>       ?homogeneous:bool -><br>       ?expand:bool -><br>       ?packing:(<a href="GButton.tool_item_o.html">tool_item_o</a> -> unit) -><br>       ?show:bool -> unit -> <a href="GButton.radio_tool_button.html">radio_tool_button</a></code></pre><div class="info">
<b>Since</b> GTK 2.4<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkRadioToolButton.html">GtkRadioToolButton</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPEmenu_tool_button"></a><a href="GButton.menu_tool_button.html">menu_tool_button</a> : <code class="type">[> <a href="Gtk.html#TYPEmenu_tool_button">Gtk.menu_tool_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.menu_tool_button.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><pre><span class="keyword">val</span> <a name="VALmenu_tool_button"></a>menu_tool_button : <code class="type">?menu:< as_menu : <a href="Gtk.html#TYPEmenu">Gtk.menu</a> <a href="Gtk.html#TYPEobj">Gtk.obj</a>; .. > -><br>       ?label:string -><br>       ?stock:<a href="GtkStock.html#TYPEid">GtkStock.id</a> -><br>       ?use_underline:bool -><br>       ?homogeneous:bool -><br>       ?expand:bool -><br>       ?packing:(<a href="GButton.tool_item_o.html">tool_item_o</a> -> unit) -><br>       ?show:bool -> unit -> <a href="GButton.menu_tool_button.html">menu_tool_button</a></code></pre><div class="info">
<b>Since</b> GTK 2.6<br>
<small>GTK documentation:&nbsp;<a href="file:///usr/share/gtk-doc/html/gtk/GtkMenuToolButton.html">GtkMenuToolButton</a></small></div>
<pre><span class="keyword">class</span> <a name="TYPElink_button"></a><a href="GButton.link_button.html">link_button</a> : <code class="type">[> <a href="Gtk.html#TYPElink_button">Gtk.link_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GButton.link_button.html">..</a> <code class="code">end</code></pre><div class="info">
</div>
<br><br>
A button for URL<br>
<pre><span class="keyword">val</span> <a name="VALlink_button"></a>link_button : <code class="type">?label:string -><br>       string -><br>       ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GButton.link_button.html">link_button</a></code></pre></body></html>