~hikiko/nux/arb-srgba-shader

« back to all changes in this revision

Viewing changes to Nux/ScrollView.h

  • Committer: Travis Watkins
  • Date: 2011-08-03 10:34:36 UTC
  • mfrom: (409 nux-logger-fix)
  • mto: (454.5.1 nux-gles)
  • mto: This revision was merged to the branch mainline in revision 501.
  • Revision ID: travis.watkins@linaro.org-20110803103436-biz9c9930l2refsi
merge with lp:nux

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define SCROLLVIEW_H
25
25
 
26
26
#include "Nux.h"
27
 
 
 
27
#include "View.h"
28
28
 
29
29
namespace nux
30
30
{
156
156
    virtual void DrawContent (GraphicsEngine &GfxContext, bool force_draw);
157
157
    virtual void PostDraw (GraphicsEngine &GfxContext, bool force_draw);
158
158
    virtual long ProcessEvent (Event &event, long TraverseInfo, long ProcessEventInfo);
 
159
    virtual Area* FindAreaUnderMouse(const Point& mouse_position, NuxEventType event_type);
 
160
 
 
161
    void RecvMouseWheel(int x, int y, int wheel_delta,  long button_flags, unsigned long key_flags);
159
162
 
160
163
    //! Change Vertical Scrollbar in the ScrollView.
161
164
    /*!
162
 
        For styling purpose, allow the classes that inherit fron ScrollView to
 
165
        For styling purpose, allow the classes that inherit from ScrollView to
163
166
        change the vertical scrollbar.
164
167
    */ 
165
168
    void SetVScrollBar (VScrollBar* newVScrollBar);
166
169
 
167
 
    void OnChildFocusChanged (Area *parent, Area *child);
 
170
    void OnChildFocusChanged (/*Area *parent,*/ Area *child);
168
171
 
169
172
    // Backup texture to speed up scrolling
170
173
    ObjectPtr<IOpenGLFrameBufferObject> m_FrameBufferObject;
185
188
    bool m_ReformatTexture;
186
189
 
187
190
    // ScrollBars
188
 
    HScrollBar     *hscrollbar;
189
 
    VScrollBar     *vscrollbar;
 
191
    HScrollBar     *_hscrollbar;
 
192
    VScrollBar     *_vscrollbar;
190
193
    bool m_horizontal_scrollbar_enable;
191
194
    bool m_vertical_scrollbar_enable;
192
195
 
217
220
    virtual long PostLayoutManagement2 (long LayoutResult);
218
221
 
219
222
  private:
 
223
 
 
224
    virtual bool AcceptKeyNavFocus();
220
225
    /**
221
226
        If True, the scrollbar size will be adjusted to match the size of the content.
222
227
        This is useful for the ComboBoxComplex widget.
227
232
    int m_ViewContentRightMargin;
228
233
    int m_ViewContentTopMargin;
229
234
    int m_ViewContentBottomMargin;
 
235
 
 
236
    int top_hidden_surface_;
230
237
  };
231
238
}
232
239