X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d138379016e86c0625162f9ba0286233430a183..c0a83c519b566f9a306990cfc8275e512352628f:/wxPython/src/grid.i diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index d78a22b050..06bb151211 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -913,7 +913,7 @@ public: void base_SetSize(const wxRect& rect); void base_Show(bool show, wxGridCellAttr *attr = NULL); void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr); - void base_IsAcceptedKey(wxKeyEvent& event); + bool base_IsAcceptedKey(wxKeyEvent& event); void base_StartingKey(wxKeyEvent& event); void base_StartingClick(); void base_HandleReturn(wxKeyEvent& event); @@ -1023,7 +1023,7 @@ public: void SetFont(const wxFont& font); void SetAlignment(int hAlign, int vAlign); void SetSize(int num_rows, int num_cols); - void SetOverflow( bool allow ); + void SetOverflow( bool allow = TRUE ); void SetReadOnly(bool isReadOnly = TRUE); void SetRenderer(wxGridCellRenderer *renderer); @@ -1037,12 +1037,13 @@ public: bool HasRenderer() const; bool HasEditor() const; bool HasReadWriteMode() const; + bool HasOverflowMode() const; wxColour GetTextColour() const; wxColour GetBackgroundColour() const; wxFont GetFont() const; void GetAlignment(int *OUTPUT, int *OUTPUT) const; - void GetSize(int *num_rows, int *num_cols) const; + void GetSize(int *OUTPUT, int *OUTPUT) const; bool GetOverflow() const; wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const; wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const; @@ -1727,8 +1728,8 @@ public: wxColour GetCellTextColour( int row, int col ); wxFont GetDefaultCellFont(); wxFont GetCellFont( int row, int col ); - void GetDefaultCellAlignment( int *horiz, int *vert ); - void GetCellAlignment( int row, int col, int *horiz, int *vert ); + void GetDefaultCellAlignment( int *OUTPUT, int *OUTPUT ); + void GetCellAlignment( int row, int col, int *OUTPUT, int *OUTPUT ); bool GetDefaultCellOverflow(); bool GetCellOverflow( int row, int col ); void GetCellSize( int row, int col, int *OUTPUT, int *OUTPUT ); @@ -1767,6 +1768,11 @@ public: void SetColMinimalWidth( int col, int width ); void SetRowMinimalHeight( int row, int width ); + void SetColMinimalAcceptableWidth( int width ); + void SetRowMinimalAcceptableHeight( int width ); + int GetColMinimalAcceptableWidth() const; + int GetRowMinimalAcceptableHeight() const; + void SetDefaultCellBackgroundColour( const wxColour& ); void SetCellBackgroundColour( int row, int col, const wxColour& ); void SetDefaultCellTextColour( const wxColour& ); @@ -2032,8 +2038,6 @@ def EVT_GRID_EDITOR_CREATED(win, fn): //--------------------------------------------------------------------------- %init %{ - wxClassInfo::CleanUpClasses(); - wxClassInfo::InitializeClasses(); %} //---------------------------------------------------------------------------