#include <Rect.h>
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 |
Rect & | operator+= (const Rect &o) |
Rect & | operator+ (const Rect &o) const |
bool | operator== (const Rect &o) const |
Public Attributes | |
sint32 | x |
sint32 | y |
sint32 | w |
sint32 | h |
Definition at line 24 of file Rect.h.
Pentagram::Rect::Rect | ( | int | nx, | |
int | ny, | |||
int | nw, | |||
int | nh | |||
) | [inline] |
bool Pentagram::Rect::InRect | ( | int | px, | |
int | py | |||
) | const [inline] |
Definition at line 39 of file Rect.h.
Referenced by PaperdollGump::DraggingItem(), PaperdollGump::DropItem(), Gump::PointOnGump(), ButtonWidget::PointOnGump(), and PaperdollGump::TraceObjId().
void Pentagram::Rect::Intersect | ( | const Rect & | o | ) | [inline] |
void Pentagram::Rect::Intersect | ( | int | ox, | |
int | oy, | |||
int | ow, | |||
int | oh | |||
) | [inline] |
Definition at line 54 of file Rect.h.
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.
Referenced by SoftRenderSurface< uintX >::Blit(), SoftRenderSurface< uintX >::FadedBlit(), SoftRenderSurface< uintX >::Fill32(), SoftRenderSurface< uintX >::FillAlpha(), and SoftRenderSurface< uintX >::MaskedBlit().
bool Pentagram::Rect::IsValid | ( | ) | const [inline] |
bool Pentagram::Rect::operator== | ( | const Rect & | o | ) | const [inline] |
bool Pentagram::Rect::Overlaps | ( | const Rect & | o | ) | const [inline] |
void Pentagram::Rect::Set | ( | int | nx, | |
int | ny, | |||
int | nw, | |||
int | nh | |||
) | [inline] |
Definition at line 32 of file Rect.h.
Referenced by BaseSoftRenderSurface::GetSurfaceDims(), Gump::loadData(), and ContainerGump::loadData().
void Pentagram::Rect::Union | ( | const Rect & | o | ) | [inline] |
void Pentagram::Rect::Union | ( | int | ox, | |
int | oy, | |||
int | ow, | |||
int | oh | |||
) | [inline] |
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().
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().
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().
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().