ManaPlus
|
#include <window.h>
Public Member Functions | |
Window (const std::string &caption, const Modal modal, Window *const parent, std::string skin) | |
~Window () | |
void | draw (Graphics *const graphics) |
void | safeDraw (Graphics *const graphics) |
void | setContentSize (int width, int height) |
void | setLocationRelativeTo (const Widget *const widget) |
void | setLocationHorisontallyRelativeTo (const Widget *const widget) |
void | setLocationRelativeTo (const ImagePosition::Type &position, int offsetX, int offsetY) |
void | setResizable (const bool resize) |
void | redraw () |
void | widgetResized (const Event &event) |
void | widgetMoved (const Event &event) |
void | widgetHidden (const Event &event) |
void | setCloseButton (const bool flag) |
bool | getCloseButton () const |
void | setAllowClose (const bool b) |
bool | getAlowClose () const |
bool | isResizable () const |
void | setMinWidth (const int width) |
int | getMinWidth () const |
void | setMinHeight (const int height) |
int | getMinHeight () const |
void | setMaxWidth (const int width) |
int | getMaxWidth () const |
void | setMaxHeight (const int height) |
int | getMaxHeight () const |
void | setShowTitle (bool flag) |
void | setStickyButton (const bool flag) |
void | setSticky (const bool sticky) |
bool | isSticky () const |
void | setStickyButtonLock (const bool sticky) |
bool | isStickyButtonLock () const |
virtual void | setVisible (Visible visible) |
void | setVisible (const Visible visible, const bool forceSticky) |
bool | isDefaultVisible () const |
void | setDefaultVisible (const bool save) |
bool | willSaveVisible () const |
void | setSaveVisible (const bool save) |
void | postInit () |
Window * | getParentWindow () const |
virtual void | scheduleDelete () |
void | mousePressed (MouseEvent &event) |
void | mouseDragged (MouseEvent &event) |
void | mouseMoved (MouseEvent &event) |
void | mouseReleased (MouseEvent &event) |
void | mouseExited (MouseEvent &event) |
void | mouseEntered (MouseEvent &event) |
void | updateResizeHandler (MouseEvent &event) |
void | setWindowName (const std::string &name) |
const std::string & | getWindowName () const |
void | loadWindowState () |
void | saveWindowState () |
void | setDefaultSize (const int defaultX, const int defaultY, int defaultWidth, int defaultHeight) |
void | setDefaultSize () |
void | setDefaultSize (const int defaultWidth, const int defaultHeight, const ImagePosition::Type &position, const int offsetx, const int offsetY) |
virtual void | resetToDefaultSize () |
void | adjustPositionAfterResize (const int oldScreenWidth, const int oldScreenHeight) |
Layout & | getLayout () |
void | clearLayout () |
void | reflowLayout (int w, int h) |
LayoutCell & | place (const int x, const int y, Widget *const wg, const int w, const int h) |
ContainerPlacer | getPlacer (const int x, const int y) |
void | center () |
void | centerHorisontally () |
virtual void | close () |
void | setModal (const Modal modal) |
Rect | getWindowArea () const |
bool | isResizeAllowed (const MouseEvent &event) const |
void | setCaptionFont (Font *font) |
void | enableVisibleSound (bool b) |
bool | isWindowVisible () const |
void | setPadding (int padding) |
int | getPadding () const |
void | setTitleBarHeight (unsigned int height) |
unsigned int | getTitleBarHeight () const |
void | setCaption (const std::string &caption) |
const std::string & | getCaption () const |
void | setAlignment (Graphics::Alignment alignment) |
Graphics::Alignment | getAlignment () const |
void | setMovable (Move movable) |
bool | isMovable () const |
Rect | getChildrenArea () |
virtual void | resizeToContent () |
Public Member Functions inherited from BasicContainer2 | |
BasicContainer2 (const Widget2 *const widget) | |
~BasicContainer2 () | |
void | setOpaque (Opaque opaque) |
bool | isOpaque () const |
virtual void | add (Widget *const widget) |
void | addXY (Widget *const widget, const int x, const int y) |
Public Member Functions inherited from BasicContainer | |
BasicContainer (const Widget2 *const widget) | |
~BasicContainer () | |
void | showWidgetPart (Widget *const widget, const Rect &area) |
void | moveToTop (Widget *const widget) |
void | moveToBottom (Widget *const widget) |
void | focusNext () |
void | focusPrevious () |
void | logic () |
void | setFocusHandler (FocusHandler *const focusHandler) |
void | setInternalFocusHandler (FocusHandler *const focusHandler) |
Widget * | getWidgetAt (int x, int y) |
void | death (const Event &event) |
Widget * | findFirstWidget (const std::set< Widget * > &list) |
void | add (Widget *const widget) |
virtual void | remove (Widget *const widget) |
virtual void | clear () |
Public Member Functions inherited from Widget | |
Widget (const Widget2 *const widget) | |
~Widget () | |
virtual void | drawFrame (Graphics *graphics) |
virtual void | safeDrawFrame (Graphics *graphics) |
void | setFrameSize (const unsigned int frameSize) |
unsigned int | getFrameSize () const |
Widget * | getParent () const |
void | setWidth (const int width) |
int | getWidth () const |
void | setHeight (const int height) |
int | getHeight () const |
void | setSize (const int width, const int height) |
void | setX (const int x) |
int | getX () const |
void | setY (const int y) |
int | getY () const |
void | setPosition (const int x, const int y) |
void | setDimension (const Rect &dimension) |
const Rect & | getDimension () const |
void | setFocusable (const bool focusable) |
bool | isFocusable () const |
virtual bool | isFocused () const |
void | setEnabled (const bool enabled) |
bool | isEnabled () const |
void | setVisible (Visible visible) |
bool | isVisible () const |
void | setBaseColor (const Color &color) |
const Color & | getBaseColor () const |
void | setForegroundColor (const Color &color) |
const Color & | getForegroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getBackgroundColor () const |
virtual void | requestFocus () |
virtual void | requestMoveToTop () |
virtual void | requestMoveToBottom () |
FocusHandler * | getFocusHandler () |
void | addActionListener (ActionListener *const actionListener) |
void | removeActionListener (ActionListener *const actionListener) |
void | addDeathListener (WidgetDeathListener *const deathListener) |
void | removeDeathListener (WidgetDeathListener *const deathListener) |
void | addMouseListener (MouseListener *const mouseListener) |
void | removeMouseListener (MouseListener *const mouseListener) |
void | addKeyListener (KeyListener *const keyListener) |
void | removeKeyListener (KeyListener *const keyListener) |
void | addFocusListener (FocusListener *const focusListener) |
void | removeFocusListener (FocusListener *const focusListener) |
void | addWidgetListener (WidgetListener *const widgetListener) |
void | removeWidgetListener (WidgetListener *const widgetListener) |
void | setActionEventId (const std::string &actionEventId) |
const std::string & | getActionEventId () const |
virtual void | getAbsolutePosition (int &x, int &y) const |
virtual void | setParent (Widget *parent) |
Font * | getFont () const |
void | setFont (Font *const font) |
virtual void | fontChanged () |
bool | isTabInEnabled () const |
void | setTabInEnabled (const bool enabled) |
bool | isTabOutEnabled () const |
void | setTabOutEnabled (const bool enabled) |
void | requestModalFocus () |
virtual void | requestModalMouseInputFocus () |
virtual void | releaseModalFocus () |
virtual void | releaseModalMouseInputFocus () |
virtual bool | isModalFocused () const |
virtual bool | isModalMouseInputFocused () const |
const std::list< MouseListener * > & | getMouseListeners () const A_CONST |
const std::list< KeyListener * > & | getKeyListeners () const A_CONST |
const std::list< FocusListener * > & | getFocusListeners () const A_CONST |
virtual FocusHandler * | getInternalFocusHandler () |
void | setInternalFocusHandler (FocusHandler *const internalFocusHandler) |
void | setId (const std::string &id) |
const std::string & | getId () const |
virtual void | showPart (const Rect &rectangle) |
bool | isAllowLogic () const |
void | setMouseConsume (const bool b) |
bool | isMouseConsume () const |
void | setRedraw (const bool b) |
virtual bool | isSelectable () const |
void | setSelectable (const bool selectable) |
void | windowResized () |
Public Member Functions inherited from Widget2 | |
virtual | ~Widget2 () |
const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
virtual void | setWidget2 (const Widget2 *const widget) |
void | setPalette (int palette) |
void | checkPalette () |
void | setForegroundColor2 (const Color &color) |
Widget * | getWindow () const |
virtual void | setWindow (Widget *const window) |
Public Member Functions inherited from WidgetDeathListener | |
virtual | ~WidgetDeathListener () |
Public Member Functions inherited from MouseListener | |
virtual | ~MouseListener () |
virtual void | mouseClicked (MouseEvent &event) |
virtual void | mouseWheelMovedUp (MouseEvent &event) |
virtual void | mouseWheelMovedDown (MouseEvent &event) |
Public Member Functions inherited from WidgetListener | |
virtual | ~WidgetListener () |
virtual void | widgetShown (const Event &event) |
Static Public Member Functions | |
static void | setWindowContainer (WindowContainer *const windowContainer) |
Static Public Member Functions inherited from Widget | |
static void | setGlobalFont (Font *const font) |
static Font * | getGloablFont () |
static void | cleanGlobalFont () |
static bool | widgetExists (const Widget *const widget) |
static void | distributeWindowResizeEvent () |
static Widget * | callPostInit (Widget *const widget) |
Protected Member Functions | |
bool | canMove () const |
int | getOption (const std::string &name, const int def) const |
bool | getOptionBool (const std::string &name, const bool def) const |
void | setTitlePadding (const int p) |
int | getTitlePadding () const |
Protected Member Functions inherited from BasicContainer | |
virtual void | drawChildren (Graphics *const graphics) |
virtual void | safeDrawChildren (Graphics *const graphics) |
virtual void | logicChildren () |
Protected Member Functions inherited from Widget | |
void | distributeActionEvent () |
void | distributeResizedEvent () |
void | distributeMovedEvent () |
void | distributeHiddenEvent () |
void | distributeShownEvent () |
Protected Member Functions inherited from Widget2 | |
Widget2 (const Widget2 *const widget) | |
Protected Member Functions inherited from WidgetDeathListener | |
WidgetDeathListener () | |
Protected Member Functions inherited from MouseListener | |
MouseListener () | |
Protected Member Functions inherited from WidgetListener | |
WidgetListener () | |
Private Types | |
enum | ResizeHandles { TOP = 0x01 , RIGHT = 0x02 , BOTTOM = 0x04 , LEFT = 0x08 , CLOSE = 0x10 } |
Private Member Functions | |
void | ensureOnScreen () |
void | adjustSizeToScreen () |
int | getResizeHandles (const MouseEvent &event) |
Private Attributes | |
Image * | mGrip |
Window * | mParentWindow |
Layout * | mLayout |
Rect | mCloseRect |
Rect | mStickyRect |
Rect | mGripRect |
TextChunk | mTextChunk |
std::string | mWindowName |
int | mMinWinWidth |
int | mMinWinHeight |
int | mMaxWinWidth |
int | mMaxWinHeight |
ImageCollection * | mVertexes |
Graphics::Alignment | mCaptionAlign |
int | mTitlePadding |
int | mGripPadding |
int | mResizeHandles |
int | mOldResizeHandles |
int | mClosePadding |
int | mStickySpacing |
int | mStickyPadding |
Font * | mCaptionFont |
Modal | mModal |
bool | mCloseWindowButton |
bool | mDefaultVisible |
bool | mSaveVisible |
bool | mStickyButton |
bool | mSticky |
bool | mStickyButtonLock |
bool | mPlayVisibleSound |
bool | mInit |
bool | mTextChanged |
bool | mAllowClose |
Static Private Attributes | |
static int | mouseResize = 0 |
static int | windowInstances = 0 |
static const unsigned | resizeBorderWidth = 10 |
Additional Inherited Members | |
Data Fields inherited from Widget | |
Visible | mVisible |
Protected Types inherited from BasicContainer | |
typedef std::vector< Widget * > | WidgetList |
typedef WidgetList::iterator | WidgetListIterator |
typedef WidgetList::const_iterator | WidgetListConstIterator |
typedef WidgetList::reverse_iterator | WidgetListReverseIterator |
typedef WidgetList::const_reverse_iterator | WidgetListCReverseIterator |
Protected Types inherited from Widget | |
typedef std::list< MouseListener * > | MouseListenerList |
typedef MouseListenerList::iterator | MouseListenerIterator |
typedef std::list< KeyListener * > | KeyListenerList |
typedef KeyListenerList::iterator | KeyListenerIterator |
typedef std::list< ActionListener * > | ActionListenerList |
typedef ActionListenerList::iterator | ActionListenerIterator |
typedef std::list< WidgetDeathListener * > | WidgetDeathListenerList |
typedef WidgetDeathListenerList::iterator | WidgetDeathListenerIterator |
typedef std::list< FocusListener * > | FocusListenerList |
typedef FocusListenerList::iterator | FocusListenerIterator |
typedef std::list< WidgetListener * > | WidgetListenerList |
typedef WidgetListenerList::iterator | WidgetListenerIterator |
Static Protected Attributes inherited from Widget | |
static Font * | mGlobalFont = 0 |
A window. This window can be dragged around and has a title bar. Windows are invisible by default.
|
private |
Window::Window | ( | const std::string & | caption, |
const Modal | modal, | ||
Window *const | parent, | ||
std::string | skin | ||
) |
Constructor. Initializes the title to the given text and hooks itself into the window container.
caption | The initial window title, "Window" by default. |
modal | Block input to other windows. |
parent | The parent window. This is the window standing above this one in the window hiearchy. When reordering, a window will never go below its parent window. |
skin | The location where the window's skin XML can be found. |
Definition at line 109 of file window.cpp.
References BasicContainer2::add(), Widget::addMouseListener(), Widget::addWidgetListener(), boldFont, CAST_U32, Cursor::CURSOR_POINTER, Font::getHeight(), getOption(), getOptionBool(), Skin::getPadding(), Widget2::getThemeColor(), Theme::getThemePath(), Skin::getTitlePadding(), gui, Graphics::LEFT, Theme::load(), Logger::log(), logger, mCaptionAlign, mCaptionFont, mCaptionOffsetX, mCaptionOffsetY, mClosePadding, Widget::mForegroundColor, Widget2::mForegroundColor2, mGripPadding, mModal, Modal_true, mPadding, mShowTitle, mSkin, mStickyPadding, mStickySpacing, mTitleBarHeight, mTitlePadding, Widget2::mWindow, reportAlways, Widget::requestModalFocus(), Graphics::RIGHT, Gui::setCursorType(), Widget::setFrameSize(), setPadding(), Widget2::setPalette(), setTitleBarHeight(), setVisible(), theme, Visible_false, windowContainer, and windowInstances.
Window::~Window | ( | ) |
Destructor. Deletes all the added widgets.
Definition at line 260 of file window.cpp.
References client, delete2, getCaption(), gui, Logger::log(), logger, mGrip, mInit, mLayout, mSkin, mVertexes, BasicContainer::mWidgets, mWindowName, Gui::removeDragged(), Widget::removeWidgetListener(), reportAlways, saveWindowState(), setupWindow, theme, Theme::unload(), SetupWindow::unregisterWindowForReset(), windowInstances, and Client::windowRemoved().
void Window::adjustPositionAfterResize | ( | const int | oldScreenWidth, |
const int | oldScreenHeight | ||
) |
Adjusts the window position after the application window has been resized.
Definition at line 1266 of file window.cpp.
References adjustSizeToScreen(), ensureOnScreen(), Rect::height, mainGraphics, Widget::mDimension, Graphics::mHeight, Graphics::mWidth, Rect::width, Rect::x, and Rect::y.
|
private |
Definition at line 1285 of file window.cpp.
References Rect::height, mainGraphics, Widget::mDimension, mGrip, Graphics::mHeight, Graphics::mWidth, widgetResized(), Rect::width, Rect::x, and Rect::y.
Referenced by adjustPositionAfterResize().
|
protected |
Definition at line 977 of file window.cpp.
References mSticky, and mStickyButtonLock.
Referenced by mouseDragged(), ChatWindow::mouseDragged(), ShortcutWindow::mouseDragged(), and mousePressed().
void Window::center | ( | ) |
Positions the window in the center of it's parent.
Definition at line 1417 of file window.cpp.
References Widget::getParent(), and setLocationRelativeTo().
Referenced by BankWindow::BankWindow(), ChangeEmailDialog::ChangeEmailDialog(), ChangePasswordDialog::ChangePasswordDialog(), CharCreateDialog::CharCreateDialog(), CharSelectDialog::CharSelectDialog(), ConnectionDialog::ConnectionDialog(), BuyDialog::init(), BuySellDialog::init(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), NpcDialog::NpcDialog(), OkDialog::OkDialog(), SellDialog::postInit(), ConfirmDialog::postInit(), EditDialog::postInit(), EmoteWindow::postInit(), LoginDialog::postInit(), SetupWindow::postInit(), TextSelectDialog::postInit(), RegisterDialog::RegisterDialog(), ShopWindow::ShopWindow(), TextCommandEditor::TextCommandEditor(), and WorldSelectDialog::WorldSelectDialog().
void Window::centerHorisontally | ( | ) |
Positions the window in the horisontal center of it's parent.
Definition at line 1422 of file window.cpp.
References Widget::getParent(), and setLocationHorisontallyRelativeTo().
Referenced by OkDialog::OkDialog().
void Window::clearLayout | ( | ) |
Clears the window's layout (useful for redesigning the window). Does not delete the widgets!
Definition at line 1372 of file window.cpp.
References BasicContainer::clear(), and mLayout.
Referenced by NpcDialog::buildLayout(), and NpcDialog::~NpcDialog().
|
virtual |
Overrideable functionality for when the window is to close. This allows for class implementations to clean up or do certain actions on window close they couldn't do otherwise.
Reimplemented in TradeWindow, TextDialog, ServerInfoWindow, ServerDialog, RegisterDialog, PincodeDialog, NpcSellDialog, MailEditWindow, LoginDialog, ItemAmountWindow, InventoryWindow, CharSelectDialog, and BuyDialog.
Definition at line 902 of file window.cpp.
References setVisible(), and Visible_false.
Referenced by SellDialog::action(), BuySellDialog::action(), ShopWindow::action(), TextSelectDialog::action(), BuyDialog::close(), CharSelectDialog::close(), InventoryWindow::close(), LoginDialog::close(), NpcSellDialog::close(), RegisterDialog::close(), ServerDialog::close(), ServerInfoWindow::close(), EAthena::NpcHandler::closeDialog(), TmwAthena::NpcHandler::closeDialog(), PopupMenu::handleLink(), mousePressed(), Ea::NpcRecv::processNpcCommand(), SocialTab::~SocialTab(), and SocialWindow::~SocialWindow().
|
virtual |
Draws the window.
Reimplemented from BasicContainer2.
Reimplemented in OutfitWindow, MiniStatusWindow, Minimap, EquipmentWindow, CutInWindow, ConnectionDialog, ChatWindow, and DebugWindow.
Definition at line 311 of file window.cpp.
References BLOCK_END, BLOCK_START, Graphics::calcTileCollection(), Graphics::calcWindow(), Graphics::CENTER, ImageCollection::clear(), CLOSE, TextChunk::color, TextChunk::color2, TextChunk::deleteImage(), BasicContainer::drawChildren(), Graphics::drawImage(), Graphics::drawTileCollection(), Graphics::finalize(), Font::generate(), Skin::getBorder(), Skin::getCloseImage(), Skin::getStickyImage(), Font::getWidth(), Rect::height, TextChunk::img, Graphics::LEFT, mCaption, mCaptionAlign, mCaptionFont, mCaptionOffsetX, mCaptionOffsetY, mCloseRect, mCloseWindowButton, Widget::mDimension, Widget::mForegroundColor, Widget2::mForegroundColor2, mGrip, mGripRect, mLastRedraw, mOldResizeHandles, Widget::mRedraw, mResizeHandles, mShowTitle, mSkin, mSticky, mStickyButton, mStickyRect, mTextChanged, mTextChunk, mVertexes, Graphics::RIGHT, Graphics::setRedraw(), TextChunk::text, TextChunk::textFont, UserAgent::update(), Rect::width, Rect::x, x, and Rect::y.
Referenced by DebugWindow::draw(), ChatWindow::draw(), CutInWindow::draw(), EquipmentWindow::draw(), Minimap::draw(), and OutfitWindow::draw().
|
inline |
Definition at line 481 of file window.h.
References mPlayVisibleSound.
Referenced by BankWindow::BankWindow(), ChatWindow::ChatWindow(), ClanWindow::ClanWindow(), CutInWindow::CutInWindow(), DebugWindow::DebugWindow(), DidYouKnowWindow::DidYouKnowWindow(), HelpWindow::HelpWindow(), BuyDialog::init(), BuySellDialog::init(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), Minimap::Minimap(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), EquipmentWindow::postInit(), NpcDialog::postInit(), SetupWindow::postInit(), ShopWindow::postInit(), SkillDialog::postInit(), SocialWindow::postInit(), TextCommandEditor::postInit(), TextSelectDialog::postInit(), WhoIsOnline::postInit(), QuestsWindow::QuestsWindow(), ServerInfoWindow::ServerInfoWindow(), ShortcutWindow::ShortcutWindow(), StatusWindow::StatusWindow(), and TradeWindow::TradeWindow().
|
private |
Ensures the window is on the screen, moving it if necessary. This is used by loadWindowState and setVisible(true), and when the screen is resized.
Definition at line 1427 of file window.cpp.
References Rect::height, mainGraphics, Widget::mDimension, Graphics::mHeight, Graphics::mWidth, Rect::width, Rect::x, and Rect::y.
Referenced by adjustPositionAfterResize(), loadWindowState(), and setVisible().
|
inline |
Gets the alignment of the caption.
Definition at line 558 of file window.h.
References mAlignment.
|
inline |
Definition at line 192 of file window.h.
References mAllowClose, and mCloseWindowButton.
Referenced by PopupMenu::addWindowMenu().
|
inline |
Gets the caption of the window.
Definition at line 540 of file window.h.
References mCaption.
Referenced by ConfirmDialog::postInit(), and ~Window().
|
virtual |
Gets the area of the widget occupied by the widget's children. By default this method returns an empty rectangle as not all widgets are containers. If you want to make a container this method should return the area where the children resides. This method is used when drawing children of a widget when computing clip rectangles for the children.
An example of a widget that overloads this method is ScrollArea. A ScrollArea has a view of its contant and that view is the children area. The size of a ScrollArea's children area might vary depending on if the scroll bars of the ScrollArea is shown or not.
Reimplemented from BasicContainer.
Reimplemented in MiniStatusWindow.
Definition at line 1473 of file window.cpp.
References Rect::height, Widget::mDimension, mPadding, mTitleBarHeight, and Rect::width.
Referenced by ChatWindow::adjustTabSize(), Minimap::draw2(), EquipmentWindow::postInit(), redraw(), Minimap::screenToMap(), WhoIsOnline::updateSize(), widgetResized(), and SetupWindow::widgetResized().
|
inline |
Layout & Window::getLayout | ( | ) |
Gets the layout handler for this window.
Definition at line 1365 of file window.cpp.
References mLayout.
Referenced by NpcDialog::buildLayout(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), getPlacer(), HelpWindow::HelpWindow(), BuyDialog::init(), InventoryWindow::InventoryWindow(), MailWindow::MailWindow(), OutfitWindow::OutfitWindow(), place(), SellDialog::postInit(), TextSelectDialog::postInit(), QuestsWindow::QuestsWindow(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), ShopWindow::ShopWindow(), ShortcutWindow::ShortcutWindow(), StatusWindow::StatusWindow(), TradeWindow::TradeWindow(), UpdaterWindow::UpdaterWindow(), and WorldSelectDialog::WorldSelectDialog().
|
inline |
Definition at line 229 of file window.h.
References mMaxWinHeight.
Referenced by loadWindowState(), and saveWindowState().
|
inline |
Definition at line 221 of file window.h.
References mMaxWinWidth.
Referenced by loadWindowState(), and saveWindowState().
|
inline |
Definition at line 213 of file window.h.
References mMinWinHeight.
Referenced by loadWindowState(), and saveWindowState().
|
inline |
Definition at line 205 of file window.h.
References mMinWinWidth.
Referenced by loadWindowState(), OkDialog::OkDialog(), ConfirmDialog::postInit(), and saveWindowState().
|
protected |
Definition at line 1454 of file window.cpp.
References Skin::getOption(), and mSkin.
Referenced by CharCreateDialog::CharCreateDialog(), EquipmentWindow::EquipmentWindow(), BuySellDialog::init(), OkDialog::OkDialog(), ConfirmDialog::postInit(), EditDialog::postInit(), SetupWindow::postInit(), ShopWindow::ShopWindow(), and Window().
|
protected |
Definition at line 1466 of file window.cpp.
References Skin::getOption(), and mSkin.
Referenced by SocialWindow::addTab(), BuyDialog::init(), InventoryWindow::InventoryWindow(), SellDialog::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), ServerDialog::ServerDialog(), Window(), and WorldSelectDialog::WorldSelectDialog().
|
inline |
Gets the padding of the window. The padding is the distance between the window border and the content.
Definition at line 504 of file window.h.
References mPadding.
Referenced by EquipmentWindow::addBox(), CharSelectDialog::CharSelectDialog(), ChatWindow::ChatWindow(), EquipmentWindow::loadSlot(), NpcDialog::logic(), EditDialog::postInit(), EmoteWindow::postInit(), CharCreateDialog::setAttributes(), Minimap::setMap(), and ShortcutWindow::ShortcutWindow().
|
inline |
Returns the parent window.
NULL
if there is none. Definition at line 310 of file window.h.
References mParentWindow.
Referenced by EditServerDialog::EditServerDialog(), and ItemAmountWindow::ItemAmountWindow().
ContainerPlacer Window::getPlacer | ( | const int | x, |
const int | y | ||
) |
Returns a proxy for adding widgets in an inner table of the layout.
Definition at line 1391 of file window.cpp.
References getLayout(), x, and y.
Referenced by BankWindow::BankWindow(), CharSelectDialog::CharSelectDialog(), BuyDialog::init(), InventoryWindow::InventoryWindow(), ItemAmountWindow::ItemAmountWindow(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), SellDialog::postInit(), TextSelectDialog::postInit(), QuestsWindow::QuestsWindow(), QuitDialog::QuitDialog(), RegisterDialog::RegisterDialog(), ShopWindow::ShopWindow(), TextCommandEditor::TextCommandEditor(), TradeWindow::TradeWindow(), and UpdaterWindow::UpdaterWindow().
|
private |
Determines if the mouse is in a resize area and returns appropriate resize handles. Also initializes drag offset in case the resize grip is used.
Definition at line 1306 of file window.cpp.
References BOTTOM, CAST_S32, CAST_U32, CLOSE, Event::getSource(), getWindowArea(), MouseEvent::getX(), MouseEvent::getY(), Rect::height, Rect::isPointInRect(), LEFT, mCloseRect, Widget::mDimension, mDragOffsetX, mDragOffsetY, mGrip, mGripRect, mPadding, mSticky, mStickyButtonLock, mTitleBarHeight, resizeBorderWidth, RIGHT, TOP, Rect::width, Rect::x, x, Rect::y, and y.
Referenced by mousePressed(), and updateResizeHandler().
|
inline |
Gets the title bar height.
Definition at line 522 of file window.h.
References mTitleBarHeight.
Referenced by EquipmentWindow::addBox(), EquipmentWindow::loadSlot(), and Minimap::setMap().
|
inlineprotected |
Definition at line 602 of file window.h.
References mTitlePadding.
Referenced by CharCreateDialog::CharCreateDialog(), ChatWindow::ChatWindow(), EmoteWindow::postInit(), and ShortcutWindow::ShortcutWindow().
Rect Window::getWindowArea | ( | ) | const |
Definition at line 1446 of file window.cpp.
References Rect::height, Widget::mDimension, mPadding, and Rect::width.
Referenced by getResizeHandles(), and isResizeAllowed().
|
inline |
Returns the name of the window. This is not the window title.
Definition at line 361 of file window.h.
References mWindowName.
Referenced by CharCreateDialog::CharCreateDialog(), InventoryWindow::InventoryWindow(), Minimap::Minimap(), and Minimap::~Minimap().
|
inline |
Returns whether the window is visible by default.
Definition at line 282 of file window.h.
References mDefaultVisible.
|
inline |
Checks if the window is movable.
Definition at line 576 of file window.h.
References mMovable, and Move_true.
Referenced by mouseDragged(), ChatWindow::mouseDragged(), and ShortcutWindow::mouseDragged().
bool Window::isResizable | ( | ) | const |
Returns whether the window can be resized.
Definition at line 756 of file window.cpp.
References mGrip.
bool Window::isResizeAllowed | ( | const MouseEvent & | event | ) | const |
Definition at line 1345 of file window.cpp.
References CAST_S32, Event::getSource(), getWindowArea(), mGrip, mGripRect, mPadding, mTitleBarHeight, Rect::x, x, Rect::y, and y.
Referenced by ChatWindow::mousePressed().
|
inline |
Returns whether the window is sticky.
Definition at line 253 of file window.h.
References mSticky.
Referenced by PopupMenu::addWindowMenu(), SetupWindow::hideWindows(), loadWindowState(), Minimap::Minimap(), mousePressed(), saveWindowState(), Minimap::setMap(), and Minimap::toggle().
|
inline |
Returns whether the window sticky locking window.
Definition at line 264 of file window.h.
References mStickyButtonLock.
Referenced by PopupMenu::addWindowMenu().
|
inline |
Definition at line 484 of file window.h.
References Widget::mVisible, and Visible_true.
Referenced by InventoryWindow::action(), TradeWindow::action(), InputManager::handleAssignKey(), Game::handleInput(), InventoryWindow::mouseClicked(), ItemShortcutContainer::mousePressed(), EAthena::MailRecv::processMailOpen(), ChatWindow::requestChatFocus(), saveWindowState(), ChatWindow::scroll(), DidYouKnowWindow::setVisible(), Actions::showHelpPage(), Actions::showHideWindow(), PopupMenu::showPopup(), ClanWindow::slowLogic(), DebugWindow::slowLogic(), WhoIsOnline::slowLogic(), Minimap::toggle(), InputManager::updateConditionMask(), and InventoryWindow::updateDropButton().
void Window::loadWindowState | ( | ) |
Reads the position (and the size for resizable windows) in the configuration based on the given string. Uses the default values when config values are missing. Don't forget to set these default values and resizable before calling this function.
Definition at line 1087 of file window.cpp.
References config, ensureOnScreen(), fromBool, Widget::getHeight(), getMaxHeight(), getMaxWidth(), getMinHeight(), getMinWidth(), ConfigurationObject::getValueBool(), ConfigurationObject::getValueInt(), Widget::getWidth(), Rect::height, isSticky(), mDefaultHeight, mDefaultVisible, mDefaultWidth, mDefaultX, mDefaultY, Widget::mDimension, mGrip, mSaveVisible, mStickyButton, mWindowName, Widget::setPosition(), Widget::setSize(), setSticky(), setVisible(), viewport, Rect::width, Rect::x, and Rect::y.
Referenced by BankWindow::BankWindow(), ChatWindow::ChatWindow(), ClanWindow::ClanWindow(), DebugWindow::DebugWindow(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), EquipmentWindow::EquipmentWindow(), HelpWindow::HelpWindow(), BuyDialog::init(), BuySellDialog::init(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), Minimap::Minimap(), NpcDialog::NpcDialog(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), LoginDialog::postInit(), SkillDialog::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), WhoIsOnline::postInit(), QuestsWindow::QuestsWindow(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), ShopWindow::ShopWindow(), ShortcutWindow::ShortcutWindow(), StatusWindow::StatusWindow(), TradeWindow::TradeWindow(), and UpdaterWindow::UpdaterWindow().
|
virtual |
Implements window resizing and makes sure the window is not dragged/resized outside of the screen.
Reimplemented from MouseListener.
Reimplemented in ShortcutWindow, OutfitWindow, and ChatWindow.
Definition at line 982 of file window.cpp.
References BOTTOM, canMove(), Widget::getDimension(), Widget::getHeight(), Event::getSource(), MouseEvent::getX(), Widget::getX(), MouseEvent::getY(), Widget::getY(), Rect::height, InputGuiEvent::isConsumed(), isMovable(), LEFT, mainGraphics, Widget::mDimension, mDragOffsetX, mDragOffsetY, Graphics::mHeight, mMaxWinHeight, mMaxWinWidth, mMinWinHeight, mMinWinWidth, mMoved, mouseResize, Graphics::mWidth, RIGHT, Widget::setDimension(), Widget::setPosition(), TOP, Rect::width, Rect::x, and Rect::y.
Referenced by ChatWindow::mouseDragged(), OutfitWindow::mouseDragged(), and ShortcutWindow::mouseDragged().
|
virtual |
Called when the mouse has entered into the widget area.
event | Describes the event. |
Reimplemented from MouseListener.
Reimplemented in ChatWindow.
Definition at line 919 of file window.cpp.
References updateResizeHandler().
Referenced by ChatWindow::mouseEntered().
|
virtual |
When the mouse leaves the window this ensures that the custom cursor is restored back to it's standard image.
Reimplemented from MouseListener.
Reimplemented in MiniStatusWindow, Minimap, ItemAmountWindow, InventoryWindow, EquipmentWindow, and ChatWindow.
Definition at line 924 of file window.cpp.
References Cursor::CURSOR_POINTER, gui, mGrip, mouseResize, and Gui::setCursorType().
Referenced by ChatWindow::mouseExited(), Minimap::mouseExited(), and MiniStatusWindow::mouseExited().
|
virtual |
Implements custom cursor image changing context, based on mouse relative position.
Reimplemented from MouseListener.
Reimplemented in MiniStatusWindow, Minimap, ItemAmountWindow, InventoryWindow, EquipmentWindow, and ChatWindow.
Definition at line 967 of file window.cpp.
References PopupManager::hideBeingPopup(), PopupManager::hideTextPopup(), InputGuiEvent::isConsumed(), popupManager, and updateResizeHandler().
Referenced by ChatWindow::mouseMoved(), EquipmentWindow::mouseMoved(), InventoryWindow::mouseMoved(), ItemAmountWindow::mouseMoved(), Minimap::mouseMoved(), MiniStatusWindow::mouseMoved(), and setVisible().
|
virtual |
Starts window resizing when appropriate.
Reimplemented from MouseListener.
Reimplemented in ShortcutWindow, OutfitWindow, NpcDialog, MiniStatusWindow, Minimap, EquipmentWindow, and ChatWindow.
Definition at line 836 of file window.cpp.
References canMove(), CAST_S32, close(), Widget::getParent(), getResizeHandles(), Event::getSource(), InputGuiEvent::isConsumed(), Rect::isPointInRect(), isSticky(), MouseButton::LEFT, mCloseRect, mCloseWindowButton, mDragOffsetX, mDragOffsetY, mMoved, mouseResize, Widget::moveToTop(), mSkin, mStickyButton, mStickyRect, mTitleBarHeight, popupMenu, resizeMask, MouseButton::RIGHT, setSticky(), PopupMenu::showWindowPopup(), x, and y.
Referenced by ChatWindow::mousePressed(), EquipmentWindow::mousePressed(), Minimap::mousePressed(), NpcDialog::mousePressed(), OutfitWindow::mousePressed(), and ShortcutWindow::mousePressed().
|
virtual |
When the mouse button has been let go, this ensures that the mouse custom cursor is restored back to it's standard image.
Reimplemented from MouseListener.
Reimplemented in OutfitWindow, Minimap, and EquipmentWindow.
Definition at line 907 of file window.cpp.
References Cursor::CURSOR_POINTER, gui, mGrip, mMoved, mouseResize, and Gui::setCursorType().
Referenced by EquipmentWindow::mouseReleased(), Minimap::mouseReleased(), and OutfitWindow::mouseReleased().
LayoutCell & Window::place | ( | const int | x, |
const int | y, | ||
Widget *const | wg, | ||
const int | w, | ||
const int | h | ||
) |
Adds a widget to the window and sets it at given cell.
Definition at line 1384 of file window.cpp.
References BasicContainer2::add(), getLayout(), LayoutCell::place(), x, and y.
Referenced by ShortcutWindow::addButton(), ChangePasswordDialog::ChangePasswordDialog(), ConnectionDialog::ConnectionDialog(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), HelpWindow::HelpWindow(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), LoginDialog::LoginDialog(), OutfitWindow::OutfitWindow(), PincodeDialog::PincodeDialog(), NpcDialog::placeIntInputControls(), NpcDialog::placeItemInputControls(), NpcDialog::placeMenuControls(), NpcDialog::placeNormalControls(), NpcDialog::placeSkinControls(), NpcDialog::placeTextInputControls(), SocialWindow::postInit(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), ShortcutWindow::ShortcutWindow(), SkillDialog::SkillDialog(), StatusWindow::StatusWindow(), TextDialog::TextDialog(), TradeWindow::TradeWindow(), and WorldSelectDialog::WorldSelectDialog().
|
virtual |
Reimplemented from Widget.
Reimplemented in WorldSelectDialog, WhoIsOnline, UpdaterWindow, TextSelectDialog, TextDialog, TextCommandEditor, SocialWindow, SkillDialog, ShopWindow, SetupWindow, ServerInfoWindow, ServerDialog, RegisterDialog, QuitDialog, PincodeDialog, NpcDialog, LoginDialog, ItemAmountWindow, InventoryWindow, EquipmentWindow, EmoteWindow, EditServerDialog, EditDialog, DidYouKnowWindow, DebugWindow, ConnectionDialog, ConfirmDialog, ClanWindow, ChatWindow, and CharSelectDialog.
Definition at line 249 of file window.cpp.
References mInit, mWindowName, and reportAlways.
Referenced by SellDialog::postInit(), CharSelectDialog::postInit(), ChatWindow::postInit(), ClanWindow::postInit(), ConfirmDialog::postInit(), ConnectionDialog::postInit(), DebugWindow::postInit(), DidYouKnowWindow::postInit(), EditDialog::postInit(), EditServerDialog::postInit(), EmoteWindow::postInit(), EquipmentWindow::postInit(), InventoryWindow::postInit(), ItemAmountWindow::postInit(), LoginDialog::postInit(), NpcDialog::postInit(), PincodeDialog::postInit(), QuitDialog::postInit(), RegisterDialog::postInit(), ServerDialog::postInit(), ServerInfoWindow::postInit(), SetupWindow::postInit(), ShopWindow::postInit(), SkillDialog::postInit(), SocialWindow::postInit(), TextCommandEditor::postInit(), TextDialog::postInit(), TextSelectDialog::postInit(), UpdaterWindow::postInit(), WhoIsOnline::postInit(), and WorldSelectDialog::postInit().
void Window::redraw | ( | ) |
Definition at line 1406 of file window.cpp.
References getChildrenArea(), Rect::height, mLayout, Layout::reflow(), and Rect::width.
Referenced by NpcDialog::buildLayout().
void Window::reflowLayout | ( | int | w, |
int | h | ||
) |
Computes the position of the widgets according to the current layout. Resizes the window so that the layout fits. Deletes the layout.
w | if non-zero, force the window to this width. |
h | if non-zero, force the window to this height. |
Definition at line 1396 of file window.cpp.
References delete2, mLayout, Layout::reflow(), and setContentSize().
Referenced by BankWindow::BankWindow(), ChangePasswordDialog::ChangePasswordDialog(), CharSelectDialog::CharSelectDialog(), ConnectionDialog::ConnectionDialog(), ItemAmountWindow::ItemAmountWindow(), PincodeDialog::PincodeDialog(), LoginDialog::postInit(), QuitDialog::QuitDialog(), RegisterDialog::RegisterDialog(), TextCommandEditor::TextCommandEditor(), TextDialog::TextDialog(), and WorldSelectDialog::WorldSelectDialog().
|
virtual |
Reset the win pos and size to default. Don't forget to set defaults first.
Definition at line 1259 of file window.cpp.
References mDefaultHeight, mDefaultWidth, mDefaultX, mDefaultY, saveWindowState(), Widget::setPosition(), and Widget::setSize().
Referenced by Minimap::setMap().
|
virtual |
Resizes the window to fit the content.
Definition at line 1481 of file window.cpp.
References Widget::getHeight(), Widget::getWidth(), Widget::getX(), Widget::getY(), mPadding, mTitleBarHeight, BasicContainer::mWidgets, Widget::setSize(), x, and y.
|
virtual |
Reimplemented from BasicContainer2.
Reimplemented in OutfitWindow, MiniStatusWindow, Minimap, EquipmentWindow, CutInWindow, ConnectionDialog, ChatWindow, and DebugWindow.
Definition at line 423 of file window.cpp.
References BLOCK_END, BLOCK_START, Graphics::CENTER, CLOSE, TextChunk::color, TextChunk::color2, TextChunk::deleteImage(), Graphics::drawImage(), Graphics::drawImageRect(), Font::generate(), Skin::getBorder(), Skin::getCloseImage(), Skin::getStickyImage(), Font::getWidth(), Rect::height, TextChunk::img, Graphics::LEFT, mCaption, mCaptionAlign, mCaptionFont, mCaptionOffsetX, mCaptionOffsetY, mCloseRect, mCloseWindowButton, Widget::mDimension, Widget::mForegroundColor, Widget2::mForegroundColor2, mGrip, mGripRect, mResizeHandles, mShowTitle, mSkin, mSticky, mStickyButton, mStickyRect, mTextChanged, mTextChunk, Graphics::RIGHT, BasicContainer::safeDrawChildren(), TextChunk::text, TextChunk::textFont, Rect::width, Rect::x, x, and Rect::y.
Referenced by DebugWindow::safeDraw(), ChatWindow::safeDraw(), CutInWindow::safeDraw(), EquipmentWindow::safeDraw(), Minimap::safeDraw(), and OutfitWindow::safeDraw().
void Window::saveWindowState | ( | ) |
Saves the window state so that when the window is reloaded, it'll maintain its previous state and location.
Definition at line 1149 of file window.cpp.
References config, getMaxHeight(), getMaxWidth(), getMinHeight(), getMinWidth(), Rect::height, isSticky(), isWindowVisible(), Widget::mDimension, mGrip, mSaveVisible, mStickyButton, mWindowName, Widget::setHeight(), Configuration::setValue(), Widget::setWidth(), Rect::width, Rect::x, and Rect::y.
Referenced by resetToDefaultSize(), and ~Window().
|
virtual |
Schedule this window for deletion. It will be deleted at the start of the next logic update.
Reimplemented in TextCommandEditor, and ChatWindow.
Definition at line 831 of file window.cpp.
References WindowContainer::scheduleDelete(), and windowContainer.
Referenced by CharCreateDialog::action(), ConfirmDialog::action(), EditDialog::action(), EditServerDialog::action(), MailViewWindow::action(), OkDialog::action(), QuitDialog::action(), ServerDialog::action(), InventoryWindow::close(), ItemAmountWindow::close(), MailEditWindow::close(), PincodeDialog::close(), ServerInfoWindow::close(), TextDialog::close(), DialogsManager::closeDialogs(), PincodeManager::closeDialogs(), createGuiWindows(), WindowManager::createWindows(), UpdaterWindow::deleteSelf(), EditServerDialog::keyPressed(), EAthena::BeingRecv::processBeingResurrect(), TmwAthena::BeingRecv::processBeingResurrect(), EAthena::CharServerRecv::processCharCreate(), TmwAthena::CharServerRecv::processCharCreate(), ChatWindow::scheduleDelete(), TextCommandEditor::scheduleDelete(), EggSelectionDialog::sellAction(), InsertCardDialog::sellAction(), SellDialog::setVisible(), BuyDialog::setVisible(), BuySellDialog::setVisible(), NpcDialog::setVisible(), TextSelectDialog::setVisible(), LocalPlayer::slowLogic(), Game::slowLogic(), SocialTab::~SocialTab(), and SocialWindow::~SocialWindow().
|
inline |
Sets the alignment of the caption.
alignment | The alignment of the caption. |
Definition at line 549 of file window.h.
References mAlignment.
|
inline |
Definition at line 189 of file window.h.
References mAllowClose.
Referenced by ShortcutWindow::ShortcutWindow().
|
inline |
Sets the caption of the window.
caption | The caption of the window. |
Definition at line 531 of file window.h.
References mCaption, and mTextChanged.
Referenced by WhoIsOnline::action(), CharSelectDialog::CharSelectDialog(), EggSelectionDialog::EggSelectionDialog(), InsertCardDialog::InsertCardDialog(), InventoryWindow::InventoryWindow(), ItemAmountWindow::ItemAmountWindow(), NpcDialog::postInit(), Ea::NpcRecv::processChangeTitle(), EAthena::InventoryRecv::processInventoryStartContinue(), Ea::TradeRecv::processTradeResponseContinue(), ServerDialog::ServerDialog(), Minimap::setMap(), WhoIsOnline::slowLogic(), StatusWindow::StatusWindow(), ShopWindow::updateShopName(), and WhoIsOnline::updateWindow().
|
inline |
Definition at line 478 of file window.h.
References mCaptionFont.
Referenced by TradeWindow::initTrade().
void Window::setCloseButton | ( | const bool | flag | ) |
Sets whether or not the window has a close button.
Definition at line 749 of file window.cpp.
References mAllowClose, and mCloseWindowButton.
Referenced by BankWindow::BankWindow(), CharSelectDialog::CharSelectDialog(), ClanWindow::ClanWindow(), DebugWindow::DebugWindow(), DidYouKnowWindow::DidYouKnowWindow(), EquipmentWindow::EquipmentWindow(), HelpWindow::HelpWindow(), BuyDialog::init(), BuySellDialog::init(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), LoginDialog::LoginDialog(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), WhoIsOnline::postInit(), QuestsWindow::QuestsWindow(), RegisterDialog::RegisterDialog(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), SetupWindow::SetupWindow(), ShopWindow::ShopWindow(), CutInWindow::show(), SkillDialog::SkillDialog(), StatusWindow::StatusWindow(), and TradeWindow::TradeWindow().
void Window::setContentSize | ( | int | width, |
int | height | ||
) |
Sets the size of this window.
Definition at line 492 of file window.cpp.
References mMaxWinHeight, mMaxWinWidth, mMinWinHeight, mMinWinWidth, mPadding, mTitleBarHeight, and Widget::setSize().
Referenced by BankWindow::BankWindow(), ChangeEmailDialog::ChangeEmailDialog(), CharCreateDialog::CharCreateDialog(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), HelpWindow::HelpWindow(), BuySellDialog::init(), NpcDialog::NpcDialog(), OkDialog::OkDialog(), ConfirmDialog::postInit(), EditDialog::postInit(), LoginDialog::postInit(), SetupWindow::postInit(), reflowLayout(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), CharCreateDialog::setAttributes(), and MiniStatusWindow::updateBars().
void Window::setDefaultSize | ( | ) |
Set the default win pos and size to the current ones.
Definition at line 1198 of file window.cpp.
References Rect::height, mDefaultHeight, mDefaultWidth, mDefaultX, mDefaultY, Widget::mDimension, Rect::width, Rect::x, and Rect::y.
Referenced by BankWindow::BankWindow(), ChatWindow::ChatWindow(), ClanWindow::ClanWindow(), DebugWindow::DebugWindow(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), HelpWindow::HelpWindow(), BuyDialog::init(), BuySellDialog::init(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), Minimap::Minimap(), NpcDialog::NpcDialog(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), LoginDialog::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), WhoIsOnline::postInit(), QuestsWindow::QuestsWindow(), EquipmentWindow::recalcSize(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), Minimap::setMap(), ShopWindow::ShopWindow(), ShortcutWindow::ShortcutWindow(), SkillDialog::SkillDialog(), StatusWindow::StatusWindow(), TextCommandEditor::TextCommandEditor(), TradeWindow::TradeWindow(), and UpdaterWindow::UpdaterWindow().
void Window::setDefaultSize | ( | const int | defaultWidth, |
const int | defaultHeight, | ||
const ImagePosition::Type & | position, | ||
const int | offsetx, | ||
const int | offsetY | ||
) |
Set the default win pos and size. (which can be different of the actual ones.) This version of setDefaultSize sets the window's position based on a relative enumerated position, rather than a coordinate position.
Definition at line 1206 of file window.cpp.
References ImagePosition::CENTER, ImagePosition::LEFT, ImagePosition::LOWER_CENTER, ImagePosition::LOWER_LEFT, ImagePosition::LOWER_RIGHT, mainGraphics, mDefaultHeight, mDefaultWidth, mDefaultX, mDefaultY, Graphics::mHeight, Graphics::mWidth, ImagePosition::RIGHT, ImagePosition::UPPER_CENTER, ImagePosition::UPPER_LEFT, ImagePosition::UPPER_RIGHT, x, and y.
void Window::setDefaultSize | ( | const int | defaultX, |
const int | defaultY, | ||
int | defaultWidth, | ||
int | defaultHeight | ||
) |
Set the default win pos and size. (which can be different of the actual ones.)
Definition at line 1180 of file window.cpp.
References mDefaultHeight, mDefaultWidth, mDefaultX, mDefaultY, mMaxWinHeight, mMaxWinWidth, mMinWinHeight, and mMinWinWidth.
|
inline |
Sets whether the window is visible by default.
Definition at line 288 of file window.h.
References mDefaultVisible.
Referenced by ChatWindow::ChatWindow(), CutInWindow::CutInWindow(), Minimap::Minimap(), and ShortcutWindow::ShortcutWindow().
void Window::setLocationHorisontallyRelativeTo | ( | const Widget *const | widget | ) |
Sets the location relative to the given widget (only horisontally)
Definition at line 528 of file window.cpp.
References Widget::getAbsolutePosition(), Widget::getWidth(), Widget::mDimension, Widget::setPosition(), Rect::width, Rect::x, x, and y.
Referenced by centerHorisontally().
void Window::setLocationRelativeTo | ( | const ImagePosition::Type & | position, |
int | offsetX, | ||
int | offsetY | ||
) |
Sets the location relative to the given enumerated position.
Definition at line 545 of file window.cpp.
References ImagePosition::CENTER, Rect::height, ImagePosition::LEFT, ImagePosition::LOWER_CENTER, ImagePosition::LOWER_LEFT, ImagePosition::LOWER_RIGHT, mainGraphics, Widget::mDimension, Graphics::mHeight, Graphics::mWidth, ImagePosition::RIGHT, Widget::setPosition(), ImagePosition::UPPER_CENTER, ImagePosition::UPPER_LEFT, ImagePosition::UPPER_RIGHT, and Rect::width.
void Window::setLocationRelativeTo | ( | const Widget *const | widget | ) |
Sets the location relative to the given widget.
Definition at line 509 of file window.cpp.
References Widget::getAbsolutePosition(), Widget::getHeight(), Widget::getWidth(), Rect::height, Widget::mDimension, Widget::setPosition(), Rect::width, Rect::x, x, Rect::y, and y.
Referenced by center(), EditServerDialog::EditServerDialog(), ItemAmountWindow::ItemAmountWindow(), PincodeDialog::postInit(), QuitDialog::postInit(), SkillDialog::postInit(), TextDialog::postInit(), and WhoIsOnline::postInit().
void Window::setMaxHeight | ( | const int | height | ) |
Sets the minimum height of the window.
Definition at line 622 of file window.cpp.
References mMaxWinHeight.
Referenced by Minimap::setMap(), and ShortcutWindow::ShortcutWindow().
void Window::setMaxWidth | ( | const int | width | ) |
Sets the maximum width of the window.
Definition at line 617 of file window.cpp.
References mMaxWinWidth.
Referenced by Minimap::setMap(), and ShortcutWindow::ShortcutWindow().
void Window::setMinHeight | ( | const int | height | ) |
Sets the minimum height of the window.
Definition at line 604 of file window.cpp.
References Skin::getMinHeight(), mMinWinHeight, and mSkin.
Referenced by ChatWindow::ChatWindow(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), HelpWindow::HelpWindow(), BuyDialog::init(), InventoryWindow::InventoryWindow(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), NpcDialog::NpcDialog(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), SetupWindow::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), QuestsWindow::QuestsWindow(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), Minimap::setMap(), ShopWindow::ShopWindow(), ShortcutWindow::ShortcutWindow(), TradeWindow::TradeWindow(), and UpdaterWindow::UpdaterWindow().
void Window::setMinWidth | ( | const int | width | ) |
Sets the minimum width of the window.
Definition at line 591 of file window.cpp.
References Skin::getMinWidth(), mMinWinWidth, and mSkin.
Referenced by ChatWindow::ChatWindow(), ConnectionDialog::ConnectionDialog(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), HelpWindow::HelpWindow(), BuyDialog::init(), InventoryWindow::InventoryWindow(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), NpcDialog::NpcDialog(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), SetupWindow::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), QuestsWindow::QuestsWindow(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), Minimap::setMap(), ShopWindow::ShopWindow(), ShortcutWindow::ShortcutWindow(), TradeWindow::TradeWindow(), and UpdaterWindow::UpdaterWindow().
void Window::setModal | ( | const Modal | modal | ) |
Allows the windows modal status to change
Definition at line 1069 of file window.cpp.
References Cursor::CURSOR_POINTER, gui, mModal, Modal_true, Widget::releaseModalFocus(), Widget::requestModalFocus(), and Gui::setCursorType().
Referenced by SkillDialog::useSkillDefault(), SkillDialog::useSkillPosition(), and SkillDialog::useSkillTarget().
|
inline |
|
inline |
void Window::setResizable | ( | const bool | resize | ) |
Sets whether or not the window can be resized.
Definition at line 627 of file window.cpp.
References Theme::getImageFromThemeXml(), Rect::height, Widget::mDimension, mGrip, mGripPadding, mGripRect, Rect::width, Rect::x, and Rect::y.
Referenced by ChatWindow::ChatWindow(), ClanWindow::ClanWindow(), CutInWindow::CutInWindow(), DebugWindow::DebugWindow(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), EmoteWindow::EmoteWindow(), HelpWindow::HelpWindow(), BuyDialog::init(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), Minimap::Minimap(), NpcDialog::NpcDialog(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), WhoIsOnline::postInit(), QuestsWindow::QuestsWindow(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), SetupWindow::SetupWindow(), ShopWindow::ShopWindow(), ShortcutWindow::ShortcutWindow(), SkillDialog::SkillDialog(), StatusWindow::StatusWindow(), TradeWindow::TradeWindow(), and UpdaterWindow::UpdaterWindow().
|
inline |
Sets whether the window will save it's visibility.
Definition at line 300 of file window.h.
References mSaveVisible.
Referenced by ChatWindow::ChatWindow(), ClanWindow::ClanWindow(), CutInWindow::CutInWindow(), DebugWindow::DebugWindow(), EquipmentWindow::EquipmentWindow(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), Minimap::Minimap(), SocialWindow::postInit(), WhoIsOnline::postInit(), QuestsWindow::QuestsWindow(), ShortcutWindow::ShortcutWindow(), SkillDialog::SkillDialog(), and StatusWindow::StatusWindow().
|
inline |
Sets flag to show a title or not.
Definition at line 235 of file window.h.
References mShowTitle.
Referenced by ChatWindow::ChatWindow(), CutInWindow::CutInWindow(), EmoteWindow::EmoteWindow(), ShortcutWindow::ShortcutWindow(), and CutInWindow::show().
void Window::setSticky | ( | const bool | sticky | ) |
Sets whether the window is sticky. A sticky window will not have its visibility set to false on a general setVisible(false) call. Use this to set the default before you call loadWindowState().
Definition at line 766 of file window.cpp.
References Widget::mRedraw, and mSticky.
Referenced by CharCreateDialog::CharCreateDialog(), PopupMenu::handleLink(), loadWindowState(), Minimap::Minimap(), and mousePressed().
void Window::setStickyButton | ( | const bool | flag | ) |
Sets whether or not the window has a sticky button.
Definition at line 761 of file window.cpp.
References mStickyButton.
Referenced by Minimap::Minimap().
void Window::setStickyButtonLock | ( | const bool | sticky | ) |
Sets whether the window sticky mean window locked or not.
Definition at line 772 of file window.cpp.
References mStickyButton, and mStickyButtonLock.
Referenced by CharCreateDialog::CharCreateDialog(), ChatWindow::ChatWindow(), ClanWindow::ClanWindow(), DebugWindow::DebugWindow(), DidYouKnowWindow::DidYouKnowWindow(), EquipmentWindow::EquipmentWindow(), HelpWindow::HelpWindow(), BuyDialog::init(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), NpcDialog::NpcDialog(), OutfitWindow::OutfitWindow(), PincodeDialog::PincodeDialog(), SellDialog::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), WhoIsOnline::postInit(), QuestsWindow::QuestsWindow(), ServerInfoWindow::ServerInfoWindow(), SetupWindow::SetupWindow(), ShopWindow::ShopWindow(), SkillDialog::SkillDialog(), StatusWindow::StatusWindow(), and TradeWindow::TradeWindow().
|
inline |
Sets the title bar height.
height | The title height value. |
Definition at line 513 of file window.h.
References mTitleBarHeight.
Referenced by ChatWindow::ChatWindow(), EmoteWindow::postInit(), ShortcutWindow::ShortcutWindow(), and Window().
|
inlineprotected |
void Window::setVisible | ( | const Visible | visible, |
const bool | forceSticky | ||
) |
Overloads window setVisible by Guichan to allow sticky window handling, or not, if you force the sticky state.
Definition at line 783 of file window.cpp.
References Gui::createMouseEvent(), ensureOnScreen(), fromBool, gui, Rect::height, Widget::mDimension, mouseMoved(), mPlayVisibleSound, mResizeHandles, mSticky, mStickyButtonLock, Widget::mVisible, SoundManager::playGuiSound(), Widget::setVisible(), SOUND_HIDE_WINDOW, SOUND_SHOW_WINDOW, soundManager, Visible_true, Rect::width, x, and y.
|
virtual |
Overloads window setVisible by Guichan to allow sticky window handling.
Reimplemented in TextSelectDialog, ShopWindow, SetupWindow, NpcDialog, InventoryWindow, DidYouKnowWindow, ChatWindow, BuySellDialog, BuyDialog, and SellDialog.
Definition at line 778 of file window.cpp.
Referenced by QuestsWindow::action(), SkillDialog::action(), TradeWindow::action(), CharSelectDialog::attemptCharacterSelect(), CharCreateDialog::CharCreateDialog(), EmoteWindow::clearColor(), EmoteWindow::clearEmote(), EmoteWindow::clearFont(), EmoteWindow::clearText(), close(), TradeWindow::completeTrade(), createGuiWindows(), CutInWindow::CutInWindow(), CutInWindow::hide(), EmoteWindow::hide(), SetupWindow::hideWindows(), HelpWindow::loadHelp(), HelpWindow::loadHelpSimple(), loadWindowState(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), Minimap::Minimap(), MiniStatusWindow::MiniStatusWindow(), OkDialog::OkDialog(), CharSelectDialog::postInit(), ConfirmDialog::postInit(), ConnectionDialog::postInit(), EditDialog::postInit(), EditServerDialog::postInit(), ItemAmountWindow::postInit(), LoginDialog::postInit(), PincodeDialog::postInit(), QuitDialog::postInit(), RegisterDialog::postInit(), ServerDialog::postInit(), ServerInfoWindow::postInit(), SocialWindow::postInit(), TextCommandEditor::postInit(), TextDialog::postInit(), UpdaterWindow::postInit(), WhoIsOnline::postInit(), WorldSelectDialog::postInit(), EAthena::MailRecv::processMailOpen(), Ea::TradeRecv::processTradeCancel(), Ea::TradeRecv::processTradeResponseContinue(), HelpWindow::search(), QuestsWindow::selectQuest(), Minimap::setMap(), SellDialog::setVisible(), BuyDialog::setVisible(), BuySellDialog::setVisible(), ChatWindow::setVisible(), DidYouKnowWindow::setVisible(), InventoryWindow::setVisible(), NpcDialog::setVisible(), SetupWindow::setVisible(), ShopWindow::setVisible(), TextSelectDialog::setVisible(), EmoteWindow::show(), CutInWindow::show(), Actions::showHelpPage(), Actions::showHideWindow(), Minimap::toggle(), and Window().
|
static |
Sets the window container to be used by new windows.
Definition at line 306 of file window.cpp.
References windowContainer.
Referenced by Gui::postInit(), and Gui::~Gui().
|
inline |
Sets the name of the window. This is not the window title.
Definition at line 355 of file window.h.
References mWindowName.
Referenced by BankWindow::BankWindow(), CharCreateDialog::CharCreateDialog(), ChatWindow::ChatWindow(), ClanWindow::ClanWindow(), CutInWindow::CutInWindow(), DebugWindow::DebugWindow(), DidYouKnowWindow::DidYouKnowWindow(), EditServerDialog::EditServerDialog(), EggSelectionDialog::EggSelectionDialog(), EquipmentWindow::EquipmentWindow(), HelpWindow::HelpWindow(), BuyDialog::init(), BuySellDialog::init(), InsertCardDialog::InsertCardDialog(), InventoryWindow::InventoryWindow(), KillStats::KillStats(), LoginDialog::LoginDialog(), MailEditWindow::MailEditWindow(), MailViewWindow::MailViewWindow(), MailWindow::MailWindow(), Minimap::Minimap(), NpcDialog::NpcDialog(), OutfitWindow::OutfitWindow(), SellDialog::postInit(), SocialWindow::postInit(), TextSelectDialog::postInit(), QuestsWindow::QuestsWindow(), ServerDialog::ServerDialog(), ServerInfoWindow::ServerInfoWindow(), ShopWindow::ShopWindow(), ShortcutWindow::ShortcutWindow(), SkillDialog::SkillDialog(), StatusWindow::StatusWindow(), TextCommandEditor::TextCommandEditor(), TradeWindow::TradeWindow(), UpdaterWindow::UpdaterWindow(), and WhoIsOnline::WhoIsOnline().
void Window::updateResizeHandler | ( | MouseEvent & | event | ) |
Definition at line 930 of file window.cpp.
References BOTTOM, Cursor::CURSOR_POINTER, Cursor::CURSOR_RESIZE_ACROSS, Cursor::CURSOR_RESIZE_DOWN, Cursor::CURSOR_RESIZE_DOWN_LEFT, Cursor::CURSOR_RESIZE_DOWN_RIGHT, dragDrop, getResizeHandles(), gui, DragDrop::isEmpty(), LEFT, mResizeHandles, resizeMask, RIGHT, Gui::setCursorType(), and TOP.
Referenced by mouseEntered(), and mouseMoved().
|
virtual |
Called whenever the widget is hidden.
Reimplemented from WidgetListener.
Reimplemented in ShortcutWindow, and InventoryWindow.
Definition at line 725 of file window.cpp.
References ImageCollection::clear(), Cursor::CURSOR_POINTER, TextChunk::deleteImage(), FocusHandler::focusNone(), gui, isBatchDrawRenders, FocusHandler::isFocused(), Widget::mFocusHandler, Widget::mRedraw, mTextChanged, mTextChunk, mVertexes, BasicContainer::mWidgets, openGLMode, and Gui::setCursorType().
Referenced by InventoryWindow::widgetHidden(), and ShortcutWindow::widgetHidden().
|
virtual |
Invoked when a widget is moved.
event | Describes the event. |
Reimplemented from WidgetListener.
Reimplemented in ShortcutWindow, and EmoteWindow.
Definition at line 720 of file window.cpp.
References Widget::mRedraw.
Referenced by EmoteWindow::widgetMoved(), and ShortcutWindow::widgetMoved().
|
virtual |
Called whenever the widget changes size.
Reimplemented from WidgetListener.
Reimplemented in WhoIsOnline, SocialWindow, SkillDialog, SetupWindow, InventoryWindow, EmoteWindow, DebugWindow, ClanWindow, ChatWindow, and CharSelectDialog.
Definition at line 655 of file window.cpp.
References buttonWidth, getChildrenArea(), Skin::getCloseImage(), Skin::getStickyImage(), Rect::height, mClosePadding, mCloseRect, mCloseWindowButton, Widget::mDimension, mGrip, mGripPadding, mGripRect, mLayout, Widget::mRedraw, mSkin, mSticky, mStickyButton, mStickyPadding, mStickyRect, mStickySpacing, Layout::reflow(), Rect::width, Rect::x, x, and Rect::y.
Referenced by ShortcutWindow::addButton(), adjustSizeToScreen(), HelpWindow::HelpWindow(), DidYouKnowWindow::postInit(), ServerInfoWindow::ServerInfoWindow(), CharSelectDialog::widgetResized(), ChatWindow::widgetResized(), ClanWindow::widgetResized(), DebugWindow::widgetResized(), EmoteWindow::widgetResized(), InventoryWindow::widgetResized(), SetupWindow::widgetResized(), SkillDialog::widgetResized(), SocialWindow::widgetResized(), and WhoIsOnline::widgetResized().
|
inline |
Returns whether the window will save it's visibility.
Definition at line 294 of file window.h.
References mSaveVisible.
|
protected |
Holds the alignment of the caption.
Definition at line 613 of file window.h.
Referenced by getAlignment(), and setAlignment().
|
private |
Definition at line 730 of file window.h.
Referenced by getAlowClose(), setAllowClose(), and setCloseButton().
|
protected |
Holds the caption of the window.
Definition at line 608 of file window.h.
Referenced by draw(), getCaption(), Minimap::mouseMoved(), safeDraw(), and setCaption().
|
private |
Definition at line 711 of file window.h.
Referenced by draw(), safeDraw(), and Window().
|
private |
Definition at line 719 of file window.h.
Referenced by draw(), safeDraw(), setCaptionFont(), and Window().
|
protected |
Definition at line 654 of file window.h.
Referenced by draw(), ConfirmDialog::postInit(), safeDraw(), and Window().
|
protected |
Definition at line 655 of file window.h.
Referenced by draw(), safeDraw(), and Window().
|
private |
Definition at line 716 of file window.h.
Referenced by widgetResized(), and Window().
|
private |
Close button rectangle
Definition at line 690 of file window.h.
Referenced by draw(), getResizeHandles(), mousePressed(), safeDraw(), and widgetResized().
|
private |
Window has a close button
Definition at line 721 of file window.h.
Referenced by draw(), getAlowClose(), getCloseButton(), mousePressed(), safeDraw(), setCloseButton(), and widgetResized().
|
protected |
Default window height
Definition at line 653 of file window.h.
Referenced by loadWindowState(), resetToDefaultSize(), and setDefaultSize().
|
private |
Window's default visibility
Definition at line 722 of file window.h.
Referenced by isDefaultVisible(), loadWindowState(), and setDefaultVisible().
|
protected |
Default window width
Definition at line 652 of file window.h.
Referenced by EditDialog::EditDialog(), loadWindowState(), EditDialog::postInit(), resetToDefaultSize(), and setDefaultSize().
|
protected |
Default window X position
Definition at line 650 of file window.h.
Referenced by loadWindowState(), resetToDefaultSize(), and setDefaultSize().
|
protected |
Default window Y position
Definition at line 651 of file window.h.
Referenced by loadWindowState(), resetToDefaultSize(), and setDefaultSize().
|
protected |
Holds a drag offset as an x coordinate where the drag of the window started if the window is being dragged. It's used to move the window correctly when dragged.
Definition at line 635 of file window.h.
Referenced by getResizeHandles(), mouseDragged(), ChatWindow::mouseDragged(), ShortcutWindow::mouseDragged(), mousePressed(), ChatWindow::mousePressed(), ShortcutWindow::mousePressed(), and ShortcutWindow::ShortcutWindow().
|
protected |
Holds a drag offset as an y coordinate where the drag of the window started if the window is being dragged. It's used to move the window correctly when dragged.
Definition at line 642 of file window.h.
Referenced by getResizeHandles(), mouseDragged(), ChatWindow::mouseDragged(), ShortcutWindow::mouseDragged(), mousePressed(), ChatWindow::mousePressed(), ShortcutWindow::mousePressed(), and ShortcutWindow::ShortcutWindow().
|
private |
Resize grip
Definition at line 687 of file window.h.
Referenced by adjustSizeToScreen(), draw(), getResizeHandles(), isResizable(), isResizeAllowed(), loadWindowState(), mouseExited(), mouseReleased(), safeDraw(), saveWindowState(), setResizable(), widgetResized(), and ~Window().
|
private |
Definition at line 713 of file window.h.
Referenced by setResizable(), widgetResized(), and Window().
|
private |
Resize grip rectangle
Definition at line 692 of file window.h.
Referenced by draw(), getResizeHandles(), isResizeAllowed(), safeDraw(), setResizable(), and widgetResized().
|
private |
Definition at line 728 of file window.h.
Referenced by postInit(), and ~Window().
|
protected |
Definition at line 657 of file window.h.
Referenced by draw(), and EquipmentWindow::draw().
|
private |
Layout handler
Definition at line 689 of file window.h.
Referenced by clearLayout(), getLayout(), redraw(), reflowLayout(), widgetResized(), and ~Window().
|
private |
Maximum window height
Definition at line 698 of file window.h.
Referenced by getMaxHeight(), mouseDragged(), setContentSize(), setDefaultSize(), and setMaxHeight().
|
private |
Maximum window width
Definition at line 697 of file window.h.
Referenced by getMaxWidth(), mouseDragged(), setContentSize(), setDefaultSize(), and setMaxWidth().
|
private |
Minimum window height
Definition at line 696 of file window.h.
Referenced by getMinHeight(), mouseDragged(), setContentSize(), setDefaultSize(), and setMinHeight().
|
private |
Minimum window width
Definition at line 695 of file window.h.
Referenced by getMinWidth(), mouseDragged(), setContentSize(), setDefaultSize(), and setMinWidth().
|
private |
|
protected |
True if the window is movable, false otherwise.
Definition at line 628 of file window.h.
Referenced by isMovable(), and setMovable().
|
protected |
True if the window is being moved, false otherwise.
Definition at line 647 of file window.h.
Referenced by mouseDragged(), ChatWindow::mouseDragged(), OutfitWindow::mouseDragged(), ShortcutWindow::mouseDragged(), mousePressed(), ChatWindow::mousePressed(), OutfitWindow::mousePressed(), mouseReleased(), and OutfitWindow::mouseReleased().
|
private |
|
staticprivate |
Active resize handles
Definition at line 700 of file window.h.
Referenced by mouseDragged(), mouseExited(), mousePressed(), and mouseReleased().
|
protected |
Holds the padding of the window.
Definition at line 618 of file window.h.
Referenced by ChatWindow::adjustTabSize(), CharCreateDialog::CharCreateDialog(), CharSelectDialog::CharSelectDialog(), ChatWindow::ChatWindow(), OutfitWindow::draw(), CutInWindow::draw2(), getChildrenArea(), MiniStatusWindow::getChildrenArea(), OutfitWindow::getIndexFromGrid(), getPadding(), getResizeHandles(), getWindowArea(), isResizeAllowed(), ConfirmDialog::postInit(), EmoteWindow::postInit(), resizeToContent(), OutfitWindow::safeDraw(), CharCreateDialog::setAttributes(), setContentSize(), setPadding(), CutInWindow::show(), NpcDialog::showAvatar(), EmoteWindow::widgetResized(), and Window().
|
private |
|
private |
Definition at line 727 of file window.h.
Referenced by enableVisibleSound(), and setVisible().
|
private |
Definition at line 714 of file window.h.
Referenced by draw(), safeDraw(), setVisible(), and updateResizeHandler().
|
private |
Window will save visibility
Definition at line 723 of file window.h.
Referenced by loadWindowState(), saveWindowState(), setSaveVisible(), and willSaveVisible().
|
protected |
Window has a title bar
Definition at line 656 of file window.h.
Referenced by draw(), safeDraw(), setShowTitle(), and Window().
|
protected |
Skin in use by this window
Definition at line 649 of file window.h.
Referenced by ShortcutWindow::addTab(), draw(), getOption(), getOptionBool(), mousePressed(), safeDraw(), setMinHeight(), setMinWidth(), ShortcutWindow::ShortcutWindow(), widgetResized(), Window(), and ~Window().
|
private |
Window resists hiding
Definition at line 725 of file window.h.
Referenced by canMove(), draw(), getResizeHandles(), isSticky(), safeDraw(), setSticky(), setVisible(), and widgetResized().
|
private |
Window has a sticky button
Definition at line 724 of file window.h.
Referenced by draw(), loadWindowState(), mousePressed(), safeDraw(), saveWindowState(), setStickyButton(), setStickyButtonLock(), and widgetResized().
|
private |
Window locked if sticky enabled
Definition at line 726 of file window.h.
Referenced by canMove(), getResizeHandles(), isStickyButtonLock(), setStickyButtonLock(), and setVisible().
|
private |
Definition at line 718 of file window.h.
Referenced by widgetResized(), and Window().
|
private |
Sticky button rectangle
Definition at line 691 of file window.h.
Referenced by draw(), mousePressed(), safeDraw(), and widgetResized().
|
private |
Definition at line 717 of file window.h.
Referenced by widgetResized(), and Window().
|
private |
Definition at line 729 of file window.h.
Referenced by draw(), safeDraw(), setCaption(), and widgetHidden().
|
private |
Definition at line 693 of file window.h.
Referenced by draw(), safeDraw(), and widgetHidden().
|
protected |
Holds the title bar height of the window.
Definition at line 623 of file window.h.
Referenced by ConnectionDialog::ConnectionDialog(), OutfitWindow::draw(), CutInWindow::draw2(), getChildrenArea(), OutfitWindow::getIndexFromGrid(), getResizeHandles(), getTitleBarHeight(), isResizeAllowed(), mousePressed(), resizeToContent(), OutfitWindow::safeDraw(), setContentSize(), setTitleBarHeight(), CutInWindow::show(), and Window().
|
private |
Definition at line 712 of file window.h.
Referenced by getTitlePadding(), setTitlePadding(), and Window().
|
private |
Definition at line 710 of file window.h.
Referenced by draw(), widgetHidden(), and ~Window().
|
private |
Name of the window
Definition at line 694 of file window.h.
Referenced by getWindowName(), loadWindowState(), postInit(), saveWindowState(), setWindowName(), and ~Window().
|
staticprivate |
The width of the resize border. Is independent of the actual window border width, and determines mostly the size of the corner area where two borders are moved at the same time.
Definition at line 709 of file window.h.
Referenced by getResizeHandles().
|
staticprivate |