2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: position.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxPosition
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxPosition
|
|
|
|
@wxheader{position.h}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05: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 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxbase}
|
|
|
|
@category{FIXME}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-10 11:24:38 -04:00
|
|
|
@see wxPoint, wxSize
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
class wxPosition
|
2008-03-08 08:52:38 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Construct a new wxPosition, optionally setting the row and column. The
|
|
|
|
default value is (0, 0).
|
|
|
|
*/
|
|
|
|
wxPosition();
|
2008-03-08 09:43:31 -05:00
|
|
|
wxPosition(int row, int col);
|
2008-03-08 08:52:38 -05:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
A synonym for GetColumn().
|
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
int GetCol() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Get the current row value.
|
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
int GetColumn() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Get the current row value.
|
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
int GetRow() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
|
|
|
|
*/
|
2008-03-09 12:24:26 -04: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 08:52:38 -05: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 11:24:38 -04:00
|
|
|
|