2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: position.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxPosition
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxPosition
|
|
|
|
@wxheader{position.h}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
This class represents the position of an item in any kind of grid of rows and
|
|
|
|
columns such as wxGridBagSizer, or
|
|
|
|
wxHVScrolledWindow.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxbase}
|
|
|
|
@category{FIXME}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
@see wxPoint, wxSize
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
class wxPosition
|
2008-03-08 13:52:38 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Construct a new wxPosition, optionally setting the row and column. The
|
|
|
|
default value is (0, 0).
|
|
|
|
*/
|
|
|
|
wxPosition();
|
2008-03-08 14:43:31 +00:00
|
|
|
wxPosition(int row, int col);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
A synonym for GetColumn().
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
int GetCol() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Get the current row value.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
int GetColumn() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Get the current row value.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
int GetRow() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool operator ==(const wxPosition& p) const;
|
|
|
|
const bool operator !=(const wxPosition& p) const;
|
|
|
|
const wxPosition& operator +=(const wxPosition& p) const;
|
|
|
|
wxPosition operator -=(const wxPosition& p) const;
|
|
|
|
wxPosition operator +=(const wxSize& s) const;
|
|
|
|
wxPosition operator -=(const wxSize& s) const;
|
|
|
|
wxPosition operator +(const wxPosition& p) const;
|
|
|
|
const wxPosition operator -(const wxPosition& p) const;
|
|
|
|
const wxPosition operator +(const wxSize& s) const;
|
|
|
|
const wxPosition operator -(const wxSize& s) const;
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
A synonym for SetColumn().
|
|
|
|
*/
|
|
|
|
void SetCol(int column);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Set a new column value.
|
|
|
|
*/
|
|
|
|
void SetColumn(int column);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Set a new row value.
|
|
|
|
*/
|
|
|
|
void SetRow(int row);
|
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|