Main Page | Class Hierarchy | Class List | File List | Class Members

aedScrollBar.h

00001 
00002 /*
00003  * The aedScrollBar class
00004  * This class draws a scrollbar.
00005  * Initial design by Eduardo B. Fonseca <ebf@aedsolucoes.com.br>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public
00018  * License along with this library; if not, write to the Free
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  */
00022 #ifndef AEDSCROLLBAR_H
00023 #define AEDSCROLLBAR_H
00024 
00025 #include "aedSlider.h"
00026 #include "aedButton.h"
00027 #include "aedSignal.h"
00028 
00029 class DLLEXPORT aedScrollBar:public aedSlider
00030 {
00031   public:
00032     aedScrollBar(aedOrientation orient = AED_VERTICAL);
00033     virtual ~ aedScrollBar();
00034 
00035     virtual void create(aedWidget * parent = NULL, aedRect pos =
00036                         aedDEFAULTPOSITION, std::string caption = "");
00037     virtual int wm_update(Uint32 msdelta);
00038     virtual int wm_lbuttonup(Uint16 x, Uint16 y);
00039     virtual int wm_lbuttondown(Uint16 x, Uint16 y);
00040     virtual void render(void);
00041 
00042     aedRect getElevatorRect();
00043 
00044   private:
00045       aedButton m_ButtonUp, m_ButtonDown;
00046     void buttonUpClicked(void *caller, void *data);
00047     void buttonDownClicked(void *caller, void *data);
00048 };
00049 
00050 #if defined(_MSC_VER)
00051 DLLEXTERN template DLLEXPORT aedFunctor1Arg < stub, aedScrollBar >;
00052 #endif
00053 
00054 #endif /* AEDSCROLLBAR_H */

Generated on Mon Mar 1 19:56:18 2004 for aedGUI by doxygen 1.3.6