Pentagram::Rect Struct Reference

#include <Rect.h>

List of all members.

Public Member Functions

 Rect ()
 Rect (int nx, int ny, int nw, int nh)
 Rect (const Rect &o)
void Set (int nx, int ny, int nw, int nh)
void Set (Rect &o)
bool IsValid () const
bool InRect (int px, int py) const
void MoveRel (sint32 dx, sint32 dy)
void MoveAbs (sint32 nx, sint32 ny)
void ResizeRel (sint32 dw, sint32 dh)
void ResizeAbs (sint32 nw, sint32 nh)
void Intersect (int ox, int oy, int ow, int oh)
void IntersectOther (int &ox, int &oy, int &ow, int &oh) const
void Intersect (const Rect &o)
void Union (int ox, int oy, int ow, int oh)
void Union (const Rect &o)
bool Overlaps (const Rect &o) const
Rectoperator+= (const Rect &o)
Rectoperator+ (const Rect &o) const
bool operator== (const Rect &o) const

Public Attributes

sint32 x
sint32 y
sint32 w
sint32 h


Detailed Description

Definition at line 24 of file Rect.h.


Constructor & Destructor Documentation

Pentagram::Rect::Rect (  )  [inline]

Definition at line 28 of file Rect.h.

Pentagram::Rect::Rect ( int  nx,
int  ny,
int  nw,
int  nh 
) [inline]

Definition at line 29 of file Rect.h.

Pentagram::Rect::Rect ( const Rect o  )  [inline]

Definition at line 30 of file Rect.h.


Member Function Documentation

bool Pentagram::Rect::InRect ( int  px,
int  py 
) const [inline]

Definition at line 39 of file Rect.h.

References h, w, x, and y.

Referenced by PaperdollGump::DraggingItem(), PaperdollGump::DropItem(), Gump::PointOnGump(), ButtonWidget::PointOnGump(), and PaperdollGump::TraceObjId().

void Pentagram::Rect::Intersect ( const Rect o  )  [inline]

Definition at line 99 of file Rect.h.

References h, Intersect(), w, x, and y.

void Pentagram::Rect::Intersect ( int  ox,
int  oy,
int  ow,
int  oh 
) [inline]

Definition at line 54 of file Rect.h.

References h, w, x, and y.

Referenced by BaseSoftRenderSurface::CheckClipped(), Intersect(), Gump::Paint(), Gump::PaintCompositing(), and BaseSoftRenderSurface::SetClippingRect().

void Pentagram::Rect::IntersectOther ( int &  ox,
int &  oy,
int &  ow,
int &  oh 
) const [inline]

Definition at line 77 of file Rect.h.

References h, w, x, and y.

Referenced by SoftRenderSurface< uintX >::Blit(), SoftRenderSurface< uintX >::FadedBlit(), SoftRenderSurface< uintX >::Fill32(), SoftRenderSurface< uintX >::FillAlpha(), and SoftRenderSurface< uintX >::MaskedBlit().

bool Pentagram::Rect::IsValid (  )  const [inline]

Definition at line 36 of file Rect.h.

References h, and w.

Referenced by BaseSoftRenderSurface::CheckClipped().

void Pentagram::Rect::MoveAbs ( sint32  nx,
sint32  ny 
) [inline]

Definition at line 45 of file Rect.h.

References x, and y.

void Pentagram::Rect::MoveRel ( sint32  dx,
sint32  dy 
) [inline]

Definition at line 42 of file Rect.h.

References x, and y.

Referenced by BaseSoftRenderSurface::SetOrigin().

Rect& Pentagram::Rect::operator+ ( const Rect o  )  const [inline]

Definition at line 141 of file Rect.h.

Rect& Pentagram::Rect::operator+= ( const Rect o  )  [inline]

Definition at line 134 of file Rect.h.

References h, Union(), w, x, and y.

bool Pentagram::Rect::operator== ( const Rect o  )  const [inline]

Definition at line 147 of file Rect.h.

References h, w, x, and y.

bool Pentagram::Rect::Overlaps ( const Rect o  )  const [inline]

Definition at line 126 of file Rect.h.

References h, w, x, and y.

Referenced by CurrentMap::areaSearch().

void Pentagram::Rect::ResizeAbs ( sint32  nw,
sint32  nh 
) [inline]

Definition at line 51 of file Rect.h.

References h, and w.

Referenced by BaseSoftRenderSurface::BaseSoftRenderSurface().

void Pentagram::Rect::ResizeRel ( sint32  dw,
sint32  dh 
) [inline]

Definition at line 48 of file Rect.h.

References h, and w.

void Pentagram::Rect::Set ( Rect o  )  [inline]

Definition at line 33 of file Rect.h.

void Pentagram::Rect::Set ( int  nx,
int  ny,
int  nw,
int  nh 
) [inline]

Definition at line 32 of file Rect.h.

References h, w, x, and y.

Referenced by BaseSoftRenderSurface::GetSurfaceDims(), Gump::loadData(), and ContainerGump::loadData().

void Pentagram::Rect::Union ( const Rect o  )  [inline]

Definition at line 121 of file Rect.h.

References h, Union(), w, x, and y.

void Pentagram::Rect::Union ( int  ox,
int  oy,
int  ow,
int  oh 
) [inline]

Definition at line 105 of file Rect.h.

References h, w, x, and y.

Referenced by operator+=(), and Union().


Member Data Documentation

sint32 Pentagram::Rect::h

Definition at line 26 of file Rect.h.

Referenced by ControlsGump::addEntry(), CalcFastAreaLimits(), PaperdollGump::DraggingItem(), ContainerGump::DraggingItem(), drawbox(), drawdot(), drawedge(), GameMapGump::GameMapGump(), ContainerGump::getItemCoords(), ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), GUIApp::getMouseDirection(), GUIApp::getMouseLength(), GUIApp::GraphicSysInit(), ScalerGump::GumpToParent(), InverterGump::GumpToParent(), ControlEntryGump::init(), U8SaveGump::InitGump(), TextWidget::InitGump(), SlidingWidget::InitGump(), SliderGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), PagedGump::InitGump(), OptionsGump::InitGump(), MiniStatsGump::InitGump(), MenuGump::InitGump(), ControlsGump::InitGump(), ContainerGump::InitGump(), ButtonWidget::InitGump(), BookGump::InitGump(), BarkGump::InitGump(), AskGump::InitGump(), InRect(), Intersect(), IntersectOther(), IsValid(), TextWidget::loadData(), BarkGump::loadData(), AskGump::loadData(), ItemRelativeGump::MoveOnScreen(), BarkGump::NextText(), operator+=(), operator==(), Overlaps(), PentagramMenuGump::PaintChildren(), InverterGump::PaintChildren(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), Gump::PaintCompositing(), TextWidget::PaintThis(), ShapeViewerGump::PaintThis(), PentagramMenuGump::PaintThis(), Gump::PaintThis(), EditWidget::PaintThis(), DesktopGump::PaintThis(), ConsoleGump::PaintThis(), BindGump::PaintThis(), ScalerGump::ParentToGump(), InverterGump::ParentToGump(), ScalerGump::RenderSurfaceChanged(), GameMapGump::RenderSurfaceChanged(), DesktopGump::RenderSurfaceChanged(), ConsoleGump::RenderSurfaceChanged(), EditWidget::renderText(), ResizeAbs(), ResizeRel(), Gump::saveData(), ContainerGump::saveData(), ButtonWidget::saveData(), Set(), BaseSoftRenderSurface::SetFlipped(), GUIApp::setMouseCoords(), Gump::setRelativePosition(), Gump::SetShape(), GUIApp::setupCoreGumps(), TextWidget::setupNextText(), ScalerGump::SetupScalers(), GUIApp::shutdownGame(), GUIApp::startupPentagramMenu(), EditWidget::textFits(), ShapeViewerGump::U8ShapeViewer(), Union(), and CurrentMap::updateFastArea().

sint32 Pentagram::Rect::w

Definition at line 26 of file Rect.h.

Referenced by ControlsGump::addEntry(), CalcFastAreaLimits(), PaperdollGump::DraggingItem(), ContainerGump::DraggingItem(), drawbox(), drawdot(), drawedge(), GameMapGump::GameMapGump(), ContainerGump::getItemCoords(), ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), GUIApp::getMouseDirection(), GUIApp::getMouseLength(), GUIApp::GraphicSysInit(), ScalerGump::GumpToParent(), U8SaveGump::InitGump(), TextWidget::InitGump(), SlidingWidget::InitGump(), SliderGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), PagedGump::InitGump(), OptionsGump::InitGump(), MiniStatsGump::InitGump(), MenuGump::InitGump(), ControlsGump::InitGump(), ContainerGump::InitGump(), ButtonWidget::InitGump(), BookGump::InitGump(), BarkGump::InitGump(), AskGump::InitGump(), InRect(), Intersect(), IntersectOther(), IsValid(), TextWidget::loadData(), BarkGump::loadData(), AskGump::loadData(), ItemRelativeGump::MoveOnScreen(), BarkGump::NextText(), U8SaveGump::OnMouseClick(), operator+=(), operator==(), Overlaps(), GUIApp::paint(), InverterGump::PaintChildren(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), Gump::PaintCompositing(), TextWidget::PaintThis(), ShapeViewerGump::PaintThis(), PentagramMenuGump::PaintThis(), Gump::PaintThis(), EditWidget::PaintThis(), DesktopGump::PaintThis(), BindGump::PaintThis(), ScalerGump::ParentToGump(), ScalerGump::RenderSurfaceChanged(), GameMapGump::RenderSurfaceChanged(), DesktopGump::RenderSurfaceChanged(), ConsoleGump::RenderSurfaceChanged(), EditWidget::renderText(), ResizeAbs(), ResizeRel(), Gump::saveData(), ContainerGump::saveData(), ButtonWidget::saveData(), Set(), GUIApp::setMouseCoords(), Gump::setRelativePosition(), Gump::SetShape(), GUIApp::setupCoreGumps(), TextWidget::setupNextText(), ScalerGump::SetupScalers(), GUIApp::shutdownGame(), GUIApp::startupPentagramMenu(), EditWidget::textFits(), ShapeViewerGump::U8ShapeViewer(), Union(), and CurrentMap::updateFastArea().

sint32 Pentagram::Rect::x

Definition at line 25 of file Rect.h.

Referenced by PaperdollGump::DraggingItem(), ContainerGump::DraggingItem(), PaperdollGump::DropItem(), ContainerGump::DropItem(), GameMapGump::GameMapGump(), ContainerGump::getItemCoords(), PaperdollGump::GetLocationOfItem(), InverterGump::GumpToParent(), Gump::GumpToParent(), TextWidget::InitGump(), EditWidget::InitGump(), InRect(), Intersect(), IntersectOther(), MoveAbs(), ItemRelativeGump::MoveOnScreen(), MoveRel(), operator+=(), operator==(), Overlaps(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), Gump::PaintCompositing(), TextWidget::PaintThis(), PaperdollGump::PaintThis(), Gump::PaintThis(), EditWidget::PaintThis(), ContainerGump::PaintThis(), InverterGump::ParentToGump(), Gump::ParentToGump(), GameMapGump::RenderSurfaceChanged(), Gump::saveData(), ContainerGump::saveData(), Set(), GUIApp::setMouseCoords(), TextWidget::setupNextText(), PaperdollGump::TraceObjId(), and Union().

sint32 Pentagram::Rect::y

Definition at line 25 of file Rect.h.

Referenced by PaperdollGump::DraggingItem(), ContainerGump::DraggingItem(), PaperdollGump::DropItem(), ContainerGump::DropItem(), GameMapGump::GameMapGump(), ContainerGump::getItemCoords(), PaperdollGump::GetLocationOfItem(), InverterGump::GumpToParent(), Gump::GumpToParent(), TextWidget::InitGump(), EditWidget::InitGump(), ButtonWidget::InitGump(), InRect(), Intersect(), IntersectOther(), TextWidget::loadData(), ButtonWidget::loadData(), MoveAbs(), ItemRelativeGump::MoveOnScreen(), MoveRel(), operator+=(), operator==(), Overlaps(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), Gump::PaintCompositing(), TextWidget::PaintThis(), PaperdollGump::PaintThis(), Gump::PaintThis(), EditWidget::PaintThis(), ContainerGump::PaintThis(), InverterGump::ParentToGump(), Gump::ParentToGump(), GameMapGump::RenderSurfaceChanged(), Gump::saveData(), ContainerGump::saveData(), Set(), BaseSoftRenderSurface::SetFlipped(), GUIApp::setMouseCoords(), TextWidget::setupNextText(), PaperdollGump::TraceObjId(), and Union().


The documentation for this struct was generated from the following file:
Generated on Fri Jul 27 22:30:35 2007 for pentagram by  doxygen 1.4.7