Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PG_Rect Class Reference

Encapsulation of the SDL_Rect structure. More...

#include <pgrect.h>

Inheritance diagram for PG_Rect:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PG_Rect (Sint16 x=0, Sint16 y=0, Uint16 w=0, Uint16 h=0)
 Create a new PG_Rect object with give values.
 PG_Rect (const PG_Rect &src)
 Create a new PG_Rect from a reference.
 PG_Rect (const SDL_Rect &src)
 Create a new PG_Rect from a SDL_Rect structure.
virtual ~PG_Rect ()
void SetRect (Sint16 nx, Sint16 ny, Uint16 nw, Uint16 nh)
 Set the position of the rectangle.
PG_Rectoperator= (const SDL_Rect &src)
PG_Rectoperator= (const PG_Rect &src)
PG_Rect operator/ (const PG_Rect &b) const
bool operator== (const PG_Rect &r) const
bool operator!= (const PG_Rect &r) const
bool IsInside (const PG_Point &p) const
 Check if a given point is inside a rectangle (boxtest).
PG_Rect IntersectRect (const PG_Rect &p) const
 Intersect two rectangles.
Uint16 Width () const
 Return the width of the rectangle.
Uint16 Height () const
 Return the height of the rectangle.
bool IsNull () const
bool OverlapRect (const PG_Rect &p, const PG_Rect &c) const
 Check if two rectangles overlap.
bool OverlapRect (const PG_Rect &p) const
 Check if this rectangle overlap another one.
bool OverlapRect (PG_Rect *p)
 Check if this rectangle overlap another one.
PG_Widgetnext ()
 Get the next Rectangle from the list Moves to the next rectangle in the list.
PG_Widgetprev ()
 Get the previous Rectangle from the list Moves to the previous rectangle in the list.

Static Public Member Functions

static bool IsInside (const PG_Point &p, PG_Rect &r)
 Check if a given point is inside a rectangle (boxtest).
static PG_Rect IntersectRect (const PG_Rect &p, const PG_Rect &c)
 Intersect two rectangles.

Public Attributes

Sint16 & my_xpos
Sint16 & my_ypos
Uint16 & my_width
Uint16 & my_height
Uint32 index

Static Public Attributes

static PG_Rect null

Protected Attributes

PG_Widgetmy_next
PG_Widgetmy_prev

Friends

class PG_RectList

Detailed Description

Encapsulation of the SDL_Rect structure.

Author:
Alexander Pipelka

Definition at line 45 of file pgrect.h.


Constructor & Destructor Documentation

PG_Rect::PG_Rect Sint16  x = 0,
Sint16  y = 0,
Uint16  w = 0,
Uint16  h = 0
 

Create a new PG_Rect object with give values.

Parameters:
x x-startposition
y y-startposition
w width
h height
Initializes the created PG_Rect object with x/y postions and width/height

Definition at line 33 of file pgrect.cpp.

References SetRect().

Referenced by PG_MenuBar::Add(), TextRenderer::addAbsPosition(), TextRenderer::addIndentation(), VehicleProduction_SelectionWindow::addProductionLine(), ASC_PG_Dialog::AddStandardButton(), AddWeatherAreaDialog::AddWeatherAreaDialog(), AddWindChangeDialog::AddWindChangeDialog(), AdminGameWindow::AdminGameWindow(), AllianceSetupWidget::AllianceSetupWidget(), AllianceSetupWindow::AllianceSetupWindow(), AmmoTransferWindow::AmmoTransferWindow(), ASC_MainScreenWidget::ASC_MainScreenWidget(), AuthenticationDialog::AuthenticationDialog(), BitMapEditor::BitMapEditor(), BuildingTypeBaseWidget::BuildingTypeBaseWidget(), BuildingTypeCountWidget::BuildingTypeCountWidget(), BuildingTypeResourceWidget::BuildingTypeResourceWidget(), ChanceSettingsDialog::buildUpForm(), ResourcePlacementDialog::buttonEvent(), CargoEditor::CargoEditor(), ChangePasswordDialog::ChangePasswordDialog(), ChooseTech::ChooseTech(), CopyMap::CopyMap(), PG_ThemeWidget::CreateThemedSurface(), SoundSettings::diag(), MapDisplayPG::displayUnitMovement(), PG_Widget::DrawText(), EditGameOptions::EditGameOptions(), EditMapParameters::EditMapParameters(), EditPlayerData::EditPlayerData(), EmailSetupWidget::EmailSetupWidget(), EventAreasDialog::EventAreasDialog(), PG_ThemeWidget::eventBlit(), PG_ListBoxItem::eventBlit(), PG_Image::eventBlit(), PG_ColumnItem::eventBlit(), PG_Button::eventBlit(), EventEditor::EventEditor(), ASC_MainScreenWidget::eventKeyDown(), EventList::EventList(), EventWindChangesDialog::EventWindChangesDialog(), ExchangeGraphics::ExchangeGraphics(), FileFindDialog::FileFindDialog(), FileSelectionWindow::FileSelectionWindow(), FileWidget::FileWidget(), FontViewer::FontViewer(), GameParameterEditorWidget::GameParameterEditorWidget(), NewGuiHost::getButton(), ExperienceOverview::getSize(), NewGuiHost::getSmallButton(), GotoPosition::GotoPosition(), ImportBI3MapDialog::ImportBI3MapDialog(), IngameMessageViewer::IngameMessageViewer(), InternalAmmoTransferWidget::InternalAmmoTransferWidget(), InternalAmmoTransferWindow::InternalAmmoTransferWindow(), ItemLocator::ItemLocator(), ItemSelectorWidget::ItemSelectorWidget(), ItemSelectorWindow::ItemSelectorWindow(), TextRenderer::layout(), ListBoxImageItem< SelectionType >::ListBoxImageItem(), MailOptionsDialog::MailOptionsDialog(), Maped_MainScreenWidget::Maped_MainScreenWidget(), MessageDialog::MessageDialog(), MessageLineWidget::MessageLineWidget(), MessageSelectionWindow::MessageSelectionWindow(), MultiLineEditorDialog::MultiLineEditorDialog(), MultiListBox::MultiListBox(), NewMap::NewMap(), NewMessage::NewMessage(), NewStringChooser::NewStringChooser(), PasswordDialog::PasswordDialog(), PG_ColorSelector::PG_ColorSelector(), PG_MultiLineEdit::PG_MultiLineEdit(), PG_PopupMenu::PG_PopupMenu(), PG_ScrollWidget::PG_ScrollWidget(), PG_Window::PG_Window(), PlayerColorPanel::PlayerColorPanel(), PlayerSetupWidget::PlayerSetupWidget(), PlayerSetupWindow::PlayerSetupWindow(), ProductionEditorWindow::ProductionEditorWindow(), PG_Window::RecalcPositions(), PG_PropertyEditor::RegisterProperty(), ItemSelectorWidget::reLoad(), ReplayRecorderDialog::ReplayRecorderDialog(), ResourcePlacementDialog::ResourcePlacementDialog(), SaveGameBaseDialog::SaveGameBaseDialog(), SelectFromMap::SelectFromMap(), DiplomaticModeChooser< SelectionType >::selectMode(), Maped_MainScreenWidget::setupStatusBar(), ChooseTech::showPrerequisites(), NewGuiHost::showSmallIcons(), SoundSettings::soundSettings(), SoundSettings::SoundSettings(), MainScreenWidget::spawnOverviewMapPanel(), ASC_MainScreenWidget::spawnPanel(), StringEditor::StringEditor(), TechWidget::TechWidget(), TransferWidget::TransferWidget(), PG_Widget::UpdateScreen(), StartMultiplayerGame::userHandler(), CargoDialog::userHandler(), VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow(), VehicleTypeBaseWidget::VehicleTypeBaseWidget(), VehicleTypeCountLocateWidget::VehicleTypeCountLocateWidget(), VehicleTypeCountWidget::VehicleTypeCountWidget(), VehicleTypeResourceWidget::VehicleTypeResourceWidget(), ViewFormattedText::ViewFormattedText(), ViewTextQuery::ViewTextQuery(), Weathercast::Weathercast(), WeatherDialog::WeatherDialog(), and WeatherPanel::WeatherPanel().

PG_Rect::PG_Rect const PG_Rect src  ) 
 

Create a new PG_Rect from a reference.

Parameters:
src reference rectangle
Initializes the created PG_Rect object with the position of the reference rectangle

Definition at line 44 of file pgrect.cpp.

PG_Rect::PG_Rect const SDL_Rect &  src  ) 
 

Create a new PG_Rect from a SDL_Rect structure.

Parameters:
src source SDL_Rect structure
Initializes the created PG_Rect object with the position of the SDL_Rect structure

Definition at line 54 of file pgrect.cpp.

PG_Rect::~PG_Rect  )  [virtual]
 

Definition at line 64 of file pgrect.cpp.


Member Function Documentation

Uint16 PG_Rect::Height  )  const [inline]
 

Return the height of the rectangle.

Returns:
height

Reimplemented in PG_PopupMenu::MenuItem.

Definition at line 157 of file pgrect.h.

Referenced by PG_ListBox::AddChild(), ASC_PG_Dialog::AddStandardButton(), AddWeatherAreaDialog::AddWeatherAreaDialog(), AddWindChangeDialog::AddWindChangeDialog(), AdminGameWindow::AdminGameWindow(), AllianceSetupWindow::AllianceSetupWindow(), ASC_MainScreenWidget::ASC_MainScreenWidget(), AuthenticationDialog::AuthenticationDialog(), BitMapEditor::BitMapEditor(), MapDisplayPG::blitInternalSurface(), ChanceSettingsDialog::buildUpForm(), ResourcePlacementDialog::buttonEvent(), CargoEditor::CargoEditor(), PG_ScrollWidget::CheckScrollBars(), ChooseTech::ChooseTech(), MapDisplayPG::displayMovementStep(), PG_Widget::DrawText(), EditGameOptions::EditGameOptions(), EditMapParameters::EditMapParameters(), EventAreasDialog::EventAreasDialog(), PG_ThemeWidget::eventBlit(), PG_RichEdit::eventBlit(), PG_Button::eventBlit(), GraphWidget::eventBlit(), SelectionItemWidget::eventDraw(), TextRenderer::eventKeyDown(), EventList::EventList(), EventWindChangesDialog::EventWindChangesDialog(), FileSelectionWindow::FileSelectionWindow(), FileWidget::FileWidget(), GameParameterEditorWidget::GameParameterEditorWidget(), IngameMessageViewer::IngameMessageViewer(), ItemSelectorWidget::ItemSelectorWidget(), ItemSelectorWindow::ItemSelectorWindow(), TextRenderer::layout(), PG_ThemeWidget::LoadThemeStyle(), PG_ScrollWidget::LoadThemeStyle(), Maped_MainScreenWidget::Maped_MainScreenWidget(), MessageDialog::MessageDialog(), MessageLineWidget::MessageLineWidget(), MessageSelectionWindow::messageSelected(), MessageSelectionWindow::MessageSelectionWindow(), MultiLineEditorDialog::MultiLineEditorDialog(), NewMap::NewMap(), NewMessage::NewMessage(), NewStringChooser::NewStringChooser(), OverviewMapPanel::painter(), ASCGUI_Window::parseRect(), PG_ScrollWidget::PG_ScrollWidget(), PlayerSetupWindow::PlayerSetupWindow(), ItemSelectorWidget::reLoad(), ResourcePlacementDialog::ResourcePlacementDialog(), MapDisplayPG::screenPos2mapPos(), DiplomaticModeChooser< SelectionType >::selectMode(), MapDisplayPG::setNewZoom(), ASCGUI_Window::setup(), Maped_MainScreenWidget::setupStatusBar(), ASC_MainScreenWidget::spawnPanel(), StoringPosition::StoringPosition(), TechWidget::TechWidget(), UnitInfoDialog::userHandler(), CargoDialog::userHandler(), VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow(), VehicleTypeBaseWidget::VehicleTypeBaseWidget(), VehicleTypeCountLocateWidget::VehicleTypeCountLocateWidget(), ViewFormattedText::ViewFormattedText(), ViewTextQuery::ViewTextQuery(), WeatherDialog::WeatherDialog(), and WeatherPanel::WeatherPanel().

PG_Rect PG_Rect::IntersectRect const PG_Rect p  )  const
 

Intersect two rectangles.

Parameters:
p rectangle to intersect with
Returns:
resulting intersection rectangle

Definition at line 121 of file pgrect.cpp.

References IntersectRect().

PG_Rect PG_Rect::IntersectRect const PG_Rect p,
const PG_Rect c
[static]
 

Intersect two rectangles.

Parameters:
p reference rectangle
c rectangle to intersect with reference
Returns:
resulting intersection rectangle

Definition at line 66 of file pgrect.cpp.

References my_height, my_width, my_xpos, my_ypos, and SetRect().

Referenced by PG_RectList::Blit(), MapDisplayPG::blitInternalSurface(), MapDisplayPG::displayUnitMovement(), Emboss::eventBlit(), PG_Widget::GetClipRects(), IntersectRect(), operator/(), OverlapRect(), OverviewMapPanel::painter(), PG_Draw::DrawGradient(), and PG_Widget::RecalcClipRect().

bool PG_Rect::IsInside const PG_Point p  )  const [inline]
 

Check if a given point is inside a rectangle (boxtest).

Parameters:
p the point to test
Returns:
true if the point is inside the rectangle

Definition at line 126 of file pgrect.h.

static bool PG_Rect::IsInside const PG_Point p,
PG_Rect r
[inline, static]
 

Check if a given point is inside a rectangle (boxtest).

Parameters:
p the point to test
r the rectangle the point should be inside
Returns:
true if the point is inside the rectangle

Definition at line 116 of file pgrect.h.

References IsInside().

Referenced by PG_PopupMenu::eventMouseMotion(), PG_WidgetDnD::FindDropTarget(), PG_PopupMenu::handleClick(), IsInside(), PG_Widget::IsMouseInside(), and PG_Widget::SetPixel().

bool PG_Rect::IsNull  )  const [inline]
 

Definition at line 161 of file pgrect.h.

Referenced by PG_ScrollWidget::EnableScrollBar(), PG_Draw::DrawGradient(), PG_ScrollWidget::ScrollTo(), and PG_ScrollWidget::ScrollToWidget().

PG_Widget* PG_Rect::next  )  [inline]
 

Get the next Rectangle from the list Moves to the next rectangle in the list.

Definition at line 196 of file pgrect.h.

Referenced by PG_RectList::Blit(), PG_ScrollArea::DeleteAll(), PG_Widget::EnableReceiver(), PG_RectList::Find(), FindInChildObjects(), PG_WidgetList::FindIndex(), PG_WidgetList::FindWidget(), PG_ListBox::GetSelectedItems(), PG_WidgetList::GetWidgetFromPos(), PG_Widget::HideAll(), PG_Widget::MoveRect(), PG_Widget::ProcessEvent(), PG_Application::PumpIntoEventQueue(), PG_Widget::Redraw(), PG_RectList::Remove(), PG_Widget::RemoveAllChilds(), PG_ScrollArea::RemoveChild(), PG_ScrollArea::ScrollTo(), PG_ListBox::SetAlignment(), PG_Widget::SetChildTransparency(), PG_Widget::SetFontAlpha(), PG_Widget::SetFontColor(), PG_Widget::SetFontHighlightColor(), PG_Widget::SetFontName(), PG_Widget::SetFontSize(), PG_Widget::SetFontStyle(), PG_ListBox::SetIndent(), PG_Widget::SetTransparency(), PG_Button::SetTransparency(), PG_Widget::SetVisible(), StartMultiplayerGame::StartMultiplayerGame(), PG_Widget::Update(), PG_Widget::UpdateOverlappingSiblings(), and PG_ListBoxBaseItem::~PG_ListBoxBaseItem().

bool PG_Rect::operator!= const PG_Rect r  )  const [inline]
 

Definition at line 106 of file pgrect.h.

PG_Rect PG_Rect::operator/ const PG_Rect b  )  const
 

Definition at line 132 of file pgrect.cpp.

References IntersectRect().

PG_Rect & PG_Rect::operator= const PG_Rect src  ) 
 

Definition at line 125 of file pgrect.cpp.

References my_next, my_prev, and SetRect().

PG_Rect & PG_Rect::operator= const SDL_Rect &  src  ) 
 

Definition at line 136 of file pgrect.cpp.

bool PG_Rect::operator== const PG_Rect r  )  const [inline]
 

Definition at line 102 of file pgrect.h.

bool PG_Rect::OverlapRect PG_Rect p  )  [inline]
 

Check if this rectangle overlap another one.

Parameters:
p pointer to rectangle to check for overlap
Returns:
true if this rectangle an p overlap, false otherwise

Definition at line 188 of file pgrect.h.

bool PG_Rect::OverlapRect const PG_Rect p  )  const [inline]
 

Check if this rectangle overlap another one.

Parameters:
p rectangle to check for overlap
Returns:
true if this rectangle an p overlap, false otherwise

Definition at line 179 of file pgrect.h.

bool PG_Rect::OverlapRect const PG_Rect p,
const PG_Rect c
const [inline]
 

Check if two rectangles overlap.

Parameters:
p,c rectangles to check for overlap
Returns:
true if the rectangles overlap, false otherwise

Definition at line 170 of file pgrect.h.

References IntersectRect().

Referenced by PG_RectList::Blit().

PG_Widget* PG_Rect::prev  )  [inline]
 

Get the previous Rectangle from the list Moves to the previous rectangle in the list.

Definition at line 204 of file pgrect.h.

Referenced by PG_RectList::IsInside(), and PG_RectList::Remove().

void PG_Rect::SetRect Sint16  nx,
Sint16  ny,
Uint16  nw,
Uint16  nh
[inline]
 

Set the position of the rectangle.

Parameters:
nx x-startposition
ny y-startposition
nw width
nh height Moves the rectangle to the given values

Definition at line 85 of file pgrect.h.

Referenced by PG_Widget::Blit(), Draw3TileH(), Draw3TileV(), Draw9Tile(), PG_Widget::DrawHLine(), DrawTileSurface(), PG_Widget::DrawVLine(), IntersectRect(), operator=(), PG_Layout::GetParamRect(), PG_RadioButton::PG_RadioButton(), PG_Rect(), PG_SpinnerBox::PG_SpinnerBox(), PG_Widget::RecalcClipRect(), and PG_Widget::Update().

Uint16 PG_Rect::Width  )  const [inline]
 

Return the width of the rectangle.

Returns:
width

Reimplemented in PG_PopupMenu::MenuItem.

Definition at line 149 of file pgrect.h.

Referenced by PG_ListBox::AddChild(), ASC_PG_Dialog::AddStandardButton(), AddWeatherAreaDialog::AddWeatherAreaDialog(), AddWindChangeDialog::AddWindChangeDialog(), AdminGameWindow::AdminGameWindow(), AllianceSetupWindow::AllianceSetupWindow(), AmmoTransferWindow::AmmoTransferWindow(), TextRenderer::AreaWidth(), ASC_MainScreenWidget::ASC_MainScreenWidget(), AuthenticationDialog::AuthenticationDialog(), BitMapEditor::BitMapEditor(), MapDisplayPG::blitInternalSurface(), BuildingTypeBaseWidget::BuildingTypeBaseWidget(), ChanceSettingsDialog::buildUpForm(), ResourcePlacementDialog::buttonEvent(), CargoDialog::CargoDialog(), CargoEditor::CargoEditor(), PG_ScrollWidget::CheckScrollBars(), MapDisplayPG::displayMovementStep(), PG_Widget::DrawText(), EditGameOptions::EditGameOptions(), EditMapParameters::EditMapParameters(), EditPlayerData::EditPlayerData(), EmailSetupWidget::EmailSetupWidget(), EventAreasDialog::EventAreasDialog(), PG_ThemeWidget::eventBlit(), PG_Button::eventBlit(), GraphWidget::eventBlit(), SelectionItemWidget::eventDraw(), EventWindChangesDialog::EventWindChangesDialog(), FileSelectionWindow::FileSelectionWindow(), FileWidget::FileWidget(), GameParameterEditorWidget::GameParameterEditorWidget(), NewGuiHost::getButton(), GotoPosition::GotoPosition(), ImportBI3MapDialog::ImportBI3MapDialog(), IngameMessageViewer::IngameMessageViewer(), InternalAmmoTransferWindow::InternalAmmoTransferWindow(), ItemSelectorWidget::ItemSelectorWidget(), ItemSelectorWindow::ItemSelectorWindow(), PG_ThemeWidget::LoadThemeStyle(), PG_ScrollWidget::LoadThemeStyle(), MailOptionsDialog::MailOptionsDialog(), Maped_MainScreenWidget::Maped_MainScreenWidget(), MessageDialog::MessageDialog(), MessageSelectionWindow::messageSelected(), MessageSelectionWindow::MessageSelectionWindow(), MultiLineEditorDialog::MultiLineEditorDialog(), NewMap::NewMap(), NewMessage::NewMessage(), NewStringChooser::NewStringChooser(), OverviewMapPanel::painter(), ASCGUI_Window::parseRect(), PasswordDialog::PasswordDialog(), PG_ColumnItem::PG_ColumnItem(), PG_ScrollWidget::PG_ScrollWidget(), PlayerSetupWidget::PlayerSetupWidget(), PlayerSetupWindow::PlayerSetupWindow(), PG_PropertyEditor::RegisterProperty(), ItemSelectorWidget::reLoad(), TextRenderer::render(), ResourcePlacementDialog::ResourcePlacementDialog(), SaveGameBaseDialog::SaveGameBaseDialog(), MapDisplayPG::screenPos2mapPos(), MapDisplayPG::setNewZoom(), ResearchGraph::setResearch(), ASCGUI_Window::setup(), SoundSettings::SoundSettings(), VehicleTypeSelectionItemFactory::spawnNextItem(), VehicleCounterFactory::spawnNextItem(), MessageListItemFactory::spawnNextItem(), FileSelectionItemFactory::spawnNextItem(), AvailableProductionItemFactory::spawnNextItem(), CargoGuiFunctions::VehicleSelectionFactory::spawnNextItem(), MainScreenWidget::spawnOverviewMapPanel(), ASC_MainScreenWidget::spawnPanel(), StoringPosition::StoringPosition(), StringEditor::StringEditor(), UnitInfoDialog::userHandler(), CargoDialog::userHandler(), VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow(), ViewFormattedText::ViewFormattedText(), ViewTextQuery::ViewTextQuery(), WeatherDialog::WeatherDialog(), and WeatherPanel::WeatherPanel().


Friends And Related Function Documentation

friend class PG_RectList [friend]
 

Definition at line 226 of file pgrect.h.


Member Data Documentation

Uint32 PG_Rect::index
 

Definition at line 216 of file pgrect.h.

Referenced by PG_RectList::Add(), TextRenderer::eval_command(), PG_WidgetList::FindIndex(), and PG_Widget::IsInFrontOf().

Uint16& PG_Rect::my_height
 

Definition at line 214 of file pgrect.h.

Referenced by PG_Widget::AcceptEvent(), PG_Widget::Action(), PG_MenuBar::Add(), PG_ScrollArea::AddChild(), PG_ThemeWidget::CreateThemedSurface(), PG_Application::DrawCursor(), DrawTileSurface(), PG_Window::eventBlit(), PG_ProgressBar::eventBlit(), PG_ListBoxItem::eventBlit(), PG_Label::eventBlit(), PG_Image::eventBlit(), PG_ColumnItem::eventBlit(), PG_Button::eventBlit(), PG_MultiLineEdit::eventKeyDown(), PG_Window::eventMouseButtonDown(), PG_Window::eventMouseButtonUp(), PG_ScrollBar::eventMouseButtonUp(), PG_RadioButton::eventMouseButtonUp(), PG_ListBoxBaseItem::eventMouseButtonUp(), PG_Window::eventMouseMotion(), PG_ScrollBar::ScrollButton::eventMouseMotion(), PG_ColorSelector::PG_ColorBox::eventMouseMotion(), PG_PopupMenu::eventMoveWidget(), PG_Window::eventSizeWidget(), PG_ScrollWidget::eventSizeWidget(), PG_ScrollBar::eventSizeWidget(), PG_ScrollArea::eventSizeWidget(), PG_Widget::FadeIn(), PG_Widget::FadeOut(), MapDisplayPG::fieldCompletelyInView(), MapDisplayPG::fieldCompletelyInViewY(), PG_ColorSelector::PG_ColorBox::GetBaseColor(), PG_PopupMenu::getCaptionHeight(), PG_Widget::GetClipRects(), PG_ScrollWidget::handleAreaChangedHeight(), PG_DropDown::handleButtonClick(), IntersectRect(), PG_Widget::IsClippingEnabled(), PG_PopupMenu::MenuItem::isPointInside(), PG_PopupMenu::MenuItem::measureItem(), PG_Widget::MoveWidget(), PG_PopupMenu::openMenu(), PG_WidgetList::PageDown(), PG_WidgetList::PageUp(), PG_Draw::DrawGradient(), PG_DropDown::PG_DropDown(), PG_PopupMenu::PG_PopupMenu(), PG_RadioButton::PG_RadioButton(), PG_ScrollWidget::PG_ScrollWidget(), PG_SpinnerBox::PG_SpinnerBox(), ProductionEditorWindow::ProductionEditorWindow(), PG_PopupMenu::recalcRect(), PG_Widget::Redraw(), PG_ScrollArea::RemoveChild(), PG_ScrollArea::ScrollTo(), PG_ScrollArea::ScrollToWidget(), PG_Widget::SetSizeByText(), PG_RadioButton::SetSizeByText(), PG_Label::SetSizeByText(), PG_Button::SetSizeByText(), PG_Widget::SizeWidget(), UnitInfoDialog::userHandler(), and PG_Widget::WidgetDrag().

PG_Widget* PG_Rect::my_next [protected]
 

Definition at line 222 of file pgrect.h.

Referenced by PG_RectList::Add(), operator=(), and PG_RectList::Remove().

PG_Widget* PG_Rect::my_prev [protected]
 

Definition at line 224 of file pgrect.h.

Referenced by PG_RectList::Add(), operator=(), and PG_RectList::Remove().

Uint16& PG_Rect::my_width
 

Definition at line 212 of file pgrect.h.

Referenced by PG_Widget::AcceptEvent(), PG_Widget::Action(), PG_ScrollArea::AddChild(), ASC_MainScreenWidget::ASC_MainScreenWidget(), PG_Application::ClearOldMousePosition(), PG_ThemeWidget::CreateThemedSurface(), PG_Application::DrawCursor(), DrawTileSurface(), PG_Window::eventBlit(), PG_ProgressBar::eventBlit(), PG_ListBoxItem::eventBlit(), PG_Label::eventBlit(), PG_Image::eventBlit(), PG_ColumnItem::eventBlit(), PG_Button::eventBlit(), PG_Window::eventMouseButtonDown(), PG_MultiLineEdit::eventMouseButtonDown(), PG_Window::eventMouseButtonUp(), PG_ScrollBar::eventMouseButtonUp(), PG_RadioButton::eventMouseButtonUp(), PG_Window::eventMouseMotion(), PG_ScrollBar::ScrollButton::eventMouseMotion(), PG_ColorSelector::PG_ColorBox::eventMouseMotion(), PG_Window::eventSizeWidget(), PG_ScrollWidget::eventSizeWidget(), PG_ScrollBar::eventSizeWidget(), PG_ScrollArea::eventSizeWidget(), PG_Widget::FadeIn(), PG_Widget::FadeOut(), MapDisplayPG::fieldCompletelyInView(), MapDisplayPG::fieldCompletelyInViewX(), PG_ColorSelector::PG_ColorBox::GetBaseColor(), PG_PopupMenu::getCaptionHeight(), PG_Widget::GetClipRects(), PG_ScrollWidget::handleAreaChangedWidth(), PG_DropDown::handleButtonClick(), IntersectRect(), PG_Widget::IsClippingEnabled(), PG_PopupMenu::MenuItem::isPointInside(), PG_PopupMenu::MenuItem::measureItem(), PG_Widget::MoveWidget(), PG_PopupMenu::openMenu(), PG_Draw::DrawGradient(), PG_DropDown::PG_DropDown(), PG_PopupMenu::PG_PopupMenu(), PG_RadioButton::PG_RadioButton(), PG_RichEdit::PG_RichEdit(), PG_ScrollWidget::PG_ScrollWidget(), PG_SpinnerBox::PG_SpinnerBox(), PG_Window::PG_Window(), ProductionEditorWindow::ProductionEditorWindow(), PG_Window::RecalcPositions(), PG_PopupMenu::recalcRect(), PG_Widget::Redraw(), PG_ScrollArea::RemoveChild(), PG_ScrollArea::ScrollTo(), PG_ScrollArea::ScrollToWidget(), PG_Widget::SetSizeByText(), PG_RadioButton::SetSizeByText(), PG_Label::SetSizeByText(), PG_Button::SetSizeByText(), PG_Widget::SizeWidget(), and PG_Widget::WidgetDrag().

Sint16& PG_Rect::my_xpos
 

Definition at line 208 of file pgrect.h.

Referenced by PG_Widget::AcceptEvent(), PG_Widget::Action(), PG_MenuBar::Add(), PG_Widget::AddChild(), PG_ScrollArea::AddChild(), PG_Widget::Blit(), CargoDialog::CargoDialog(), PG_Widget::ClientToScreen(), PG_Application::DrawCursor(), PG_Widget::DrawHLine(), PG_Widget::DrawLine(), PG_Widget::DrawText(), DrawTileSurface(), PG_Widget::DrawVLine(), PG_Window::eventBlit(), PG_RichEdit::eventBlit(), PG_ProgressBar::eventBlit(), PG_PopupMenu::eventBlit(), PG_Label::eventBlit(), PG_Button::eventBlit(), LayoutablePanel::eventHide(), PG_MultiLineEdit::eventKeyDown(), PG_Window::eventMouseButtonDown(), PG_MultiLineEdit::eventMouseButtonDown(), PG_ScrollBar::eventMouseButtonUp(), PG_RadioButton::eventMouseButtonUp(), PG_PopupMenu::eventMouseMotion(), PG_PopupMenu::eventMoveWidget(), LayoutablePanel::eventShow(), PG_Widget::FadeIn(), MapDisplayPG::fieldCompletelyInView(), MapDisplayPG::fieldCompletelyInViewX(), PG_PopupMenu::getCaptionHeight(), PG_Widget::GetClipRects(), PG_DropDown::handleButtonClick(), IntersectRect(), PG_PopupMenu::MenuItem::isPointInside(), MessageSelectionWindow::messageSelected(), PG_Widget::MoveRect(), PG_Widget::MoveWidget(), PG_PopupMenu::openMenu(), PG_Draw::CreateGradient(), PG_DropDown::PG_DropDown(), PG_PopupMenu::PG_PopupMenu(), PG_SpinnerBox::PG_SpinnerBox(), PG_PopupMenu::recalcRect(), PG_Widget::RemoveChild(), PG_ScrollArea::RemoveChild(), PG_Widget::ScreenToClient(), PG_ScrollArea::ScrollToWidget(), PG_Widget::SetPixel(), PG_Widget::SetSizeByText(), Maped_MainScreenWidget::setupStatusBar(), PG_Widget::SizeWidget(), PG_Widget::StartWidgetDrag(), and PG_Widget::Update().

Sint16& PG_Rect::my_ypos
 

Definition at line 210 of file pgrect.h.

Referenced by PG_Widget::AcceptEvent(), PG_Widget::Action(), PG_WidgetList::AddChild(), PG_Widget::AddChild(), PG_ScrollArea::AddChild(), PG_Widget::Blit(), PG_Widget::ClientToScreen(), PG_Application::DrawCursor(), PG_Widget::DrawHLine(), PG_Widget::DrawLine(), PG_Widget::DrawText(), DrawTileSurface(), PG_Widget::DrawVLine(), PG_Window::eventBlit(), PG_RichEdit::eventBlit(), PG_ProgressBar::eventBlit(), PG_PopupMenu::eventBlit(), PG_Label::eventBlit(), PG_Button::eventBlit(), LayoutablePanel::eventHide(), PG_MultiLineEdit::eventKeyDown(), PG_Window::eventMouseButtonDown(), PG_ScrollBar::eventMouseButtonUp(), PG_RadioButton::eventMouseButtonUp(), PG_PopupMenu::eventMouseMotion(), PG_PopupMenu::eventMoveWidget(), LayoutablePanel::eventShow(), PG_Widget::FadeIn(), MapDisplayPG::fieldCompletelyInView(), MapDisplayPG::fieldCompletelyInViewY(), PG_PopupMenu::getCaptionHeight(), PG_Widget::GetClipRects(), PG_WidgetList::GetWidgetFromPos(), PG_DropDown::handleButtonClick(), IntersectRect(), PG_PopupMenu::MenuItem::isPointInside(), MessageSelectionWindow::messageSelected(), PG_Widget::MoveRect(), PG_Widget::MoveWidget(), PG_PopupMenu::openMenu(), PG_Draw::CreateGradient(), PG_DropDown::PG_DropDown(), PG_SpinnerBox::PG_SpinnerBox(), PG_PopupMenu::recalcRect(), PG_Widget::RemoveChild(), PG_ScrollArea::RemoveChild(), PG_Widget::ScreenToClient(), PG_ScrollArea::ScrollToWidget(), PG_Widget::SetPixel(), PG_Widget::SetSizeByText(), Maped_MainScreenWidget::setupStatusBar(), PG_Widget::SizeWidget(), PG_Widget::StartWidgetDrag(), and PG_Widget::Update().

PG_Rect PG_Rect::null [static]
 

Definition at line 31 of file pgrect.cpp.

Referenced by MapComponent::displayClip(), PG_Slider::RecalcPositions(), and NewGuiHost::showSmallIcons().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:19:22 2008 for Advanced Strategic Command by  doxygen 1.4.2