Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

otk::Strut Struct Reference

#include <strut.hh>

List of all members.


Detailed Description

Defines a margin on 4 sides.

Definition at line 12 of file strut.hh.

Public Methods

 Strut (void)
 Constructs a new Strut with no margins.

 Strut (int l, int t, int r, int b)
 Constructs a new Strut with margins.

bool operator== (const Strut &o) const

Public Attributes

unsigned int top
 The margin on the top of the Strut.

unsigned int bottom
 The margin on the bottom of the Strut.

unsigned int left
 The margin on the left of the Strut.

unsigned int right
 The margin on the right of the Strut.


Constructor & Destructor Documentation

otk::Strut::Strut void    [inline]
 

Constructs a new Strut with no margins.

Definition at line 23 of file strut.hh.

00023 : top(0), bottom(0), left(0), right(0) {}

otk::Strut::Strut int    l,
int    t,
int    r,
int    b
[inline]
 

Constructs a new Strut with margins.

Definition at line 25 of file strut.hh.

00025 : top(t), bottom(b), left(l), right(r) {}


Member Function Documentation

bool otk::Strut::operator== const Strut &    o const [inline]
 

Definition at line 27 of file strut.hh.

References bottom, left, right, and top.

00027                                         {
00028     return top == o.top && bottom == o.bottom && left == o.left &&
00029       right == o.right;
00030   }


Member Data Documentation

unsigned int otk::Strut::bottom
 

The margin on the bottom of the Strut.

Definition at line 16 of file strut.hh.

Referenced by ob::Frame::adjustSize(), ob::Screen::calcArea(), ob::Frame::clientGravity(), ob::Frame::frameGravity(), ob::Client::maximize(), operator==(), ob::Screen::updateStrut(), and ob::Client::updateStrut().

unsigned int otk::Strut::left
 

The margin on the left of the Strut.

Definition at line 18 of file strut.hh.

Referenced by ob::Frame::adjustShape(), ob::Frame::adjustSize(), ob::Screen::calcArea(), ob::Frame::clientGravity(), ob::Frame::frameGravity(), ob::Client::internal_move(), operator==(), ob::Screen::updateStrut(), and ob::Client::updateStrut().

unsigned int otk::Strut::right
 

The margin on the right of the Strut.

Definition at line 20 of file strut.hh.

Referenced by ob::Frame::adjustSize(), ob::Screen::calcArea(), ob::Frame::clientGravity(), ob::Frame::frameGravity(), operator==(), ob::Screen::updateStrut(), and ob::Client::updateStrut().

unsigned int otk::Strut::top
 

The margin on the top of the Strut.

Definition at line 14 of file strut.hh.

Referenced by ob::Frame::adjustShape(), ob::Frame::adjustSize(), ob::Screen::calcArea(), ob::Frame::clientGravity(), ob::Frame::frameGravity(), ob::Client::internal_move(), ob::Client::maximize(), operator==(), ob::Screen::updateStrut(), and ob::Client::updateStrut().


The documentation for this struct was generated from the following file:
Generated on Tue Feb 4 23:00:29 2003 for Openbox by doxygen1.3-rc2