Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

Position Class Reference

Relative position of a rectangle in a box. More...

#include <position.hpp>

List of all members.

Public Types

enum  Ref_t { kLeftTop, kRightTop, kLeftBottom, kRightBottom }
 Type for reference edge/corner. More...

Public Member Functions

 Position (int left, int top, int right, int bottom, const Box &rBox, Ref_t refLeftTop=kLeftTop, Ref_t refRightBottom=kLeftTop)
 Create a new position relative to the given box.
int getLeft () const
 Get the position relative to the left top corner of the box.
int getWidth () const
 Get the size of the rectangle.


Detailed Description

Relative position of a rectangle in a box.

Definition at line 64 of file position.hpp.


Member Enumeration Documentation

enum Position::Ref_t
 

Type for reference edge/corner.

Enumeration values:
kLeftTop  Coordinates are relative to the upper left corner.
kRightTop  Coordinates are relative to the upper right corner.
kLeftBottom  Coordinates are relative to the lower left corner.
kRightBottom  Coordinates are relative to the lower right corner.

Definition at line 68 of file position.hpp.


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 10:15:04 2005 for vlc-0.8.4a by  doxygen 1.4.2