29 #ifndef _CEGUIFrameWindow_h_
30 #define _CEGUIFrameWindow_h_
33 #include "../Window.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
119 virtual void initialiseComponents(
void);
149 bool isTitleBarEnabled(
void)
const;
159 bool isCloseButtonEnabled(
void)
const;
178 void setRolledup(
bool val);
210 void setSizingEnabled(
bool setting);
223 void setFrameEnabled(
bool setting);
236 void setTitleBarEnabled(
bool setting);
249 void setCloseButtonEnabled(
bool setting);
262 void setRollupEnabled(
bool setting);
272 void toggleRollup(
void);
299 void offsetPixelPosition(
const Vector2f& offset);
322 void setDragMovingEnabled(
bool setting);
333 const Image* getNSSizingCursorImage()
const;
343 const Image* getEWSizingCursorImage()
const;
353 const Image* getNWSESizingCursorImage()
const;
363 const Image* getNESWSizingCursorImage()
const;
375 void setNSSizingCursorImage(
const Image* image);
387 void setEWSizingCursorImage(
const Image* image);
399 void setNWSESizingCursorImage(
const Image* image);
411 void setNESWSizingCursorImage(
const Image* image);
425 void setNSSizingCursorImage(
const String& name);
439 void setEWSizingCursorImage(
const String& name);
453 void setNWSESizingCursorImage(
const String& name);
467 void setNESWSizingCursorImage(
const String& name);
525 bool moveLeftEdge(
float delta,
URect& out_area);
535 bool moveRightEdge(
float delta,
URect& out_area);
545 bool moveTopEdge(
float delta,
URect& out_area);
555 bool moveBottomEdge(
float delta,
URect& out_area);
571 SizingLocation getSizingBorderAtPoint(
const Vector2f& pt)
const;
630 bool closeClickHandler(
const EventArgs& e);
637 void setCursorForPoint(
const Vector2f& pt)
const;
710 void addFrameWindowProperties(
void);
715 #if defined(_MSC_VER)
716 # pragma warning(pop)
719 #endif // end of guard _CEGUIFrameWindow_h_
bool d_rolledup
true if window is rolled up.
Definition: widgets/FrameWindow.h:689
virtual bool isHit(const Vector2f &position, const bool allow_disabled=false) const
check if the given pixel position would hit this window.
Position will size from the left.
Definition: widgets/FrameWindow.h:104
bool d_rollupEnabled
true if roll-up of window is allowed.
Definition: widgets/FrameWindow.h:688
static const String WidgetTypeName
Window factory name.
Definition: widgets/FrameWindow.h:52
bool d_sizingEnabled
true if sizing is enabled for this window.
Definition: widgets/FrameWindow.h:692
Position will size from the bottom left.
Definition: widgets/FrameWindow.h:101
Interface for Image.
Definition: Image.h:158
Position will size from the top-right.
Definition: widgets/FrameWindow.h:100
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
static const float DefaultSizingBorderSize
Default size for the sizing border (in pixels)
Definition: widgets/FrameWindow.h:84
static const String EventNamespace
Namespace for global events.
Definition: widgets/FrameWindow.h:51
const Image * d_nwseSizingCursor
North-West/South-East cursor image.
Definition: widgets/FrameWindow.h:700
bool isRolledup(void) const
Return whether the window is currently rolled up (a.k.a shaded).
Definition: widgets/FrameWindow.h:187
Vector2f d_dragPoint
point window is being dragged at.
Definition: widgets/FrameWindow.h:695
static const String EventDragSizingStarted
Definition: widgets/FrameWindow.h:75
SizingLocation
Enumeration that defines the set of possible locations for the mouse on a frame windows sizing border...
Definition: widgets/FrameWindow.h:97
void setSizingBorderThickness(float pixels)
Set the size of the sizing border for this window.
Definition: widgets/FrameWindow.h:284
bool d_beingSized
true if window is being sized.
Definition: widgets/FrameWindow.h:693
bool isRightSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on right edge.
Definition: widgets/FrameWindow.h:597
virtual Rectf getSizingRect(void) const
Return a Rect that describes, in window relative pixel co-ordinates, the outer edge of the sizing are...
Definition: widgets/FrameWindow.h:644
static const String TitlebarName
Widget name for the titlebar component.
Definition: widgets/FrameWindow.h:89
bool isHit(const Vector2f &position, const bool) const
check if the given pixel position would hit this window.
Definition: widgets/FrameWindow.h:470
bool isDragMovingEnabled(void) const
Return whether this FrameWindow can be moved by dragging the title bar.
Definition: widgets/FrameWindow.h:309
Position will size from the bottom right.
Definition: widgets/FrameWindow.h:102
static const String CloseButtonName
Widget name for the close button component.
Definition: widgets/FrameWindow.h:90
Position will size from the top.
Definition: widgets/FrameWindow.h:103
Class representing the title bar for Frame Windows.
Definition: widgets/Titlebar.h:50
Position is not a sizing location.
Definition: widgets/FrameWindow.h:98
float d_borderSize
thickness of the sizing border around this window
Definition: widgets/FrameWindow.h:694
bool d_dragMovable
true if the window will move when dragged by the title bar.
Definition: widgets/FrameWindow.h:703
static const String EventCloseClicked
Definition: widgets/FrameWindow.h:69
float getSizingBorderThickness(void) const
Return the thickness of the sizing border.
Definition: widgets/FrameWindow.h:197
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Abstract base class for a movable, sizable, window with a title-bar and a frame.
Definition: widgets/FrameWindow.h:48
bool isSizingEnabled(void) const
Return whether this window is sizable. Note that this requires that the window have an enabled frame ...
Definition: widgets/FrameWindow.h:129
bool d_frameEnabled
true if window frame should be drawn.
Definition: widgets/FrameWindow.h:685
Position will size from the top-left.
Definition: widgets/FrameWindow.h:99
const Image * d_ewSizingCursor
East/West sizing cursor image.
Definition: widgets/FrameWindow.h:699
bool isFrameEnabled(void) const
Return whether the frame for this window is enabled.
Definition: widgets/FrameWindow.h:139
static const String EventDragSizingEnded
Definition: widgets/FrameWindow.h:81
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:251
EventArgs based class that is used for objects passed to input event handlers concerning mouse input...
Definition: InputEvent.h:280
bool isBottomSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on bottom edge.
Definition: widgets/FrameWindow.h:623
static const String EventRollupToggled
Definition: widgets/FrameWindow.h:63
bool isLeftSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on left edge.
Definition: widgets/FrameWindow.h:584
Position will size from the bottom.
Definition: widgets/FrameWindow.h:105
bool isTopSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on top edge.
Definition: widgets/FrameWindow.h:610
bool isRollupEnabled(void) const
Return whether roll up (a.k.a shading) is enabled for this window.
Definition: widgets/FrameWindow.h:169
const Image * d_nsSizingCursor
North/South sizing cursor image.
Definition: widgets/FrameWindow.h:698
const Image * d_neswSizingCursor
North-East/South-West cursor image.
Definition: widgets/FrameWindow.h:701
EventArgs based class that is used for Activated and Deactivated window events.
Definition: InputEvent.h:329
String class used within the GUI system.
Definition: String.h:62