wxMultiCellItemHandle( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
wxMultiCellItemHandle( int row, int column, wxSize size, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
wxMultiCellItemHandle( int row, int column, wxResizable style, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
- int GetColumn();
- int GetRow();
- int GetWidth();
- int GetHeight();
- wxResizable GetStyle();
- wxSize GetLocalSize();
- int GetAlignment();
- wxSize GetWeight();
+ int GetColumn() const;
+ int GetRow() const;
+ int GetWidth() const;
+ int GetHeight() const;
+ wxResizable GetStyle() const;
+ wxSize GetLocalSize() const;
+ int GetAlignment() const;
+ wxSize GetWeight() const;
private:
void Initialize( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
private:
void GetMinimums();
- int Sum(int *array, int x);
+ static int Sum(int *array, int x);
private:
int *m_maxHeight;
void Add(wxWindow *win, unsigned int row, unsigned int col);
void Resize(int numRows, int numCols);
- int MaxRows()
+ int MaxRows() const
{
return m_maxRows;
};
- int MaxCols()
+ int MaxCols() const
{
return m_maxCols;
};
Initialize(row, column, 1, 1, wxSize(1, 1), style, weight, align);
}
//---------------------------------------------------------------------------
-int wxMultiCellItemHandle::GetColumn()
+int wxMultiCellItemHandle::GetColumn() const
{
return m_column;
}
//---------------------------------------------------------------------------
-int wxMultiCellItemHandle::GetRow()
+int wxMultiCellItemHandle::GetRow() const
{
return m_row;
}
//---------------------------------------------------------------------------
-int wxMultiCellItemHandle::GetWidth()
+int wxMultiCellItemHandle::GetWidth() const
{
return m_width;
}
//---------------------------------------------------------------------------
-int wxMultiCellItemHandle::GetHeight()
+int wxMultiCellItemHandle::GetHeight() const
{
return m_height;
}
//---------------------------------------------------------------------------
-wxResizable wxMultiCellItemHandle :: GetStyle()
+wxResizable wxMultiCellItemHandle :: GetStyle() const
{
return m_style;
};
//---------------------------------------------------------------------------
-wxSize wxMultiCellItemHandle :: GetLocalSize()
+wxSize wxMultiCellItemHandle :: GetLocalSize() const
{
return m_fixedSize;
};
//---------------------------------------------------------------------------
-int wxMultiCellItemHandle :: GetAlignment()
+int wxMultiCellItemHandle :: GetAlignment() const
{
return m_alignment;
};
//---------------------------------------------------------------------------
-wxSize wxMultiCellItemHandle :: GetWeight()
+wxSize wxMultiCellItemHandle :: GetWeight() const
{
return m_weight;
};
*
*/
-int wxMultiCellSizer :: Sum(int *array, int x)
+/* static */ int wxMultiCellSizer :: Sum(int *array, int x)
{
int sum = 0;
while (x--)