Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

eRect Class Reference

Rect class. More...

#include <CAUGuiTools.h>

List of all members.

Public Member Functions

 eRect ()
 construct empty eRect

 eRect (SInt32 a, SInt32 b, SInt32 c, SInt32 d)
 construct eRect

void offset (SInt32 a, SInt32 b)
 move by

void at (SInt32 a, SInt32 b)
 move to

void size (SInt32 c, SInt32 d)
 set height and width

void grow (SInt32 a, SInt32 b)
 expand border by a, b pixels (width, height respectively)

void grow (SInt32 a, SInt32 b, SInt32 c, SInt32 d)
 expand border by a, b, c, d pixels (horizontal position, vertical position, width, height respectively)

void align (CAUGuiAlign align)
 align to self

void align (eRect *r, CAUGuiAlign align)
 align to another erect

void set (eRect *from)
 clone values from another erect

void set (SInt32 X, SInt32 Y, SInt32 W, SInt32 H)
 set x, y, w, h directly

void to (Rect *r)
 transform eRect to common Carbon Rect

void to (CGRect *r, UInt32 winH)
 transform eRect to CoreGraphics CGRect, needs Window height


Public Attributes

SInt32 x
SInt32 y
SInt32 w
SInt32 h


Detailed Description

Rect class.

an x, y, w, h dimension/position object

Definition at line 156 of file CAUGuiTools.h.


Constructor & Destructor Documentation

eRect::eRect  )  [inline]
 

construct empty eRect

Definition at line 161 of file CAUGuiTools.h.

References h, w, x, and y.

eRect::eRect SInt32  a,
SInt32  b,
SInt32  c,
SInt32  d
[inline]
 

construct eRect

Parameters:
a vertical position (x)
b horizontal position (y)
c width (w)
d height (h)

Definition at line 171 of file CAUGuiTools.h.

References h, w, x, and y.


Member Function Documentation

void eRect::align eRect r,
CAUGuiAlign  align
 

align to another erect

Definition at line 37 of file CAUGuiTools.cpp.

References h, w, x, and y.

void eRect::align CAUGuiAlign  align  ) 
 

align to self

Definition at line 25 of file CAUGuiTools.cpp.

References set().

Referenced by CAUGuiScheme::get().

void eRect::at SInt32  a,
SInt32  b
[inline]
 

move to

Definition at line 177 of file CAUGuiTools.h.

References x, and y.

void eRect::grow SInt32  a,
SInt32  b,
SInt32  c,
SInt32  d
[inline]
 

expand border by a, b, c, d pixels (horizontal position, vertical position, width, height respectively)

Definition at line 186 of file CAUGuiTools.h.

References h, w, x, and y.

void eRect::grow SInt32  a,
SInt32  b
[inline]
 

expand border by a, b pixels (width, height respectively)

Definition at line 183 of file CAUGuiTools.h.

References h, w, x, and y.

Referenced by CAUGuiCroppingImage::draw(), and CAUGuiCtrl::shrinkForeBounds().

void eRect::offset SInt32  a,
SInt32  b
[inline]
 

move by

Definition at line 174 of file CAUGuiTools.h.

References x, and y.

Referenced by CAUGuiCroppingImage::draw(), CAUGuiHandleImage::draw(), CAUGuiScheme::get(), and CAUGuiCtrl::setOffset().

void eRect::set SInt32  X,
SInt32  Y,
SInt32  W,
SInt32  H
[inline]
 

set x, y, w, h directly

Definition at line 198 of file CAUGuiTools.h.

References h, w, x, and y.

void eRect::set eRect from  )  [inline]
 

clone values from another erect

Definition at line 195 of file CAUGuiTools.h.

References h, w, x, and y.

Referenced by CAUGuiScheme::add(), align(), CAUGuiCtrl::CAUGuiCtrl(), CAUGuiLabel::CAUGuiLabel(), CAUGuiLabel::draw(), CAUGuiLayeredPane::draw(), CAUGuiCroppingImage::draw(), CAUGuiHandleImage::draw(), CAUGuiScheme::get(), CAUGuiSelector::mouseDown(), CAUGuiSlider::mouseTrack(), CAUGuiCtrl::setBounds(), and CAUGuiCtrl::setForeBounds().

void eRect::size SInt32  c,
SInt32  d
[inline]
 

set height and width

Definition at line 180 of file CAUGuiTools.h.

References h, and w.

void eRect::to CGRect *  r,
UInt32  winH
[inline]
 

transform eRect to CoreGraphics CGRect, needs Window height

Definition at line 204 of file CAUGuiTools.h.

References h, w, x, and y.

void eRect::to Rect *  r  )  [inline]
 

transform eRect to common Carbon Rect

Definition at line 201 of file CAUGuiTools.h.

References h, w, x, and y.

Referenced by CAUGuiLayeredPane::clip(), CAUGuiCtrl::clip(), CAUGuiGraphic::draw(), CAUGuiSlider::draw(), CAUGuiSelector::draw(), CAUGuiCroppingImage::draw(), CAUGuiHandleImage::draw(), CAUGuiSpinImage::draw(), CAUGuiMeter::draw(), CAUGuiKnob::draw(), CAUGuiDisplay::draw(), CAUGuiButton::draw(), CAUGuiCtrl::getBounds(), and CAUGuiCtrl::getForeBounds().


Member Data Documentation

SInt32 eRect::h
 

height

Definition at line 215 of file CAUGuiTools.h.

Referenced by align(), CAUGuiKnob::CAUGuiKnob(), CAUGuiLabel::CAUGuiLabel(), CAUGuiSelector::CAUGuiSelector(), CAUGuiSlider::CAUGuiSlider(), CAUGuiLabel::draw(), CAUGuiGraphic::draw(), CAUGuiCroppingImage::draw(), CAUGuiHandleImage::draw(), CAUGuiKnob::draw(), eRect(), CAUGuiScheme::getS(), grow(), CAUGuiSelector::mouseDown(), CAUGuiSlider::mouseTrack(), set(), size(), and to().

SInt32 eRect::w
 

width

Definition at line 214 of file CAUGuiTools.h.

Referenced by align(), CAUGuiKnob::CAUGuiKnob(), CAUGuiLabel::CAUGuiLabel(), CAUGuiSelector::CAUGuiSelector(), CAUGuiSlider::CAUGuiSlider(), CAUGuiLabel::draw(), CAUGuiCroppingImage::draw(), CAUGuiHandleImage::draw(), CAUGuiKnob::draw(), eRect(), CAUGuiScheme::getS(), grow(), CAUGuiSelector::mouseDown(), CAUGuiSlider::mouseTrack(), CAUGuiDisplay::mouseTrack(), set(), size(), and to().

SInt32 eRect::x
 

horizontal position

Definition at line 212 of file CAUGuiTools.h.

Referenced by CAUGuiLayeredPane::addCtrl(), CAUGuiCtrl::addCtrl(), CAUGuiLayeredPane::addCtrlToGroup(), align(), at(), CAUGuiLabel::draw(), CAUGuiKnob::draw(), eRect(), grow(), CAUGuiSelector::mouseDown(), PoofButton::mouseDown(), CAUGuiSlider::mouseTrack(), offset(), set(), and to().

SInt32 eRect::y
 

vertical position

Definition at line 213 of file CAUGuiTools.h.

Referenced by CAUGuiLayeredPane::addCtrl(), CAUGuiCtrl::addCtrl(), CAUGuiLayeredPane::addCtrlToGroup(), align(), at(), CAUGuiLabel::draw(), CAUGuiKnob::draw(), eRect(), grow(), CAUGuiSelector::mouseDown(), PoofButton::mouseDown(), CAUGuiSlider::mouseTrack(), offset(), set(), and to().


The documentation for this class was generated from the following files:
(c) 2002 - 2003 by Urs Heckmann www.u-he.com
Generated on Thu May 6 15:13:15 2004 for CAUGui by doxygen 1.3.6