QMargins 類

The QMargins class defines the four margins of a rectangle. 更多...

頭: #include <QMargins>
Since: Qt 4.6

公共函數

QMargins ()
QMargins (int left , int top , int right , int bottom )
int bottom () const
bool isNull () const
int left () const
int right () const
void setBottom (int bottom )
void setLeft (int left )
void setRight (int right )
void setTop (int Top )
int top () const
bool operator!= (const QMargins & m1 , const QMargins & m2 )
bool operator== (const QMargins & m1 , const QMargins & m2 )

詳細描述

The QMargins class defines the four margins of a rectangle.

QMargins 定義一組 4 邊距;左、上、右和下,描述矩形周圍邊界的大小。

The isNull () function returns true only if all margins are set to zero.

既可以流化,也可以比較 QMargins 對象。

成員函數文檔編製

QMargins:: QMargins ()

構造邊距對象,采用把所有邊距設為 0。

另請參閱 isNull ().

QMargins:: QMargins ( int left , int top , int right , int bottom )

構造邊距采用給定 left , top , right , bottom

另請參閱 setLeft (), setRight (), setTop (),和 setBottom ().

int QMargins:: bottom () const

返迴下邊距。

另請參閱 setBottom ().

bool QMargins:: isNull () const

Returns true if all margins are is 0; otherwise returns false.

int QMargins:: left () const

返迴左邊距。

另請參閱 setLeft ().

返迴右邊距。

另請參閱 setRight ().

void QMargins:: setBottom ( int bottom )

將下邊距設為 bottom .

另請參閱 bottom ().

void QMargins:: setLeft ( int left )

將左邊距設為 left .

另請參閱 left ().

void QMargins:: setRight ( int right )

將右邊距設為 right .

另請參閱 right ().

void QMargins:: setTop ( int Top )

將上邊距設為 Top .

另請參閱 top ().

int QMargins:: top () const

返迴上邊距。

另請參閱 setTop ().

相關非成員

bool operator!= (const QMargins & m1 , const QMargins & m2 )

返迴 true 若 m1 and m2 are different; otherwise returns false.

bool operator== (const QMargins & m1 , const QMargins & m2 )

返迴 true 若 m1 and m2 相等;否則返迴 false。