The server tree of https://code.moenext.com/nanahira/ygopro.git, branch server, commit 52c868ce071ea0f2fcb0cf39bf2fb4151d12b90c, stock: gframe/, premake5.lua, .ci/, LICENSE, and gframe/ygopro.rc + .ico (upstream keeps them in resource/ and copies them in before building). No game assets, no scripts, no ocgcore submodule: the core is ../core. The third-party sources upstream's Windows CI downloads are vendored here at the positions its premake expects, each with its premake fragment from upstream's premake/ folder inside it: lua 5.4.8, sqlite 3.53.3, libevent 2.1.13-stable (tests, samples and autotools helpers left out; the files its Windows prebuild copies into include/ left out), zlib 1.3.2 (contrib and examples left out), xz 5.8.3 (src/liblzma + src/common only), and irrlicht 1.9 from mycard at 20f86d25: include/ plus the source/Irrlicht headers and the 11 .cpp files the server's zip reader project compiles. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
73 lines
2.7 KiB
C++
73 lines
2.7 KiB
C++
// Copyright (C) 2002-2012 Nikolaus Gebhardt
|
|
// This file is part of the "Irrlicht Engine".
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
#ifndef IRR_I_GUI_WINDOW_H_INCLUDED
|
|
#define IRR_I_GUI_WINDOW_H_INCLUDED
|
|
|
|
#include "IGUIElement.h"
|
|
|
|
namespace irr
|
|
{
|
|
namespace gui
|
|
{
|
|
class IGUIButton;
|
|
|
|
//! Default moveable window GUI element with border, caption and close icons.
|
|
/** \par This element can create the following events of type EGUI_EVENT_TYPE:
|
|
\li EGET_ELEMENT_CLOSED
|
|
*/
|
|
class IGUIWindow : public IGUIElement
|
|
{
|
|
public:
|
|
|
|
//! constructor
|
|
IGUIWindow(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
|
|
: IGUIElement(EGUIET_WINDOW, environment, parent, id, rectangle) {}
|
|
|
|
//! Returns pointer to the close button
|
|
/** You can hide the button by calling setVisible(false) on the result. */
|
|
virtual IGUIButton* getCloseButton() const = 0;
|
|
|
|
//! Returns pointer to the minimize button
|
|
/** You can hide the button by calling setVisible(false) on the result. */
|
|
virtual IGUIButton* getMinimizeButton() const = 0;
|
|
|
|
//! Returns pointer to the maximize button
|
|
/** You can hide the button by calling setVisible(false) on the result. */
|
|
virtual IGUIButton* getMaximizeButton() const = 0;
|
|
|
|
//! Returns true if the window can be dragged with the mouse, false if not
|
|
virtual bool isDraggable() const = 0;
|
|
|
|
//! Sets whether the window can be dragged by the mouse
|
|
virtual void setDraggable(bool draggable) = 0;
|
|
|
|
//! Set if the window background will be drawn
|
|
virtual void setDrawBackground(bool draw) = 0;
|
|
|
|
//! Get if the window background will be drawn
|
|
virtual bool getDrawBackground() const = 0;
|
|
|
|
//! Set if the window titlebar will be drawn
|
|
//! Note: If the background is not drawn, then the titlebar is automatically also not drawn
|
|
virtual void setDrawTitlebar(bool draw) = 0;
|
|
|
|
//! Get if the window titlebar will be drawn
|
|
virtual bool getDrawTitlebar() const = 0;
|
|
|
|
//! Returns the rectangle of the drawable area (without border and without titlebar)
|
|
/** The coordinates are given relative to the top-left position of the gui element.<br>
|
|
So to get absolute positions you have to add the resulting rectangle to getAbsolutePosition().UpperLeftCorner.<br>
|
|
To get it relative to the parent element you have to add the resulting rectangle to getRelativePosition().UpperLeftCorner.
|
|
Beware that adding a menu will not change the clientRect as menus are own gui elements, so in that case you might want to subtract
|
|
the menu area additionally. */
|
|
virtual core::rect<s32> getClientRect() const = 0;
|
|
};
|
|
|
|
|
|
} // end namespace gui
|
|
} // end namespace irr
|
|
|
|
#endif
|