#include <C4Gui.h>
Public Member Functions | |
virtual Container * | GetContainer () |
virtual void | MouseInput (CMouse &rMouse, int32_t iButton, int32_t iX, int32_t iY, DWORD dwKeyParam) |
virtual void | MouseEnter (CMouse &rMouse) |
virtual void | MouseLeave (CMouse &rMouse) |
virtual void | StartDragging (CMouse &rMouse, int32_t iX, int32_t iY, DWORD dwKeyParam) |
virtual void | DoDragging (CMouse &rMouse, int32_t iX, int32_t iY, DWORD dwKeyParam) |
virtual void | StopDragging (CMouse &rMouse, int32_t iX, int32_t iY, DWORD dwKeyParam) |
virtual bool | OnHotkey (uint32_t cHotkey) |
bool | DoContext () |
Element () | |
virtual | ~Element () |
Container * | GetParent () |
virtual class Dialog * | GetDlg () |
virtual Screen * | GetScreen () |
virtual Control * | IsFocusElement () |
virtual void | UpdateOwnPos () |
void | ScreenPos2ClientPos (int32_t &riX, int32_t &riY) |
void | ClientPos2ScreenPos (int32_t &riX, int32_t &riY) |
void | SetToolTip (const char *szNewTooltip, bool is_immediate=false) |
const char * | GetToolTip () |
const char * | GetOwnToolTip () |
bool | IsImmediateToolTip () const |
int32_t | GetWidth () |
int32_t | GetHeight () |
C4Rect & | GetBounds () |
void | SetBounds (const C4Rect &rcNewBound) |
virtual C4Rect & | GetClientRect () |
C4Rect | GetContainedClientRect () |
Element * | GetNext () const |
Element * | GetPrev () const |
virtual Element * | GetFirstNestedElement (bool fBackwards) |
virtual Element * | GetFirstContained () |
bool | IsInActiveDlg (bool fForKeyboard) |
virtual bool | IsParentOf (Element *pEl) |
C4Rect | GetToprightCornerRect (int32_t iWidth=16, int32_t iHeight=16, int32_t iHIndent=4, int32_t iVIndent=4, int32_t iIndexX=0) |
bool | IsVisible () |
virtual void | SetVisibility (bool fToValue) |
virtual int32_t | GetListItemTopSpacing () |
virtual bool | GetListItemTopSpacingBar () |
void | SetDragTarget (Window *pToWindow) |
void | SetContextHandler (ContextHandler *pNewHd) |
virtual ContextHandler * | GetContextHandler () |
Public Attributes | |
bool | fVisible {true} |
Protected Member Functions | |
virtual void | Draw (C4TargetFacet &cgo) |
virtual void | DrawElement (C4TargetFacet &cgo) |
virtual void | RemoveElement (Element *pChild) |
virtual void | UpdateSize () |
virtual void | UpdatePos () |
void | Draw3DFrame (C4TargetFacet &cgo, bool fUp=false, int32_t iIndent=1, BYTE byAlpha=C4GUI_BorderAlpha, bool fDrawTop=true, int32_t iTopOff=0, bool fDrawLeft=true, int32_t iLeftOff=0) |
void | DrawBar (C4TargetFacet &cgo, DynBarFacet &rFacets) |
void | DrawVBar (C4TargetFacet &cgo, DynBarFacet &rFacets) |
void | DrawHBarByVGfx (C4TargetFacet &cgo, DynBarFacet &rFacets) |
void | DrawHVBar (C4TargetFacet &cgo, DynBarFacet &rFacets, C4DrawTransform &trf, int32_t iMiddleLength) |
virtual bool | IsOwnPtrElement () |
virtual bool | IsExternalDrawDialog () |
virtual bool | IsMenu () |
virtual class DialogWindow * | GetDialogWindow () |
virtual bool | CheckNameHotkey (const char *) |
Protected Attributes | |
Container * | pParent {nullptr} |
Element * | pPrev |
Element * | pNext |
Window * | pDragTarget {nullptr} |
int32_t | iDragX |
int32_t | iDragY |
bool | fDragging {false} |
ContextHandler * | pContextHandler {nullptr} |
C4Rect | rcBounds |
Friends | |
class | Container |
class | TextWindow |
class | ListBox |
C4GUI::Element::Element | ( | ) |
Definition at line 153 of file C4Gui.cpp.
References rcBounds, and C4Rect::Set().
|
virtual |
Definition at line 161 of file C4Gui.cpp.
References C4GUI::ContextHandler::DeRef(), C4GUI::Screen::GetScreenS(), pContextHandler, pParent, C4GUI::Container::RemoveElement(), and C4GUI::Screen::RemoveElement().
|
inlineprotectedvirtual |
Reimplemented in C4StartupScenSelDlg::ScenListItem.
Definition at line 407 of file C4Gui.h.
Referenced by C4GUI::ListBox::CharIn().
void C4GUI::Element::ClientPos2ScreenPos | ( | int32_t & | riX, |
int32_t & | riY | ||
) |
Definition at line 231 of file C4Gui.cpp.
References C4GUI::Container::ApplyInvElementOffset(), GetParent(), pParent, rcBounds, C4Rect::x, and C4Rect::y.
Referenced by C4MapFolderData::CreateGUIElements(), C4GUI::Screen::DoContext(), and C4Menu::Draw().
bool C4GUI::Element::DoContext | ( | ) |
Definition at line 417 of file C4Gui.cpp.
References C4Rect::Hgt, C4GUI::ContextHandler::OnContext(), pContextHandler, rcBounds, and C4Rect::Wdt.
Referenced by C4GUI::Control::KeyContext(), and C4GUI::ContextButton::MouseInput().
|
virtual |
Reimplemented in C4GUI::Edit, and C4GUI::ScrollBar.
Definition at line 269 of file C4Gui.cpp.
References iDragX, iDragY, pDragTarget, rcBounds, UpdatePos(), C4Rect::x, and C4Rect::y.
Referenced by C4GUI::Screen::MouseInput(), and StopDragging().
|
inlineprotectedvirtual |
Reimplemented in C4ScriptGuiWindow, C4ScoreboardDlg, C4Menu, C4GUI::Dialog, C4GUI::ContextMenu, C4GUI::Window, and C4GUI::Container.
Definition at line 387 of file C4Gui.h.
References DrawElement().
|
protected |
Definition at line 291 of file C4Gui.cpp.
References C4GUI_BorderColor1, C4GUI_BorderColor2, C4GUI_BorderColor3, C4Draw::DrawLineDw(), C4Rect::Hgt, pDraw, rcBounds, C4Facet::Surface, C4TargetFacet::TargetX, C4TargetFacet::TargetY, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by C4GUI::ProgressBar::DrawElement(), C4GUI::GroupBox::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), C4GUI::TextWindow::DrawElement(), C4GUI::ContextMenu::DrawElement(), C4GUI::ComboBox::DrawElement(), and C4GUI::Dialog::DrawElement().
|
protected |
Definition at line 308 of file C4Gui.cpp.
References C4Facet::Draw(), C4Facet::DrawX(), C4GUI::DynBarFacet::fctBegin, C4GUI::DynBarFacet::fctEnd, C4GUI::DynBarFacet::fctMiddle, C4Facet::Hgt, C4Rect::Hgt, rcBounds, C4Facet::Surface, C4TargetFacet::TargetX, C4TargetFacet::TargetY, C4Facet::Wdt, C4Rect::Wdt, C4Facet::X, C4Rect::x, and C4Rect::y.
Referenced by C4GUI::WoodenLabel::DrawElement(), and C4GUI::Button::DrawElement().
|
inlineprotectedvirtual |
Reimplemented in C4Chart, C4StartupScenSelDlg, C4StartupPlrPropertiesDlg, C4StartupPlrSelDlg, C4StartupNetDlg, C4StartupNetListEntry, C4StartupMainDlg, C4StartupAboutDlg, C4ScoreboardDlg, C4Menu, C4MenuItem, C4GUI::FullscreenDialog, C4GUI::Dialog, C4GUI::ComboBox, C4GUI::ContextButton, C4GUI::ContextMenu, C4GUI::ContextMenu::Entry, C4GUI::TextWindow, C4GUI::Tabular, C4GUI::ListBox, C4GUI::CheckBox, C4GUI::Edit, C4GUI::FacetButton, C4GUI::ArrowButton, C4GUI::IconButton, C4GUI::Button, C4GUI::PaintBox, C4GUI::GroupBox, C4GUI::ScrollBar, C4GUI::OverlayPicture, C4GUI::Picture, C4GUI::HorizontalLine, C4GUI::ProgressBar, C4GUI::MultilineLabel, C4GUI::WoodenLabel, C4GUI::Label, C4StartupModsDlg, C4StartupModsListEntry, and C4StartupLegalDlg.
Definition at line 388 of file C4Gui.h.
Referenced by Draw(), and C4GUI::Window::Draw().
|
protected |
Definition at line 365 of file C4Gui.cpp.
References DrawHVBar(), C4Rect::Hgt, rcBounds, C4BltTransform::SetRotate(), C4TargetFacet::TargetX, C4TargetFacet::TargetY, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by C4GUI::ScrollBar::DrawElement().
|
protected |
Definition at line 375 of file C4Gui.cpp.
References C4Facet::DrawT(), C4GUI::DynBarFacet::fctBegin, C4GUI::DynBarFacet::fctEnd, C4GUI::DynBarFacet::fctMiddle, C4Facet::Hgt, rcBounds, C4Facet::Surface, C4TargetFacet::TargetX, C4TargetFacet::TargetY, C4Rect::x, and C4Rect::y.
Referenced by DrawHBarByVGfx(), and DrawVBar().
|
protected |
Definition at line 359 of file C4Gui.cpp.
References DrawHVBar(), C4Rect::Hgt, and rcBounds.
Referenced by C4GUI::ScrollBar::DrawElement().
|
inline |
Definition at line 445 of file C4Gui.h.
References rcBounds.
Referenced by C4GUI::ListBox::AddElement(), C4Menu::AdjustPosition(), C4GameOverDlg::C4GameOverDlg(), C4StartupModsDlg::C4StartupModsDlg(), C4StartupModsListEntry::C4StartupModsListEntry(), C4StartupNetDlg::C4StartupNetDlg(), C4StartupNetListEntry::C4StartupNetListEntry(), C4StartupScenSelDlg::C4StartupScenSelDlg(), C4GUI::ContextMenu::CheckOpenSubmenu(), C4GUI::ListBox::ContractToElementHeight(), C4MapFolderData::CreateGUIElements(), C4GUI::Screen::DoContext(), C4GUI::Window::Draw(), C4GUI::ListBox::DrawElement(), C4GUI::ContextMenu::DrawElement(), C4GUI::TextWindow::ElementPosChanged(), C4GUI::TextWindow::ElementSizeChanged(), C4GUI::Dialog::GetMarginTop(), C4GUI::ScrollBar::GetMaxScroll(), C4GUI::GetScreenHgt(), C4GUI::GetScreenWdt(), C4Menu::InitSize(), C4GUI::ListBox::InsertElement(), C4GUI::ScrollWindow::IsRangeInView(), C4StartupPlrSelDlg::PlayerListItem::Load(), C4GUI::Window::MouseInput(), C4GUI::ScrollBar::MouseInput(), C4GUI::ListBox::MouseInput(), C4GUI::Screen::MouseInput(), C4StartupPlrSelDlg::OnNewBtn(), C4GUI::ScrollBar::OnPosChanged(), C4StartupPlrSelDlg::OnPropertyBtn(), C4StartupScenSelDlg::ScenListItem::ScenListItem(), C4GUI::ScrollWindow::ScrollBy(), C4GUI::ListBox::ScrollItemInView(), C4GUI::ScrollWindow::ScrollPages(), C4GUI::ScrollWindow::ScrollRangeInView(), C4GUI::ScrollWindow::ScrollToBottom(), C4GUI::Tabular::SetGfx(), C4GoalDisplay::SetGoals(), C4GUI::TextWindow::SetPicture(), C4GUI::Dialog::SetTitle(), C4GUI::ScrollBar::Update(), C4GUI::ScrollWindow::Update(), C4StartupPlrSelDlg::PlayerListItem::UpdateCore(), C4GUI::ListBox::UpdateElementPosition(), C4GUI::ListBox::UpdateElementPositions(), C4Menu::UpdateElementPositions(), C4GUI::ScrollWindow::UpdateOwnPos(), C4Menu::UpdateScrollBar(), and C4GUI::TextWindow::UpdateSize().
|
inlinevirtual |
Reimplemented in C4GUI::Window.
Definition at line 447 of file C4Gui.h.
References rcBounds.
Referenced by GetContainedClientRect(), and GetToprightCornerRect().
|
inline |
Definition at line 448 of file C4Gui.h.
References GetClientRect(), C4Rect::x, and C4Rect::y.
Referenced by C4GUI::Tabular::AddSheet(), C4ChartDialog::C4ChartDialog(), C4Network2ClientListDlg::C4Network2ClientListDlg(), C4Network2StartWaitDlg::C4Network2StartWaitDlg(), C4StartupAboutDlg::C4StartupAboutDlg(), C4StartupLegalDlg::C4StartupLegalDlg(), C4StartupModsDlg::C4StartupModsDlg(), C4StartupModsListEntry::C4StartupModsListEntry(), C4StartupNetDlg::C4StartupNetDlg(), C4StartupNetListEntry::C4StartupNetListEntry(), C4FileSelDlg::DefaultListItem::DefaultListItem(), C4ChatDlg::DoPlacement(), GetToprightCornerRect(), C4GUI::InputDialog::InputDialog(), C4GameLobby::MainDlg::MainDlg(), C4GUI::TextWindow::TextWindow(), C4Menu::UpdateElementPositions(), C4ChatControl::ChatSheet::NickItem::UpdateOwnPos(), C4FileSelDlg::DefaultListItem::UpdateOwnPos(), C4GUI::ScrollWindow::UpdateOwnPos(), C4StartupScenSelDlg::ScenListItem::UpdateOwnPos(), C4ChatControl::UpdateSize(), C4ChatDlg::UpdateSize(), C4GUI::Tabular::UpdateSize(), and C4GUI::TextWindow::UpdateSize().
|
inlinevirtual |
Reimplemented in C4GUI::Container.
Definition at line 410 of file C4Gui.h.
References pParent.
Referenced by C4GUI::ContextButton::ContextButton(), and GetToprightCornerRect().
|
virtual |
Reimplemented in C4GUI::Dialog.
Definition at line 429 of file C4Gui.cpp.
References GetContextHandler(), pContextHandler, and pParent.
Referenced by C4GUI::ContextButton::ContextButton(), GetContextHandler(), and MouseInput().
|
inlineprotectedvirtual |
Reimplemented in C4GUI::Dialog.
|
virtual |
Reimplemented in C4GUI::Dialog.
Definition at line 288 of file C4Gui.cpp.
References GetDlg(), and pParent.
Referenced by C4GUI::Control::DisableFocus(), C4ChatControl::DlgEnter(), C4ChatControl::GetDefaultControl(), GetDlg(), C4GUI::ContextMenu::GetTargetDialog(), C4GUI::Control::HasDrawFocus(), IsInActiveDlg(), C4GUI::Label::MouseInput(), C4GUI::Control::MouseInput(), C4GUI::Screen::MouseInput(), C4ChatControl::OnConnectBtn(), C4GUI::RenameEdit::OnFinishInput(), C4GUI::Label::OnHotkey(), C4ChatControl::OnLoginDataEnter(), C4GUI::CloseButton::OnPress(), C4GUI::CloseIconButton::OnPress(), C4GUI::RenameEdit::RenameEdit(), C4GUI::Container::SetVisibility(), and C4GUI::Screen::ShowDialog().
|
inlinevirtual |
Reimplemented in C4GUI::Container.
Definition at line 452 of file C4Gui.h.
Referenced by C4GUI::Container::GetNextNestedElement().
|
inlinevirtual |
Reimplemented in C4GUI::Container.
Definition at line 451 of file C4Gui.h.
Referenced by C4GUI::Container::GetFirstNestedElement(), and C4GUI::Container::GetNextNestedElement().
|
inline |
Definition at line 444 of file C4Gui.h.
References C4Rect::Hgt, and rcBounds.
Referenced by C4GUI::Screen::ShowDialog().
|
inlinevirtual |
Reimplemented in C4StartupNetListEntry, and C4StartupModsListEntry.
Definition at line 461 of file C4Gui.h.
References C4GUI_DefaultListSpacing.
Referenced by C4GUI::ListBox::AddElement(), C4GUI::ListBox::DrawElement(), and C4GUI::ListBox::UpdateElementPositions().
|
inlinevirtual |
Definition at line 462 of file C4Gui.h.
Referenced by C4GUI::ListBox::DrawElement().
|
inline |
Definition at line 449 of file C4Gui.h.
References pNext.
Referenced by C4GUI::Screen::ActivateDialog(), C4GUI::ListBox::CharIn(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), C4GUI::Screen::GetFullscreenDialog(), C4GUI::Screen::GetMouseControlledDialogCount(), C4StartupScenSelDlg::ScenListItem::GetNext(), C4StartupNetListEntry::GetNextLower(), C4GUI::ListBox::MouseInput(), C4GUI::Tabular::MouseInput(), C4GUI::ContextMenu::MouseInput(), C4GUI::Tabular::MouseLeaveCaptionArea(), C4StartupPlrSelDlg::OnItemCheckChange(), C4GUI::Container::Iterator::operator++(), C4GUI::Screen::ShowDialog(), C4GUI::ListBox::SortElements(), C4GUI::ListBox::UpdateElementPositions(), and C4Menu::UpdateElementPositions().
|
inline |
Definition at line 440 of file C4Gui.h.
References StdStrBuf::getData().
|
inline |
Definition at line 429 of file C4Gui.h.
References pParent.
Referenced by C4GUI::Dialog::AdvanceFocus(), ClientPos2ScreenPos(), C4ScriptGuiWindow::Close(), C4ScriptGuiWindow::CreateFromPropList(), C4ScriptGuiWindow::Draw(), C4GUI::ListBox::ElementPosChanged(), C4GUI::TextWindow::ElementPosChanged(), C4GUI::ListBox::ElementSizeChanged(), C4GUI::TextWindow::ElementSizeChanged(), C4ScriptGuiWindowAction::Execute(), C4ScriptGuiWindowAction::ExecuteCommand(), C4GUI::Tabular::Sheet::IsActiveSheet(), C4GUI::Container::IsParentOf(), C4GUI::ContextMenu::Entry::MouseLeave(), C4StartupPlrSelDlg::OnItemCheckChange(), C4GUI::RenameEdit::RenameEdit(), C4ScriptGuiWindow::RequestLayoutUpdate(), ScreenPos2ClientPos(), C4GUI::ListBox::SelectEntry(), C4GUI::Tabular::Sheet::SetTitle(), C4GUI::ScrollWindow::UpdateOwnPos(), and C4ChatControl::UpdateSize().
|
inline |
Definition at line 450 of file C4Gui.h.
References pPrev.
Referenced by C4GUI::ListBox::AddElement(), C4GUI::Screen::GetDialog(), C4GUI::Screen::GetTopDialog(), C4GUI::Window::MouseInput(), C4GUI::Screen::MouseInput(), and C4GUI::Container::ReverseIterator::operator++().
|
virtual |
Reimplemented in C4GUI::Screen, and C4GUI::ContextMenu.
Definition at line 289 of file C4Gui.cpp.
References GetScreen(), and pParent.
Referenced by C4GUI::Dialog::Close(), C4StartupScenSelDlg::DoOK(), C4GUI::Dialog::Draw(), C4GUI::ContextButton::DrawElement(), C4GUI::ComboBox::DrawElement(), C4GUI::Dialog::FadeOut(), GetScreen(), C4GUI::Control::HasDrawFocus(), C4GUI::Dialog::IsActive(), C4StartupScenSelDlg::KeyDelete(), C4GUI::ComboBox::MouseInput(), C4GameOptionButtons::OnBtnComment(), C4GameOptionButtons::OnBtnPassword(), C4StartupPlrPropertiesDlg::OnClosed(), C4StartupPlrPropertiesDlg::OnClrChangeCustom(), C4ChatControl::OnConnectBtn(), C4GUI::CBContextHandler< CBClass >::OnContext(), C4StartupPlrSelDlg::OnDelBtn(), C4StartupPlrSelDlg::OnDelBtnConfirm(), C4StartupPlrSelDlg::OnNewBtn(), C4StartupPlrPropertiesDlg::OnPictureBtn(), C4StartupPlrSelDlg::OnPropertyBtn(), C4StartupMainDlg::OnShown(), C4StartupMainDlg::OnTODO(), C4StartupOptionsDlg::SaveConfig(), SetVisibility(), C4GameLobby::MainDlg::Start(), C4StartupScenSelDlg::StartScenario(), C4ScoreboardDlg::Update(), C4StartupPlrSelDlg::PlayerListItem::UpdateCore(), C4FileSelDlg::UserClose(), C4StartupPlrPropertiesDlg::UserClose(), and C4ChatControl::UserQueryQuit().
const char * C4GUI::Element::GetToolTip | ( | ) |
Definition at line 423 of file C4Gui.cpp.
References StdStrBuf::getData(), GetToolTip(), StdStrBuf::isNull(), and pParent.
Referenced by C4GUI::CMouse::Draw(), GetToolTip(), C4GameLobby::MainDlg::OnRightTabContext(), and C4GameLobby::MainDlg::UpdateRightTab().
C4Rect C4GUI::Element::GetToprightCornerRect | ( | int32_t | iWidth = 16 , |
int32_t | iHeight = 16 , |
||
int32_t | iHIndent = 4 , |
||
int32_t | iVIndent = 4 , |
||
int32_t | iIndexX = 0 |
||
) |
Definition at line 399 of file C4Gui.cpp.
References GetClientRect(), GetContainedClientRect(), GetContainer(), C4Rect::Hgt, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by C4GUI::ContextButton::ContextButton(), C4GameLobby::MainDlg::MainDlg(), C4GUI::Dialog::SetTitle(), and C4GUI::Dialog::UpdateSize().
|
inline |
Definition at line 443 of file C4Gui.h.
References rcBounds, and C4Rect::Wdt.
Referenced by C4GUI::Screen::ShowDialog().
|
inlineprotectedvirtual |
Reimplemented in C4Menu, and C4GUI::Dialog.
|
inlinevirtual |
Reimplemented in C4GUI::ComboBox, C4GUI::TextWindow, C4GUI::Tabular, C4GUI::ListBox, C4GUI::CheckBox, and C4GUI::Control.
Definition at line 432 of file C4Gui.h.
Referenced by C4GUI::Dialog::AdvanceFocus().
|
inline |
Definition at line 441 of file C4Gui.h.
Referenced by C4GUI::CMouse::Draw().
bool C4GUI::Element::IsInActiveDlg | ( | bool | fForKeyboard | ) |
Definition at line 435 of file C4Gui.cpp.
References GetDlg(), and C4GUI::Dialog::IsActive().
Referenced by C4GUI::ControlKeyDlgCB< TargetClass >::CheckCondition(), C4GUI::Button::DrawElement(), C4GUI::IconButton::DrawElement(), C4GUI::ArrowButton::DrawElement(), C4GUI::FacetButton::DrawElement(), C4GUI::CheckBox::DrawElement(), and C4GUI::ContextButton::DrawElement().
|
inlineprotectedvirtual |
Reimplemented in C4GUI::ContextMenu, and C4GUI::ContextMenu::Entry.
Definition at line 403 of file C4Gui.h.
Referenced by RemoveElement().
|
inlineprotectedvirtual |
Reimplemented in C4Menu.
Definition at line 401 of file C4Gui.h.
Referenced by C4GUI::Container::ClearChildren().
|
inlinevirtual |
Reimplemented in C4GUI::Container.
Definition at line 454 of file C4Gui.h.
Referenced by C4GUI::ListBox::IsSelectedChild().
bool C4GUI::Element::IsVisible | ( | ) |
Definition at line 201 of file C4Gui.cpp.
References fVisible, IsVisible(), and pParent.
Referenced by C4GUI::Dialog::AdvanceFocus(), C4GUI::Screen::CharIn(), C4GUI::ControlKeyDlgCB< TargetClass >::CheckCondition(), C4GUI::Container::Draw(), C4GUI::Window::Draw(), C4GUI::Screen::Draw(), C4ScriptGuiWindow::Draw(), C4ScriptGuiWindow::DrawAll(), C4ScriptGuiWindow::DrawChildren(), C4ChatControl::GetDefaultControl(), C4GUI::Screen::GetFullscreenDialog(), IsVisible(), C4ScriptGuiWindow::IsVisibleTo(), C4GUI::Window::MouseInput(), C4GUI::Control::MouseInput(), C4GUI::Screen::MouseInput(), C4GUI::Container::OnHotkey(), C4ScriptGuiWindow::ProcessMouseInput(), C4Menu::SetPosition(), C4Menu::UpdateElementPositions(), and C4GUI::TextWindow::UpdateSize().
|
inlinevirtual |
Reimplemented in C4GUI::ComboBox, C4GUI::ContextButton, C4GUI::CheckBox, C4GUI::Button, C4MenuItem, and C4ScriptGuiWindow.
Definition at line 413 of file C4Gui.h.
Referenced by C4GUI::Button::MouseEnter(), C4GUI::CheckBox::MouseEnter(), C4GUI::ContextButton::MouseEnter(), C4GUI::ComboBox::MouseEnter(), and C4GUI::Screen::MouseInput().
|
virtual |
Reimplemented in C4GUI::Dialog, C4GUI::ComboBox, C4GUI::ContextButton, C4GUI::ContextMenu, C4GUI::Tabular, C4GUI::ListBox, C4GUI::CheckBox, C4GUI::Edit, C4GUI::Button, C4GUI::Control, C4GUI::PaintBox, C4GUI::ScrollWindow, C4GUI::ScrollBar, C4GUI::Window, C4GUI::Label, C4MenuItem, and C4StartupScenSelDlg::ScenListItem.
Definition at line 244 of file C4Gui.cpp.
References C4MC_Button_LeftDown, C4MC_Button_RightDown, GetContextHandler(), C4GUI::ContextHandler::OnContext(), C4GUI::CMouse::pDragElement, pDragTarget, C4GUI::CMouse::pMouseOverElement, and StartDragging().
Referenced by C4GUI::Label::MouseInput(), C4GUI::Window::MouseInput(), and C4GUI::ScrollBar::MouseInput().
|
inlinevirtual |
Reimplemented in C4GUI::ComboBox, C4GUI::ContextButton, C4GUI::ContextMenu::Entry, C4GUI::Tabular, C4GUI::CheckBox, C4GUI::Button, C4GUI::ScrollBar, and C4ScriptGuiWindow.
Definition at line 414 of file C4Gui.h.
Referenced by C4GUI::Screen::MouseInput(), C4GUI::ScrollBar::MouseLeave(), C4GUI::Button::MouseLeave(), C4GUI::CheckBox::MouseLeave(), C4GUI::Tabular::MouseLeave(), C4GUI::ContextButton::MouseLeave(), C4GUI::ComboBox::MouseLeave(), C4GUI::CMouse::ReleaseElements(), and C4GUI::CMouse::RemoveElement().
|
inlinevirtual |
Reimplemented in C4GUI::ContextMenu::Entry, C4GUI::CheckBox, C4GUI::Button, C4GUI::Container, and C4GUI::Label.
|
protectedvirtual |
Reimplemented in C4GUI::Screen, C4GUI::Dialog, C4GUI::ContextMenu, C4GUI::Tabular, C4GUI::ListBox, and C4GUI::Container.
Definition at line 173 of file C4Gui.cpp.
References C4GUI::Screen::GetScreenS(), IsMenu(), pParent, C4GUI::Container::RemoveElement(), and C4GUI::Screen::RemoveElement().
Referenced by C4GUI::Container::RemoveElement().
void C4GUI::Element::ScreenPos2ClientPos | ( | int32_t & | riX, |
int32_t & | riY | ||
) |
Definition at line 218 of file C4Gui.cpp.
References C4GUI::Container::ApplyElementOffset(), GetParent(), pParent, rcBounds, C4Rect::x, and C4Rect::y.
Referenced by C4GUI::Screen::MouseInput(), and C4GUI::CMouse::ReleaseElements().
|
inline |
Definition at line 446 of file C4Gui.h.
References rcBounds, UpdatePos(), and UpdateSize().
Referenced by C4GameOptionButtons::C4GameOptionButtons(), C4GoalDisplay::C4GoalDisplay(), C4StartupModsListEntry::C4StartupModsListEntry(), C4StartupNetDlg::C4StartupNetDlg(), C4StartupNetListEntry::C4StartupNetListEntry(), C4GUI::ContextButton::ContextButton(), C4GUI::ListBox::ContractToElementHeight(), C4GUI::Control::Control(), C4GUI::Dialog::Dialog(), C4ChatDlg::DoPlacement(), C4StartupNetListEntry::Execute(), C4GUI::FullscreenDialog::FullscreenDialog(), C4GUI::GroupBox::GroupBox(), C4GUI::HorizontalLine::HorizontalLine(), C4GUI::Screen::Init(), C4Menu::InitSize(), C4GUI::LabeledEdit::LabeledEdit(), C4StartupModsListEntry::MakeInfoEntry(), C4Game::OnResolutionChanged(), C4GameLobby::ScenDesc::ScenDesc(), C4StartupScenSelDlg::ScenListItem::ScenListItem(), C4GUI::ScrollWindow::ScrollWindow(), C4GUI::InputDialog::SetCustomEdit(), C4GUI::Tabular::SetGfx(), C4GoalDisplay::SetGoals(), C4StartupNetListEntry::SetReference(), C4StartupNetListEntry::SetRefQuery(), C4GUI::Tabular::Sheet::Sheet(), C4GUI::TextWindow::TextWindow(), C4ScoreboardDlg::Update(), C4GUI::ListBox::UpdateElementPositions(), C4Menu::UpdateElementPositions(), C4GUI::ScrollWindow::UpdateOwnPos(), C4ChatControl::UpdateSize(), C4ChatDlg::UpdateSize(), C4GUI::TextWindow::UpdateSize(), and C4GUI::Dialog::UpdateSize().
|
inline |
Definition at line 465 of file C4Gui.h.
References C4GUI::ContextHandler::DeRef(), pContextHandler, and C4GUI::ContextHandler::Ref().
Referenced by C4StartupMainDlg::C4StartupMainDlg(), C4GUI::ContextButton::ContextButton(), C4GUI::Edit::Edit(), and C4GameLobby::MainDlg::MainDlg().
|
inline |
Definition at line 464 of file C4Gui.h.
References pDragTarget.
Referenced by C4GUI::Dialog::SetTitle().
void C4GUI::Element::SetToolTip | ( | const char * | szNewTooltip, |
bool | is_immediate = false |
||
) |
Definition at line 409 of file C4Gui.cpp.
References StdStrBuf::Clear(), and StdStrBuf::Copy().
Referenced by C4GUI::ContextMenu::AddItem(), C4GameOverDlg::C4GameOverDlg(), C4LeagueSignupDialog::C4LeagueSignupDialog(), C4MenuItem::C4MenuItem(), C4StartupAboutDlg::C4StartupAboutDlg(), C4StartupLegalDlg::C4StartupLegalDlg(), C4StartupMainDlg::C4StartupMainDlg(), C4StartupModsDlg::C4StartupModsDlg(), C4StartupNetDlg::C4StartupNetDlg(), C4StartupOptionsDlg::C4StartupOptionsDlg(), C4StartupPlrPropertiesDlg::C4StartupPlrPropertiesDlg(), C4StartupPlrSelDlg::C4StartupPlrSelDlg(), C4StartupScenSelDlg::C4StartupScenSelDlg(), C4MapFolderData::CreateGUIElements(), C4GUI::InfoDialog::CreateSubComponents(), C4GUI::FullscreenDialog::FullscreenDialog(), C4GUI::IconButton::IconButton(), C4GUI::InputDialog::InputDialog(), C4GameLobby::MainDlg::MainDlg(), C4GUI::ProgressDialog::ProgressDialog(), C4StartupScenSelDlg::ScenListItem::ScenListItem(), C4GUI::InputDialog::SetCustomEdit(), C4GUI::FullscreenDialog::SetTitle(), C4GUI::Dialog::SetTitle(), C4ChatControl::ChatSheet::NickItem::Update(), and C4GameLobby::MainDlg::UpdateRightTab().
|
virtual |
Reimplemented in C4StartupNetListEntry, C4GUI::Container, and C4StartupModsListEntry.
Definition at line 207 of file C4Gui.cpp.
References fVisible, GetScreen(), C4GUI::Screen::Mouse, and C4GUI::CMouse::OnElementGetsInvisible().
Referenced by C4GUI::RenameEdit::RenameEdit(), C4GUI::TextWindow::SetPicture(), C4GUI::ScrollWindow::SetScrollBarEnabled(), C4GUI::Container::SetVisibility(), C4GUI::ScrollBar::Update(), and C4ScriptGuiWindow::UpdateLayout().
|
virtual |
Definition at line 259 of file C4Gui.cpp.
References fDragging, iDragX, iDragY, and C4GUI::CMouse::pDragElement.
Referenced by C4MenuItem::MouseInput(), and MouseInput().
|
virtual |
Definition at line 282 of file C4Gui.cpp.
References DoDragging().
Referenced by C4GUI::Screen::MouseInput(), and C4GUI::CMouse::ReleaseElements().
|
inlinevirtual |
Reimplemented in C4StartupScenSelDlg::ScenListItem, C4Menu, C4GUI::FullscreenDialog, C4GUI::CheckBox, C4GUI::ScrollWindow, C4GUI::Window, C4GUI::Label, C4FileSelDlg::DefaultListItem, and C4ChatControl::ChatSheet::NickItem.
Definition at line 434 of file C4Gui.h.
Referenced by C4GUI::ListBox::AddElement(), C4GUI::ListBox::InsertElement(), C4GUI::MultilineLabel::MultilineLabel(), C4GUI::TextWindow::SetPicture(), C4GUI::ListBox::UpdateElementPosition(), C4GUI::ListBox::UpdateElementPositions(), C4Menu::UpdateElementPositions(), C4GUI::Window::UpdateOwnPos(), UpdatePos(), and UpdateSize().
|
protectedvirtual |
Reimplemented in C4GUI::Dialog.
Definition at line 193 of file C4Gui.cpp.
References C4GUI::Container::ElementPosChanged(), pParent, and UpdateOwnPos().
Referenced by DoDragging(), C4GUI::ContextMenu::Open(), C4GUI::ProgressBar::ProgressBar(), SetBounds(), C4GUI::Window::SetPos(), and C4GUI::Dialog::UpdatePos().
|
protectedvirtual |
Reimplemented in C4GUI::Dialog, C4GUI::TextWindow, C4GUI::Tabular, C4GUI::ListBox, C4GUI::MultilineLabel, C4ChatDlg, and C4ChatControl.
Definition at line 185 of file C4Gui.cpp.
References C4GUI::Container::ElementSizeChanged(), pParent, and UpdateOwnPos().
Referenced by C4FileSelDlg::DefaultListItem::DefaultListItem(), SetBounds(), C4GUI::Label::SetX0(), C4GUI::MultilineLabel::UpdateHeight(), C4GUI::ListBox::UpdateSize(), C4GUI::Tabular::UpdateSize(), C4GUI::TextWindow::UpdateSize(), and C4GUI::Dialog::UpdateSize().
|
friend |
Definition at line 472 of file C4Gui.h.
Referenced by C4GUI::InfoDialog::CreateSubComponents().
|
protected |
Definition at line 380 of file C4Gui.h.
Referenced by StartDragging().
bool C4GUI::Element::fVisible {true} |
Definition at line 383 of file C4Gui.h.
Referenced by C4GUI::Dialog::Draw(), C4GUI::Dialog::FadeIn(), C4GUI::Dialog::FadeOut(), IsVisible(), SetVisibility(), C4StartupModsListEntry::SetVisibility(), C4StartupNetListEntry::SetVisibility(), C4GUI::Dialog::Show(), and C4GUI::ListBox::UpdateElementPositions().
|
protected |
Definition at line 379 of file C4Gui.h.
Referenced by DoDragging(), and StartDragging().
|
protected |
Definition at line 379 of file C4Gui.h.
Referenced by DoDragging(), and StartDragging().
|
protected |
Definition at line 381 of file C4Gui.h.
Referenced by DoContext(), GetContextHandler(), C4GUI::Dialog::GetContextHandler(), SetContextHandler(), and ~Element().
|
protected |
Definition at line 378 of file C4Gui.h.
Referenced by DoDragging(), MouseInput(), and SetDragTarget().
|
protected |
Definition at line 377 of file C4Gui.h.
Referenced by C4GUI::Container::AddElement(), C4GUI::Container::ClearChildren(), C4GUI::Container::Draw(), C4GUI::Container::GetElementByIndex(), C4GUI::Container::GetElementCount(), GetNext(), C4GUI::Container::GetNextNestedElement(), C4GUI::Container::InsertElement(), C4GUI::Container::MakeLastElement(), C4GUI::Container::OnHotkey(), C4GUI::Container::ReaddElement(), C4GUI::Container::RemoveElement(), C4Network2ResDlg::Update(), C4Network2ClientListBox::Update(), and C4Menu::UpdateElementPositions().
|
protected |
Definition at line 376 of file C4Gui.h.
Referenced by C4GUI::Container::AddElement(), C4GUI::Container::AfterElementRemoval(), C4GUI::Container::ClearChildren(), ClientPos2ScreenPos(), C4GUI::ScrollWindow::ElementPosChanged(), C4GUI::ScrollWindow::ElementSizeChanged(), GetContainer(), GetContextHandler(), GetDlg(), C4GUI::Container::GetNextNestedElement(), GetParent(), GetScreen(), GetToolTip(), C4GUI::Control::HasFocus(), C4GUI::Container::InsertElement(), C4GUI::Container::IsFocused(), C4GUI::Container::IsSelectedChild(), IsVisible(), C4GUI::Container::MakeLastElement(), C4GUI::Container::ReaddElement(), RemoveElement(), C4GUI::Container::RemoveElement(), ScreenPos2ClientPos(), UpdatePos(), UpdateSize(), and ~Element().
|
protected |
Definition at line 377 of file C4Gui.h.
Referenced by C4GUI::Container::AddElement(), C4GUI::Container::ClearChildren(), C4GUI::Container::GetNextNestedElement(), GetPrev(), C4GUI::Container::InsertElement(), C4GUI::Container::MakeLastElement(), C4GUI::Container::ReaddElement(), C4GUI::Container::RemoveElement(), and C4Menu::UpdateElementPositions().
|
protected |
Definition at line 385 of file C4Gui.h.
Referenced by C4Chart::C4Chart(), C4GameOptionButtons::C4GameOptionButtons(), C4GoalDisplay::C4GoalDisplay(), C4StartupMainDlg::C4StartupMainDlg(), C4StartupScenSelDlg::C4StartupScenSelDlg(), ClientPos2ScreenPos(), C4GUI::ContextMenu::ContextMenu(), C4GUI::Dialog::CreateConsoleWindow(), C4GUI::ContextMenu::CtxMouseInput(), C4FileSelDlg::DefaultListItem::DefaultListItem(), C4GUI::Dialog::Dialog(), DoContext(), DoDragging(), C4ScoreboardDlg::DoPlacement(), C4GUI::Dialog::Draw(), C4ScriptGuiWindow::Draw(), Draw3DFrame(), DrawBar(), C4ScriptGuiWindow::DrawChildren(), C4GUI::Label::DrawElement(), C4GUI::WoodenLabel::DrawElement(), C4GUI::MultilineLabel::DrawElement(), C4GUI::ProgressBar::DrawElement(), C4GUI::HorizontalLine::DrawElement(), C4GUI::Picture::DrawElement(), C4GUI::OverlayPicture::DrawElement(), C4GUI::ScrollBar::DrawElement(), C4GUI::GroupBox::DrawElement(), C4GUI::PaintBox::DrawElement(), C4GUI::Button::DrawElement(), C4GUI::IconButton::DrawElement(), C4GUI::ArrowButton::DrawElement(), C4GUI::FacetButton::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::CheckBox::DrawElement(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), C4GUI::TextWindow::DrawElement(), C4GUI::ContextMenu::Entry::DrawElement(), C4GUI::ContextMenu::DrawElement(), C4GUI::ContextButton::DrawElement(), C4GUI::ComboBox::DrawElement(), C4GUI::Dialog::DrawElement(), C4MenuItem::DrawElement(), C4Menu::DrawElement(), C4StartupMainDlg::DrawElement(), C4StartupNetListEntry::DrawElement(), C4StartupPlrPropertiesDlg::DrawElement(), C4Chart::DrawElement(), DrawHBarByVGfx(), DrawHVBar(), DrawVBar(), Element(), C4GUI::ContextMenu::Entry::Entry(), GetBounds(), GetClientRect(), C4ScriptGuiWindow::GetClippingRect(), GetHeight(), C4GUI::WoodenLabel::GetLeftIndent(), C4GUI::Tabular::GetMarginBottom(), C4GUI::Tabular::GetMarginLeft(), C4GUI::Tabular::GetMarginRight(), C4GUI::Tabular::GetMarginTop(), C4StartupPlrSelDlg::GetMarginTop(), C4StartupScenSelDlg::GetMarginTop(), GetWidth(), C4GUI::ScrollBar::HasPin(), C4Menu::InitLocation(), C4Menu::InitSize(), C4GUI::ScrollWindow::IsScrollingNecessary(), C4GUI::Label::Label(), C4GUI::LabeledEdit::LabeledEdit(), C4GUI::Window::MouseInput(), C4GUI::CheckBox::MouseInput(), C4GUI::Tabular::MouseInput(), C4GUI::ContextMenu::MouseInput(), C4ScriptGuiWindow::MouseInput(), C4GUI::Screen::MouseInput(), C4GUI::MultilineLabel::MultilineLabel(), C4ChatControl::ChatSheet::NickItem::NickItem(), C4ScriptGuiWindow::OnMouseIn(), C4GUI::ContextMenu::Open(), C4GUI::Picture::Picture(), C4ScriptGuiWindow::ProcessMouseInput(), C4GUI::ProgressBar::ProgressBar(), C4GUI::Screen::Render(), C4GameLobby::ScenDesc::ScenDesc(), ScreenPos2ClientPos(), C4GUI::ScrollBar::ScrollBar(), SetBounds(), C4GUI::Dialog::SetClientSize(), C4GUI::Tabular::SetGfx(), C4GUI::Window::SetPos(), C4GUI::Label::SetText(), C4GUI::Dialog::SetTitle(), C4GUI::Label::SetX0(), C4GUI::Tabular::Sheet::Sheet(), C4GUI::ScrollWindow::Update(), C4ScoreboardDlg::Update(), C4GUI::MultilineLabel::UpdateHeight(), C4ScriptGuiWindow::UpdateLayout(), C4ScriptGuiWindow::UpdateLayoutGrid(), C4ScriptGuiWindow::UpdateLayoutTightGrid(), C4ScriptGuiWindow::UpdateLayoutVertical(), C4GUI::Label::UpdateOwnPos(), C4GUI::Window::UpdateOwnPos(), C4GUI::Dialog::UpdatePos(), C4GUI::MultilineLabel::UpdateSize(), C4GUI::Dialog::UpdateSize(), and C4GUI::WoodenLabel::WoodenLabel().