3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
84 lines
1.9 KiB
Objective-C
84 lines
1.9 KiB
Objective-C
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: position.h
|
|
// Purpose: interface of wxPosition
|
|
// Author: wxWidgets team
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/**
|
|
@class wxPosition
|
|
|
|
This class represents the position of an item in any kind of grid of rows and
|
|
columns such as wxGridBagSizer, or wxHVScrolledWindow.
|
|
|
|
@library{wxbase}
|
|
@category{data}
|
|
|
|
@see wxPoint, wxSize
|
|
*/
|
|
class wxPosition
|
|
{
|
|
public:
|
|
|
|
/**
|
|
Construct a new wxPosition, setting the row and column to the
|
|
default value of (0, 0).
|
|
*/
|
|
wxPosition();
|
|
|
|
/**
|
|
Construct a new wxPosition, setting the row and column to the
|
|
value of (@a row, @a col).
|
|
*/
|
|
wxPosition(int row, int col);
|
|
|
|
/**
|
|
A synonym for GetColumn().
|
|
*/
|
|
int GetCol() const;
|
|
|
|
/**
|
|
Get the current row value.
|
|
*/
|
|
int GetColumn() const;
|
|
|
|
/**
|
|
Get the current row value.
|
|
*/
|
|
int GetRow() const;
|
|
|
|
/**
|
|
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);
|
|
|
|
|
|
/**
|
|
@name Miscellaneous operators
|
|
|
|
@{
|
|
*/
|
|
bool operator ==(const wxPosition& pos) const;
|
|
bool operator !=(const wxPosition& pos) const;
|
|
wxPosition& operator +=(const wxPosition& pos);
|
|
wxPosition& operator -=(const wxPosition& pos);
|
|
wxPosition& operator +=(const wxSize& size);
|
|
wxPosition& operator -=(const wxSize& size);
|
|
wxPosition operator +(const wxPosition& pos) const;
|
|
wxPosition operator -(const wxPosition& pos) const;
|
|
wxPosition operator +(const wxSize& size) const;
|
|
wxPosition operator -(const wxSize& size) const;
|
|
//@}
|
|
};
|
|
|