~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to Nux/HSplitter.h

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
    void clearContent();
45
45
 
46
 
    void OnSplitterMouseDown(t_s32 x, t_s32 y, unsigned long button_flags, unsigned long key_flags, t_s32 header_pos);
47
 
    void OnSplitterMouseUp(t_s32 x, t_s32 y, unsigned long button_flags, unsigned long key_flags, t_s32 header_pos);
48
 
    void OnSplitterMouseDrag(t_s32 x, t_s32 y, t_s32 dx, t_s32 dy, unsigned long button_flags, unsigned long key_flags, t_s32 header_pos);
 
46
    void OnSplitterMouseDown(int x, int y, unsigned long button_flags, unsigned long key_flags, int header_pos);
 
47
    void OnSplitterMouseUp(int x, int y, unsigned long button_flags, unsigned long key_flags, int header_pos);
 
48
    void OnSplitterMouseDrag(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags, int header_pos);
49
49
 
50
50
    virtual void OverlayDrawing(GraphicsEngine &graphics_engine);
51
51
 
65
65
  protected:
66
66
    virtual long ComputeContentSize();
67
67
    virtual void DoneRedraw();
68
 
    void ResizeSplitter(t_s32 header_pos);
 
68
    void ResizeSplitter(int header_pos);
69
69
    //void ContinuousSplitterAdjustment();
70
70
    void setResizeOnSplitterRelease(bool b)
71
71
    {
89
89
    bool new_addition;
90
90
 
91
91
    bool m_ResizeOnSplitterRelease;
92
 
    t_s32 m_current_width;
93
 
    t_s32 m_current_height;
94
 
    t_s32 m_current_x;
95
 
    t_s32 m_current_y;
 
92
    int m_current_width;
 
93
    int m_current_height;
 
94
    int m_current_x;
 
95
    int m_current_y;
96
96
 
97
97
    bool m_initial_config;
98
98
 
99
99
    // splitter bar differential position;
100
 
    t_s32 mvt_dx, mvt_dy;
101
 
    t_s32 m_focus_splitter_index;
 
100
    int mvt_dx, mvt_dy;
 
101
    int m_focus_splitter_index;
102
102
  };
103
103
 
104
104
}