From: Robin Dunn Date: Tue, 6 Jul 2004 21:36:50 +0000 (+0000) Subject: Add some grid related constants X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3c6e3872b391fd2d3b3ff1cee596dd143345f686 Add some grid related constants git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index 6e8f87af04..42544af69c 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -521,6 +521,31 @@ const wxRect wxGridNoCellRect; %mutable; +%rename(GRID_DEFAULT_NUMBER_ROWS) WXGRID_DEFAULT_NUMBER_ROWS; +%rename(GRID_DEFAULT_NUMBER_COLS) WXGRID_DEFAULT_NUMBER_COLS; +%rename(GRID_DEFAULT_ROW_HEIGHT) WXGRID_DEFAULT_ROW_HEIGHT; +%rename(GRID_DEFAULT_COL_WIDTH) WXGRID_DEFAULT_COL_WIDTH; +%rename(GRID_DEFAULT_COL_LABEL_HEIGHT) WXGRID_DEFAULT_COL_LABEL_HEIGHT; +%rename(GRID_DEFAULT_ROW_LABEL_WIDTH) WXGRID_DEFAULT_ROW_LABEL_WIDTH; +%rename(GRID_LABEL_EDGE_ZONE) WXGRID_LABEL_EDGE_ZONE; +%rename(GRID_MIN_ROW_HEIGHT) WXGRID_MIN_ROW_HEIGHT; +%rename(GRID_MIN_COL_WIDTH) WXGRID_MIN_COL_WIDTH; +%rename(GRID_DEFAULT_SCROLLBAR_WIDTH) WXGRID_DEFAULT_SCROLLBAR_WIDTH; + +enum { + WXGRID_DEFAULT_NUMBER_ROWS, + WXGRID_DEFAULT_NUMBER_COLS, + WXGRID_DEFAULT_ROW_HEIGHT, + WXGRID_DEFAULT_COL_WIDTH, + WXGRID_DEFAULT_COL_LABEL_HEIGHT, + WXGRID_DEFAULT_ROW_LABEL_WIDTH, + WXGRID_LABEL_EDGE_ZONE, + WXGRID_MIN_ROW_HEIGHT, + WXGRID_MIN_COL_WIDTH, + WXGRID_DEFAULT_SCROLLBAR_WIDTH +}; + + //--------------------------------------------------------------------------- // wxGridCellRenderer is an ABC, and several derived classes are available. // Classes implemented in Python should be derived from wxPyGridCellRenderer.