Float Class Reference

#include <float.h>

List of all members.

Static Public Member Functions

static void resize (Rectangle *rect, Direction dir, int stepW, int stepH)
static void move (Rectangle *rect, int stepW, int stepH)
static void center (Rectangle *rect, Rectangle *parentRect)


Detailed Description

Provides base algorithms for moving and resizing rectangles in a floating manner.

Definition at line 17 of file float.h.


Member Function Documentation

void Float::resize ( Rectangle rect,
Direction  dir,
int  stepW,
int  stepH 
) [static]

Used for resizing.

Definition at line 11 of file float.cpp.

References DOWN, Rectangle::height(), LEFT, NORTH_EAST, NORTH_WEST, RIGHT, Rectangle::setHeight(), Rectangle::setWidth(), Rectangle::setX(), Rectangle::setY(), SOUTH_EAST, SOUTH_WEST, UP, Rectangle::width(), Rectangle::x(), and Rectangle::y().

Referenced by Workspace::resizeClient(), and Kernel::runResizeMode().

Here is the call graph for this function:

void Float::move ( Rectangle rect,
int  stepW,
int  stepH 
) [static]

Definition at line 60 of file float.cpp.

References Rectangle::setX(), Rectangle::setY(), Rectangle::x(), and Rectangle::y().

Referenced by Workspace::moveClient(), and Kernel::runResizeMode().

Here is the call graph for this function:

void Float::center ( Rectangle rect,
Rectangle parentRect 
) [static]

Definition at line 65 of file float.cpp.

References Rectangle::height(), Rectangle::setX(), Rectangle::setY(), Rectangle::width(), Rectangle::x(), and Rectangle::y().

Referenced by Workspace::attachClient().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu May 24 15:20:04 2007 for ncwm by  doxygen 1.5.1