📄 classwgui_1_1cscrollbar.html
字号:
<!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>wGui::CScrollBar class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> </center><hr><h1>wGui::CScrollBar Class Reference</h1>A scroll bar. <a href="#_details">More...</a><p><code>#include <<a class="el" href="wg__scrollbar_8h-source.html">wg_scrollbar.h</a>></code><p><p>Inheritance diagram for wGui::CScrollBar:<p><center><img src="classwGui_1_1CScrollBar.png" usemap="#wGui::CScrollBar_map" border="0" alt=""></center><map name="wGui::CScrollBar_map"><area href="classwGui_1_1CWindow.html" alt="wGui::CWindow" shape="rect" coords="0,56,138,80"><area href="classwGui_1_1CMessageClient.html" alt="wGui::CMessageClient" shape="rect" coords="0,0,138,24"></map><h2>Public Types</h2><ul><li>enum <a class="el" href="classwGui_1_1CScrollBar.html#s2">EScrollBarType</a> { <a class="el" href="classwGui_1_1CScrollBar.html#s2s0">VERTICAL</a>, <a class="el" href="classwGui_1_1CScrollBar.html#s2s1">HORIZONTAL</a> }<dl class="el"><dd><font size=-1><em>The types of scrollbars possible.</em> <a href="#s2">More...</a><em><br><br></em></font></dl></ul><h2>Public Methods</h2><ul><li><a class="el" href="classwGui_1_1CScrollBar.html#a0">CScrollBar</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &WindowRect, <a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *pParent, <a class="el" href="classwGui_1_1CScrollBar.html#s2">EScrollBarType</a> ScrollBarType)<li><a name="a1" doxytag="wGui::CScrollBar::~CScrollBar"></a>virtual <a class="el" href="classwGui_1_1CScrollBar.html#a1">~CScrollBar</a> (void)<dl class="el"><dd><font size=-1><em>Standard destructor.<br><br></em></font></dl><li><a name="a2" doxytag="wGui::CScrollBar::SetLimits"></a>void <a class="el" href="classwGui_1_1CScrollBar.html#a2">SetLimits</a> (int Min, int Max)<dl class="el"><dd><font size=-1><em>Set the limits of the scroll bar.<br><br></em></font></dl><li><a name="a3" doxytag="wGui::CScrollBar::GetMinLimit"></a>int <a class="el" href="classwGui_1_1CScrollBar.html#a3">GetMinLimit</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The minimum limit of the scroll bar</dl><br><br></em></font></dl><li><a name="a4" doxytag="wGui::CScrollBar::GetMaxLimit"></a>int <a class="el" href="classwGui_1_1CScrollBar.html#a4">GetMaxLimit</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The maximum limit of the scroll bar</dl><br><br></em></font></dl><li><a name="a5" doxytag="wGui::CScrollBar::SetPosition"></a>void <a class="el" href="classwGui_1_1CScrollBar.html#a5">SetPosition</a> (int iPosition)<dl class="el"><dd><font size=-1><em>Set the current thumb position.<br><br></em></font></dl><li><a name="a6" doxytag="wGui::CScrollBar::GetPosition"></a>int <a class="el" href="classwGui_1_1CScrollBar.html#a6">GetPosition</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The current progress value</dl><br><br></em></font></dl><li><a name="a7" doxytag="wGui::CScrollBar::Draw"></a>virtual void <a class="el" href="classwGui_1_1CScrollBar.html#a7">Draw</a> (void) const<dl class="el"><dd><font size=-1><em>Draws the scroll bar.<br><br></em></font></dl><li>virtual void <a class="el" href="classwGui_1_1CScrollBar.html#a8">SetWindowRect</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &WindowRect)<li>virtual void <a class="el" href="classwGui_1_1CScrollBar.html#a9">MoveWindow</a> (const <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> &MoveDistance)<li>virtual bool <a class="el" href="classwGui_1_1CScrollBar.html#a10">OnMouseButtonDown</a> (<a class="el" href="classwGui_1_1CPoint.html">CPoint</a> Point, unsigned int Button)<li>virtual bool <a class="el" href="classwGui_1_1CScrollBar.html#a11">HandleMessage</a> (<a class="el" href="classwGui_1_1CMessage.html">CMessage</a> *pMessage)</ul><hr><a name="_details"></a><h2>Detailed Description</h2>A scroll bar.<p><p>Definition at line <a class="el" href="wg__scrollbar_8h-source.html#l00038">38</a> of file <a class="el" href="wg__scrollbar_8h-source.html">wg_scrollbar.h</a>.<hr><h2>Member Enumeration Documentation</h2><a name="s2" doxytag="wGui::CScrollBar::EScrollBarType"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> enum wGui::CScrollBar::EScrollBarType </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>The types of scrollbars possible.<p><dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s2s0" doxytag="VERTICAL"></a><em>VERTICAL</em></em> </td><td>A standard vertical scrollbar.</td></tr><tr><td valign=top><em><a name="s2s1" doxytag="HORIZONTAL"></a><em>HORIZONTAL</em></em> </td><td>A standard horizontal scrollbar.</td></tr></table></dl><p>Definition at line <a class="el" href="wg__scrollbar_8h-source.html#l00042">42</a> of file <a class="el" href="wg__scrollbar_8h-source.html">wg_scrollbar.h</a>. </td> </tr></table><hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="wGui::CScrollBar::CScrollBar"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> wGui::CScrollBar::CScrollBar </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> & </td> <td class="mdname" nowrap> <em>WindowRect</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classwGui_1_1CWindow.html">CWindow</a> * </td> <td class="mdname" nowrap> <em>pParent</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classwGui_1_1CScrollBar.html#s2">EScrollBarType</a> </td> <td class="mdname" nowrap> <em>ScrollBarType</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructs a scroll bar, initilizes the limits to 0, and 100 with the position at 0 <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>WindowRect</em> </td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the outer limits of the control </td></tr><tr><td valign=top><em>pParent</em> </td><td>A pointer to the parent window </td></tr><tr><td valign=top><em>ScrollBarType</em> </td><td>Indicates if this is to be a vertical or horizontal scrollbar </td></tr></table></dl><p>Definition at line <a class="el" href="wg__scrollbar_8cpp-source.html#l00035">35</a> of file <a class="el" href="wg__scrollbar_8cpp-source.html">wg_scrollbar.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00091">wGui::CRect::Bottom()</a>, <a class="el" href="wg__rect_8h-source.html#l00103">wGui::CRect::BottomRight()</a>, <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__window_8h-source.html#l00062">wGui::CWindow::GetWindowRect()</a>, <a class="el" href="wg__rect_8h-source.html#l00130">wGui::CRect::Height()</a>, <a class="el" href="classwGui_1_1CScrollBar.html#s2s1">HORIZONTAL</a>, <a class="el" href="wg__rect_8h-source.html#l00085">wGui::CRect::Left()</a>, <a class="el" href="wg__window_8h-source.html#l00194">wGui::CWindow::m_BGColor</a>, <a class="el" href="wg__window_8h-source.html#l00197">wGui::CWindow::m_ClientRect</a>, <a class="el" href="wg__window_8h-source.html#l00212">wGui::CWindow::m_sClassName</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, <a class="el" href="wg__rect_8h-source.html#l00088">wGui::CRect::Right()</a>, <a class="el" href="wg__scrollbar_8cpp-source.html#l00093">SetPosition()</a>, <a class="el" href="wg__rect_8h-source.html#l00082">wGui::CRect::Top()</a>, <a class="el" href="wg__rect_8h-source.html#l00094">wGui::CRect::TopLeft()</a>, <a class="el" href="classwGui_1_1CScrollBar.html#s2s0">VERTICAL</a>, and <a class="el" href="wg__rect_8h-source.html#l00127">wGui::CRect::Width()</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a11" doxytag="wGui::CScrollBar::HandleMessage"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool wGui::CScrollBar::HandleMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pMessage</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -