Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 58828b263d8f56d90ac336dea07a4586 > files > 142

irrlicht-doc-1.6.1-1mdv2010.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Irrlicht Engine: IGUITabControl.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table class="irrlicht" >
  <tr valign="middle"> 
    <td><font size="2"><a class="qindex" href="index.html"><font color="#FFFFFF">Home</font></a> 
      | <a class="qindex" href="namespaces.html"><font color="#FFFFFF">Namespaces</font></a> 
      | <a class="qindex" href="hierarchy.html"><font color="#FFFFFF">Hierarchy</font></a> 
      | <a class="qindex" href="classes.html"><font color="#FFFFFF">Alphabetical 
      List</font></a> | <a class="qindex" href="annotated.html"><font color="#FFFFFF"> 
      Class list</font></a> | <a class="qindex" href="files.html"><font color="#FFFFFF">Files</font></a> 
      | <a class="qindex" href="namespacemembers.html"><font color="#FFFFFF"> 
      Namespace&nbsp;Members</font></a> | <a class="qindex" href="functions.html"><font color="#FFFFFF">Class 
      members</font></a> | <a class="qindex" href="globals.html"><font color="#FFFFFF">File 
      members</font></a> | <a class="qindex" href="pages.html"><font color="#FFFFFF">Tutorials</font></a></font> </td>
  </tr>
</table>
<!-- Generated by Doxygen 1.5.6 -->
<h1>IGUITabControl.h</h1><a href="_i_g_u_i_tab_control_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2009 Nikolaus Gebhardt</span>
<a name="l00002"></a>00002 <span class="comment">// This file is part of the "Irrlicht Engine".</span>
<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __I_GUI_TAB_CONTROL_H_INCLUDED__</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __I_GUI_TAB_CONTROL_H_INCLUDED__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="_i_g_u_i_element_8h.html">IGUIElement.h</a>"</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="_s_color_8h.html">SColor.h</a>"</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include "<a class="code" href="_i_g_u_i_skin_8h.html">IGUISkin.h</a>"</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="keyword">namespace </span>irr
<a name="l00013"></a>00013 {
<a name="l00014"></a>00014 <span class="keyword">namespace </span>gui
<a name="l00015"></a>00015 {
<a name="l00017"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html">00017</a>         <span class="keyword">class </span><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html" title="A tab, onto which other gui elements could be added.">IGUITab</a> : <span class="keyword">public</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>
<a name="l00018"></a>00018         {
<a name="l00019"></a>00019         <span class="keyword">public</span>:
<a name="l00020"></a>00020 
<a name="l00022"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#27026e3a71397700290289ea206b0b86">00022</a>                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#27026e3a71397700290289ea206b0b86" title="constructor">IGUITab</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_environment.html" title="GUI Environment. Used as factory and manager of all other GUI elements.">IGUIEnvironment</a>* environment, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* parent, <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <span class="keywordtype">id</span>, <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">core::rect&lt;s32&gt;</a> rectangle)
<a name="l00023"></a>00023                         : <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>(<a class="code" href="namespaceirr_1_1gui.html#e4d66df0ecf4117cdbcf9f22404bd2542b0de694c3f48a0fbdaf2efcd60976be" title="A tab (IGUITab).">EGUIET_TAB</a>, environment, parent, id, rectangle) {}
<a name="l00024"></a>00024 
<a name="l00026"></a>00026 
<a name="l00027"></a>00027                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#edc76f9d93782188741ace78b32634f0" title="Returns number of tab if in tabcontrol.">getNumber</a>() <span class="keyword">const</span> = 0;
<a name="l00028"></a>00028 
<a name="l00030"></a>00030                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#15aa82c853f4e72c1da37f556cd3b097" title="sets if the tab should draw its background">setDrawBackground</a>(<span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#1ef7eeaff67b8a9f4f37cacdc7e54be2" title="Draws the element and its children.">draw</a>=<span class="keyword">true</span>) = 0;
<a name="l00031"></a>00031 
<a name="l00033"></a>00033                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#ed83e8e69af7637cfd86380f6917a7de" title="sets the color of the background, if it should be drawn.">setBackgroundColor</a>(<a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">video::SColor</a> c) = 0;
<a name="l00034"></a>00034 
<a name="l00036"></a>00036                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#b357a99f63a7ecbd3da5adbc24f43e58" title="returns true if the tab is drawing its background, false if not">isDrawingBackground</a>() <span class="keyword">const</span> = 0;
<a name="l00037"></a>00037 
<a name="l00039"></a>00039                 <span class="keyword">virtual</span> <a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">video::SColor</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#b9c9bd6b40bf90482d429d9a87f7e06c" title="returns the color of the background">getBackgroundColor</a>() <span class="keyword">const</span> = 0;
<a name="l00040"></a>00040 
<a name="l00042"></a>00042                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#56f7e206931506705b3a54674d6b8603" title="sets the color of the text">setTextColor</a>(<a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">video::SColor</a> c) = 0;
<a name="l00043"></a>00043 
<a name="l00045"></a>00045                 <span class="keyword">virtual</span> <a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">video::SColor</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html#91cd857c91bbbbe9a216adadf9ea3b8f" title="gets the color of the text">getTextColor</a>() <span class="keyword">const</span> = 0;
<a name="l00046"></a>00046         };
<a name="l00047"></a>00047 
<a name="l00049"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html">00049</a>         <span class="keyword">class </span><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html" title="A standard tab control.">IGUITabControl</a> : <span class="keyword">public</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>
<a name="l00050"></a>00050         {
<a name="l00051"></a>00051         <span class="keyword">public</span>:
<a name="l00052"></a>00052 
<a name="l00054"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#01e66ddc01de0a0185407e4bd839ed31">00054</a>                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#01e66ddc01de0a0185407e4bd839ed31" title="constructor">IGUITabControl</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_environment.html" title="GUI Environment. Used as factory and manager of all other GUI elements.">IGUIEnvironment</a>* environment, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* parent, <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <span class="keywordtype">id</span>, <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">core::rect&lt;s32&gt;</a> rectangle)
<a name="l00055"></a>00055                         : <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>(<a class="code" href="namespaceirr_1_1gui.html#e4d66df0ecf4117cdbcf9f22404bd254b340ba1f6a48da14c217543804093c8f" title="A tab control.">EGUIET_TAB_CONTROL</a>, environment, parent, id, rectangle) {}
<a name="l00056"></a>00056 
<a name="l00058"></a>00058                 <span class="keyword">virtual</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html" title="A tab, onto which other gui elements could be added.">IGUITab</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#4b1a55fd79785abc4f5bcb05f8637a42" title="Adds a tab.">addTab</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* caption, <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <span class="keywordtype">id</span>=-1) = 0;
<a name="l00059"></a>00059 
<a name="l00061"></a>00061                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#9c0571f79bb538936182542562d2c520" title="Returns amount of tabs in the tabcontrol.">getTabCount</a>() <span class="keyword">const</span> = 0;
<a name="l00062"></a>00062 
<a name="l00064"></a>00064 
<a name="l00067"></a>00067                 <span class="keyword">virtual</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab.html" title="A tab, onto which other gui elements could be added.">IGUITab</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#1ce91106037c880aae15df77f42aeeda" title="Returns a tab based on zero based index.">getTab</a>(<a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> idx) <span class="keyword">const</span> = 0;
<a name="l00068"></a>00068 
<a name="l00070"></a>00070 
<a name="l00072"></a>00072                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#2a2d810ff8a79c4226831b689a4d8b3a" title="Brings a tab to front.">setActiveTab</a>(<a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> idx) = 0;
<a name="l00073"></a>00073 
<a name="l00075"></a>00075 
<a name="l00077"></a>00077                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#2a2d810ff8a79c4226831b689a4d8b3a" title="Brings a tab to front.">setActiveTab</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a> *tab) = 0;
<a name="l00078"></a>00078 
<a name="l00080"></a>00080                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#dc55d313131e214646c9f654e1319792" title="Returns which tab is currently active.">getActiveTab</a>() <span class="keyword">const</span> = 0;
<a name="l00081"></a>00081 
<a name="l00083"></a>00083                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#af32295663b656a48980ee113dd0251e" title="Set the height of the tabs.">setTabHeight</a>( <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> height ) = 0;
<a name="l00084"></a>00084 
<a name="l00086"></a>00086 
<a name="l00087"></a>00087                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#ff6b4e0bd1a4b641fd0e3c73a0500d72" title="Get the height of the tabs.">getTabHeight</a>() <span class="keyword">const</span> = 0;
<a name="l00088"></a>00088 
<a name="l00090"></a>00090                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#854b4d28fda5b9eb0ccc2f6a8c8e463c" title="set the maximal width of a tab. Per default width is 0 which means &amp;quot;no width...">setTabMaxWidth</a>(<a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> width ) = 0;
<a name="l00091"></a>00091                         
<a name="l00093"></a>00093                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#6f5c5210417d07c3f87ce2db91341f3c" title="get the maximal width of a tab">getTabMaxWidth</a>() <span class="keyword">const</span> = 0;
<a name="l00094"></a>00094                 
<a name="l00096"></a>00096 
<a name="l00097"></a>00097                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#5481d1c15605d00654c12581842ad311" title="Set the alignment of the tabs.">setTabVerticalAlignment</a>( <a class="code" href="namespaceirr_1_1gui.html#19eb5fb40e67f108cb16aba922ddaa2d">gui::EGUI_ALIGNMENT</a> alignment ) = 0;
<a name="l00098"></a>00098 
<a name="l00100"></a>00100 
<a name="l00101"></a>00101                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr_1_1gui.html#19eb5fb40e67f108cb16aba922ddaa2d">gui::EGUI_ALIGNMENT</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#3153a7dba26548eda6a8013e1e669c18" title="Get the alignment of the tabs.">getTabVerticalAlignment</a>() <span class="keyword">const</span> = 0;
<a name="l00102"></a>00102 
<a name="l00104"></a>00104                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#b73b93ca48aabf376c4b10cf42db35d7" title="Set the extra width added to tabs on each side of the text.">setTabExtraWidth</a>( <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> extraWidth ) = 0;
<a name="l00105"></a>00105 
<a name="l00107"></a>00107 
<a name="l00108"></a>00108                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_tab_control.html#faeab7a998a34ab5e8398930276ab3bd" title="Get the extra width added to tabs on each side of the text.">getTabExtraWidth</a>() <span class="keyword">const</span> = 0;
<a name="l00109"></a>00109         };
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 
<a name="l00112"></a>00112 } <span class="comment">// end namespace gui</span>
<a name="l00113"></a>00113 } <span class="comment">// end namespace irr</span>
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="preprocessor">#endif</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1">
<address style="align: right;">
<small> </small>
</address>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr> 
    <td width="0"> <div align="left"><small><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="irrlicht.png" alt="The Irrlicht Engine" align="middle" border=0 width=88 height=31></a></small></div></td>
    <td> <div align="left"><small><em><font size="2">The <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht 
        Engine</a> Documentation &copy; 2003-2009 by Nikolaus Gebhardt. Generated 
        on Sun Jan 10 09:24:03 2010 by <a href="http://www.doxygen.org" target="_blank">Doxygen</a> 
        (1.5.6)</font></em></small></div></td>
  </tr>
</table>
<address style="align: right;">
</address>
</body>
</html>