/[paragui]/paragui/include/pgwidgetlist.h
ViewVC logotype

Diff of /paragui/include/pgwidgetlist.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3.6.3.2.1 by braindead, Fri Nov 21 12:27:54 2003 UTC revision 1.3.6.3.2.2 by braindead, Tue Dec 2 15:27:58 2003 UTC
# Line 29  Line 29 
29  #ifndef PG_WIDGETLIST_H  #ifndef PG_WIDGETLIST_H
30  #define PG_WIDGETLIST_H  #define PG_WIDGETLIST_H
31    
 #ifdef SWIG  
 %include "swigcommon.h"  
 %module pgwidgetlist  
 %{  
 #include "pgwidgetlist.h"  
 %}  
 #endif  
   
32  #include "pgthemewidget.h"  #include "pgthemewidget.h"
33  #include "pgscrollbar.h"  #include "pgscrollbar.h"
34    
# Line 142  public: Line 134  public:
134          /**          /**
135          Enable / disable the Scrollbar (override automatic display)          Enable / disable the Scrollbar (override automatic display)
136          */          */
137          void EnableScrollBar(bool enable, int direction = PG_SB_VERTICAL);          void EnableScrollBar(bool enable, PG_ScrollBar::ScrollDirection direction = PG_ScrollBar::VERTICAL);
138    
139          /**          /**
140          Scroll the list to a widget          Scroll the list to a widget
141          @param  widget          @param  widget
142          */          */
143          void ScrollTo(PG_Widget* widget, int direction = PG_SB_VERTICAL);          void ScrollTo(PG_Widget* widget, PG_ScrollBar::ScrollDirection direction = PG_ScrollBar::VERTICAL);
144    
145          /**          /**
146          Scroll the list to a given index          Scroll the list to a given index
147          @param  index          @param  index
148          */          */
149  #ifdef SWIG          void ScrollTo(int index, PG_ScrollBar::ScrollDirection direction = PG_ScrollBar::VERTICAL);
         %name(ScrollToIndex) void ScrollTo(int index, int direction = PG_SB_VERTICAL);  
 #else  
         void ScrollTo(int index, int direction = PG_SB_VERTICAL);  
 #endif  
150    
151          /**          /**
152          Scroll one page up          Scroll one page up
# Line 214  protected: Line 202  protected:
202          int my_widthScrollbar;          int my_widthScrollbar;
203          int my_heightHorizontalScrollbar;          int my_heightHorizontalScrollbar;
204    
         /** swig doesn't understand vectors... */  
 #ifndef SWIG  
   
205          vector < PG_Widget* > my_widgetList; // Hmmm, I know about this: vector :))          vector < PG_Widget* > my_widgetList; // Hmmm, I know about this: vector :))
 #endif  
206    
207          int my_widgetCount;          int my_widgetCount;
208          int my_firstWidget;          int my_firstWidget;
# Line 231  protected: Line 215  protected:
215          void CheckScrollBars();          void CheckScrollBars();
216    
217  private:  private:
218  #ifndef SWIG  
219          PG_WidgetList(const PG_WidgetList&);          PG_WidgetList(const PG_WidgetList&);
220          PG_WidgetList& operator=(const PG_WidgetList&);          PG_WidgetList& operator=(const PG_WidgetList&);
 #endif  
221    
222          PG_WidgetListDataInternal* my_internaldata;          PG_WidgetListDataInternal* my_internaldata;
223  };  };

Legend:
Removed from v.1.3.6.3.2.1  
changed lines
  Added in v.1.3.6.3.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26