Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > f48941b2df41f17d4c9519d16b753438 > files > 388

ClanLib06-devel-0.6.5-16.fc13.x86_64.rpm


<html>
<head><title>ClanLib Reference: CL_ListBox</title></head>
<body text=black link=blue vlink=#800080 bgcolor=white topmargin=0 leftmargin=0>
<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td><img border=0 src="../images/eyeheader-main-purple-a.gif" alt="ClanSoft logo" width=525 height=96></td></tr>
<tr bgcolor=#dadada><td align=left valign=top><img border=0 src="../images/eyeheader-main-purple-b.gif" alt="ClanSoft logo" width=190 height=14></td><td align=right valign=top><img border=0 src="../images/clanlib_light.gif" width=42 height=14></td></tr></table>
<table align=center border=0 cellspacing=10> <tr>
<td><a href="entire_class_index.html">Entire Class Index</a></td>
<td><a href="class_index.html">Main Class Index</a></td>
<td><a href="cross_index.html">Cross Index</a></td>
<td><a href="global_index.html">Global Index</a></td>
</table><h1 align=center>Class CL_ListBox</h1><p>
<b>  Listbox component</b><br>
Contained in: <a href="global_index.html">global</a><br>
Derived from:
<a href="CL_Component.html">CL_Component</a>
<br>
Derived by:
<i>none</i>
<br>Group: GUI (Controls)
<p>
#include &lt;ClanLib/gui.h&gt;
<p>
<hr noshade>
<table border=0>
<tr><td colspan=3><h3>public function member index:</h3></td>
<tr valign=top><td align=left><h3>Construction:</h3></td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_ListBox.html#2897"><tt><font color=blue><b>CL_ListBox</b></font></tt></a></td><td><tt>(<a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_ListBox.html#2898"><tt><font color=blue><b>CL_ListBox</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_ListBox.html#2899"><tt><font color=blue><b>CL_ListBox</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>max_visible_items</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="CL_ListBox.html#2900"><tt><font color=blue><b>~CL_ListBox</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=left><h3>Attributes:</h3></td>
<tr valign=top><td align=right><tt><a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>*</tt> </td><td align=right><a href="CL_ListBox.html#2901"><tt><font color=blue><b>get_client_area</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2902"><tt><font color=blue><b>get_count</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>std::vector</font></tt><<a href="CL_ListItem.html"><tt><font color=navy><b>CL_ListItem</b></font></tt></a>>&</tt> </td><td align=right><a href="CL_ListBox.html#2903"><tt><font color=blue><b>get_items</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>std::vector</font></tt><<tt><font color=navy>std::string</font></tt>></tt> </td><td align=right><a href="CL_ListBox.html#2904"><tt><font color=blue><b>get_selected_items</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> </td><td align=right><a href="CL_ListBox.html#2905"><tt><font color=blue><b>get_current_text</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> </td><td align=right><a href="CL_ListBox.html#2906"><tt><font color=blue><b>get_text</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2907"><tt><font color=blue><b>get_current_item</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2908"><tt><font color=blue><b>is_selected</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2909"><tt><font color=blue><b>is_multi_selection</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2910"><tt><font color=blue><b>get_item_height</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2911"><tt><font color=blue><b>get_top_item</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2912"><tt><font color=blue><b>get_max_visible_items</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2913"><tt><font color=blue><b>has_scrollbar</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=left><h3>Operations:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2914"><tt><font color=blue><b>insert_item</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt> = -1)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2915"><tt><font color=blue><b>remove_item</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2916"><tt><font color=blue><b>change_item</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2917"><tt><font color=blue><b>set_current_item</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2918"><tt><font color=blue><b>set_selected</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>select</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2919"><tt><font color=blue><b>clear_selection</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2920"><tt><font color=blue><b>select_all</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>select</font></tt> = true)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2921"><tt><font color=blue><b>invert_selection</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2922"><tt><font color=blue><b>set_multi_selection</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt> = true)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2923"><tt><font color=blue><b>set_item_height</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>height</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2924"><tt><font color=blue><b>set_max_visible_items</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>count</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2925"><tt><font color=blue><b>set_top_item</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2926"><tt><font color=blue><b>sort</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>ascending</font></tt> = true)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_ListBox.html#2927"><tt><font color=blue><b>clear</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=left><h3>Signals:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt><font color=purple>int</font></tt>>&</tt> </td><td align=right><a href="CL_ListBox.html#2928"><tt><font color=blue><b>sig_highlighted</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt><font color=purple>int</font></tt>>&</tt> </td><td align=right><a href="CL_ListBox.html#2929"><tt><font color=blue><b>sig_activated</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> </td><td align=right><a href="CL_ListBox.html#2930"><tt><font color=blue><b>sig_selection_changed</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td><tr><td colspan=3><h3>private function member index:</h3></td>
<tr valign=top><td align=left><h3>Implementation:</h3></td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_ListBox.html#2931"><tt><font color=blue><b>CL_ListBox</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_ListBox.html#2931"><tt><font color=blue><b>CL_ListBox</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="2897"><font size=+1><b>CL_ListBox::CL_ListBox</b></font></a> -   Listbox constructor<br><tt></tt> <a href="CL_ListBox.html#2897"><tt><font color=blue><b>CL_ListBox</b></font></tt></a><tt>(<a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2898"><font size=+1><b>CL_ListBox::CL_ListBox</b></font></a> -   Listbox constructor<br><tt></tt> <a href="CL_ListBox.html#2898"><tt><font color=blue><b>CL_ListBox</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2899"><font size=+1><b>CL_ListBox::CL_ListBox</b></font></a> -   Creates a listbox with max_visible_items visible. It auto-calculates  the height of the listbox.<br><tt></tt> <a href="CL_ListBox.html#2899"><tt><font color=blue><b>CL_ListBox</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>max_visible_items</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2916"><font size=+1><b>CL_ListBox::change_item</b></font></a> -   Replaces the item at position index with text. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2916"><tt><font color=blue><b>change_item</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2927"><font size=+1><b>CL_ListBox::clear</b></font></a> -   Deletes all items in the list. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2927"><tt><font color=blue><b>clear</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2919"><font size=+1><b>CL_ListBox::clear_selection</b></font></a> -   Deselects current selected item.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2919"><tt><font color=blue><b>clear_selection</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2901"><font size=+1><b>CL_ListBox::get_client_area</b></font></a> -   Returns the client area of the component.<br><tt><a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>*</tt> <a href="CL_ListBox.html#2901"><tt><font color=blue><b>get_client_area</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2902"><font size=+1><b>CL_ListBox::get_count</b></font></a> -   Returns the number of items in the list box. <br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_ListBox.html#2902"><tt><font color=blue><b>get_count</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2907"><font size=+1><b>CL_ListBox::get_current_item</b></font></a> -   Returns the index of the current item of the listbox, or -1 if no item has been selected. <br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_ListBox.html#2907"><tt><font color=blue><b>get_current_item</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2905"><font size=+1><b>CL_ListBox::get_current_text</b></font></a> -   Returns the text of the current item.<br><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> <a href="CL_ListBox.html#2905"><tt><font color=blue><b>get_current_text</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2910"><font size=+1><b>CL_ListBox::get_item_height</b></font></a> -   Returns the height of one item.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_ListBox.html#2910"><tt><font color=blue><b>get_item_height</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2903"><font size=+1><b>CL_ListBox::get_items</b></font></a> -   Returns all items in the list.<br><tt><tt><font color=navy>std::vector</font></tt><<a href="CL_ListItem.html"><tt><font color=navy><b>CL_ListItem</b></font></tt></a>>&</tt> <a href="CL_ListBox.html#2903"><tt><font color=blue><b>get_items</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2912"><font size=+1><b>CL_ListBox::get_max_visible_items</b></font></a> -   Returns number of items maximum visible in listbox (without scrolling)<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_ListBox.html#2912"><tt><font color=blue><b>get_max_visible_items</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2904"><font size=+1><b>CL_ListBox::get_selected_items</b></font></a> -   Returns all selected  items.<br><tt><tt><font color=navy>std::vector</font></tt><<tt><font color=navy>std::string</font></tt>></tt> <a href="CL_ListBox.html#2904"><tt><font color=blue><b>get_selected_items</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2906"><font size=+1><b>CL_ListBox::get_text</b></font></a> -   Returns the text at position index.<br><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> <a href="CL_ListBox.html#2906"><tt><font color=blue><b>get_text</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>) <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2911"><font size=+1><b>CL_ListBox::get_top_item</b></font></a> -   Returns the index of the item at the top of the screen.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_ListBox.html#2911"><tt><font color=blue><b>get_top_item</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2913"><font size=+1><b>CL_ListBox::has_scrollbar</b></font></a> -   Returns true if a scrollbar is visible in the listbox.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_ListBox.html#2913"><tt><font color=blue><b>has_scrollbar</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2914"><font size=+1><b>CL_ListBox::insert_item</b></font></a> -   Inserts text into the list at index. <br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_ListBox.html#2914"><tt><font color=blue><b>insert_item</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt> = -1)</tt>;<br><blockquote>  If index is negative, text is inserted at the end of the list.<br>  Returns the index of the text</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2921"><font size=+1><b>CL_ListBox::invert_selection</b></font></a> -   Inverts the selection.<br>  Works only in Multi selection mode.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2921"><tt><font color=blue><b>invert_selection</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2909"><font size=+1><b>CL_ListBox::is_multi_selection</b></font></a> -   Returns true if the listbox is in multiselection mode.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_ListBox.html#2909"><tt><font color=blue><b>is_multi_selection</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2908"><font size=+1><b>CL_ListBox::is_selected</b></font></a> -   Returns true if item index is selected. Returns false if it is not selected or if there is an error.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_ListBox.html#2908"><tt><font color=blue><b>is_selected</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>) <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2915"><font size=+1><b>CL_ListBox::remove_item</b></font></a> -   Removes and deletes the item at position index.<br>  If index is equal to get_current_item(), a new item gets highlighted and the sig_highlighted() signal is emitted. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2915"><tt><font color=blue><b>remove_item</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2920"><font size=+1><b>CL_ListBox::select_all</b></font></a> -   If select is true, all items get selected, else all get unselected.<br>  This works only in Multi selection mode.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2920"><tt><font color=blue><b>select_all</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>select</font></tt> = true)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2917"><font size=+1><b>CL_ListBox::set_current_item</b></font></a> -   Sets the highlighted item to the item index.<br>  The highlighting is moved and the listbox scrolled as necessary. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2917"><tt><font color=blue><b>set_current_item</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2923"><font size=+1><b>CL_ListBox::set_item_height</b></font></a> -   Sets the height of each item.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2923"><tt><font color=blue><b>set_item_height</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>height</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2924"><font size=+1><b>CL_ListBox::set_max_visible_items</b></font></a> -   Sets the number of items maximum visible in listbox (without scrolling)<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2924"><tt><font color=blue><b>set_max_visible_items</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>count</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2922"><font size=+1><b>CL_ListBox::set_multi_selection</b></font></a> -   Sets the listbox to multiselection if enable is true,<br>  single selection otherwise.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2922"><tt><font color=blue><b>set_multi_selection</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt> = true)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2918"><font size=+1><b>CL_ListBox::set_selected</b></font></a> -   Selects item at index if select is true, or unselects it if select is false.<br>  If the listbox is a single-selection listbox and and select is true, set_current_item() is called. <br>  If the listbox is a single-selection listbox and and select is false, clear_selection()<br>  is called if index is the currently selected item. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2918"><tt><font color=blue><b>set_selected</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>select</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2925"><font size=+1><b>CL_ListBox::set_top_item</b></font></a> -   Scrolls the list box so the item at position index in the list is displayed in the top row of the listbox. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2925"><tt><font color=blue><b>set_top_item</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>index</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2929"><font size=+1><b>CL_ListBox::sig_activated</b></font></a> -   This signal is emitted when the user clicks on an item or presses return when an item is highlighted.<br>  The argument is the index of the selected item. <br><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt><font color=purple>int</font></tt>>&</tt> <a href="CL_ListBox.html#2929"><tt><font color=blue><b>sig_activated</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2928"><font size=+1><b>CL_ListBox::sig_highlighted</b></font></a> -   This signal is emitted when the user highlights a new current item.<br>  The argument is the index of the new item, which is already current. <br><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt><font color=purple>int</font></tt>>&</tt> <a href="CL_ListBox.html#2928"><tt><font color=blue><b>sig_highlighted</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2930"><font size=+1><b>CL_ListBox::sig_selection_changed</b></font></a> -   This signal is emitted when the selection set of a listbox changes.<br><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> <a href="CL_ListBox.html#2930"><tt><font color=blue><b>sig_selection_changed</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2926"><font size=+1><b>CL_ListBox::sort</b></font></a> -   Sorts the items in ascending order, if ascending is true, or descending otherwise. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_ListBox.html#2926"><tt><font color=blue><b>sort</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>ascending</font></tt> = true)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2900"><font size=+1><b>CL_ListBox::~CL_ListBox</b></font></a> -   Listbox destructor<br><tt><tt>virtual</tt> </tt> <a href="CL_ListBox.html#2900"><tt><font color=blue><b>~CL_ListBox</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<hr noshade>
<h2>Variable Member Descriptions:</h2>
<hr noshade>
</body>
</html>