X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f60d0f944a6ce86bce59901e7ea3811f0992bce7..34636400a0018eba4a1f63dda18cf32e944b959e:/include/wx/generic/listctrl.h?ds=sidebyside diff --git a/include/wx/generic/listctrl.h b/include/wx/generic/listctrl.h index 810d91f9a6..b9a9e74ce5 100644 --- a/include/wx/generic/listctrl.h +++ b/include/wx/generic/listctrl.h @@ -314,10 +314,10 @@ class WXDLLEXPORT wxListLineData : public wxObject public: wxList m_items; - wxRectangle m_bound_all; - wxRectangle m_bound_label; - wxRectangle m_bound_icon; - wxRectangle m_bound_hilight; + wxRect m_bound_all; + wxRect m_bound_label; + wxRect m_bound_icon; + wxRect m_bound_hilight; int m_mode; bool m_hilighted; wxBrush *m_hilightBrush; @@ -342,15 +342,15 @@ class WXDLLEXPORT wxListLineData : public wxObject void GetText( int index, wxString &s ); void SetText( int index, const wxString s ); int GetImage( int index ); - void GetRect( wxRectangle &rect ); + void GetRect( wxRect &rect ); void Hilight( bool on ); void ReverseHilight( void ); void DrawRubberBand( wxDC *dc, bool on ); void Draw( wxDC *dc ); - bool IsInRect( int x, int y, const wxRectangle &rect ); + bool IsInRect( int x, int y, const wxRect &rect ); bool IsHilighted( void ); - void AssignRect( wxRectangle &dest, int x, int y, int width, int height ); - void AssignRect( wxRectangle &dest, const wxRectangle &source ); + void AssignRect( wxRect &dest, int x, int y, int width, int height ); + void AssignRect( wxRect &dest, const wxRect &source ); }; //----------------------------------------------------------------------------- @@ -365,7 +365,7 @@ class WXDLLEXPORT wxListHeaderWindow : public wxWindow wxListMainWindow *m_owner; wxCursor *m_currentCursor; wxCursor *m_resizeCursor; - bool m_isDraging; + bool m_isDragging; int m_column; int m_minX; int m_currentX; @@ -481,6 +481,7 @@ class WXDLLEXPORT wxListMainWindow: public wxScrolledWindow void MoveToFocus( void ); void OnArrowChar( wxListLineData *newCurrent, bool shiftDown ); void OnChar( wxKeyEvent &event ); + void OnKeyDown( wxKeyEvent &event ); void OnSetFocus( wxFocusEvent &event ); void OnKillFocus( wxFocusEvent &event ); void OnSize( wxSizeEvent &event ); @@ -503,7 +504,7 @@ class WXDLLEXPORT wxListMainWindow: public wxScrolledWindow void SetItemState( long item, long state, long stateMask ); int GetItemState( long item, long stateMask ); int GetItemCount( void ); - void GetItemRect( long index, wxRectangle &rect ); + void GetItemRect( long index, wxRect &rect ); bool GetItemPosition(long item, wxPoint& pos); int GetSelectedItemCount( void ); void SetMode( long mode ); @@ -568,7 +569,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl void SetItemText( long item, const wxString& str ); long GetItemData( long item ) const; bool SetItemData( long item, long data ); - bool GetItemRect( long item, wxRectangle& rect, int code = wxLIST_RECT_BOUNDS ) const; + bool GetItemRect( long item, wxRect& rect, int code = wxLIST_RECT_BOUNDS ) const; bool GetItemPosition( long item, wxPoint& pos ) const; bool SetItemPosition( long item, const wxPoint& pos ); // not supported in wxGLC int GetItemCount(void) const; @@ -611,9 +612,9 @@ class WXDLLEXPORT wxListCtrl: public wxControl // We have to hand down a few functions - void SetBackgroundColour( const wxColour &colour ); - void SetForegroundColour( const wxColour &colour ); - void SetFont( const wxFont &font ); + bool SetBackgroundColour( const wxColour &colour ); + bool SetForegroundColour( const wxColour &colour ); + bool SetFont( const wxFont &font ); #if wxUSE_DRAG_AND_DROP void SetDropTarget( wxDropTarget *dropTarget ) @@ -622,14 +623,12 @@ class WXDLLEXPORT wxListCtrl: public wxControl { return m_mainWin->GetDropTarget(); } #endif - void SetCursor( const wxCursor &cursor ) - { if (m_mainWin) m_mainWin->wxWindow::SetCursor( cursor); } + bool SetCursor( const wxCursor &cursor ) + { return m_mainWin ? m_mainWin->wxWindow::SetCursor(cursor) : FALSE; } wxColour GetBackgroundColour() const - { if (m_mainWin) return m_mainWin->GetBackgroundColour(); - else return wxColour(); } + { return m_mainWin ? m_mainWin->GetBackgroundColour() : wxColour(); } wxColour GetForegroundColour() const - { if (m_mainWin) return m_mainWin->GetForegroundColour(); - else return wxColour(); } + { return m_mainWin ? m_mainWin->GetForegroundColour() : wxColour(); } bool PopupMenu( wxMenu *menu, int x, int y ) { return m_mainWin->PopupMenu( menu, x, y ); } void SetFocus()