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 |
|
|
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 |
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; |
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 |
}; |
}; |