29 #ifndef _CEGUIFrameWindow_h_ 30 #define _CEGUIFrameWindow_h_ 33 #include "../Window.h" 36 # pragma warning(push) 37 # pragma warning(disable : 4251) 48 class CEGUIEXPORT FrameWindow :
public Window
51 static const String EventNamespace;
52 static const String WidgetTypeName;
63 static const String EventRollupToggled;
69 static const String EventCloseClicked;
75 static const String EventDragSizingStarted;
81 static const String EventDragSizingEnded;
84 static const float DefaultSizingBorderSize;
89 static const String TitlebarName;
90 static const String CloseButtonName;
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);
630 bool closeClickHandler(
const EventArgs& e);
637 void setCursorForPoint(
const Vector2f& pt)
const;
688 bool d_rollupEnabled;
692 bool d_sizingEnabled;
698 const Image* d_nsSizingCursor;
699 const Image* d_ewSizingCursor;
700 const Image* d_nwseSizingCursor;
701 const Image* d_neswSizingCursor;
710 void addFrameWindowProperties(
void);
715 #if defined(_MSC_VER) 716 # pragma warning(pop) 719 #endif // end of guard _CEGUIFrameWindow_h_ bool isHit(const Vector2f &position, const bool) const
check if the given pixel position would hit this window.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:470
Interface for Image.
Definition: cegui/include/CEGUI/Image.h:158
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
bool isRollupEnabled(void) const
Return whether roll up (a.k.a shading) is enabled for this window.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:169
Base class used as the argument to all subscribers Event object.
Definition: cegui/include/CEGUI/EventArgs.h:49
float getSizingBorderThickness(void) const
Return the thickness of the sizing border.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:197
bool isLeftSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on left edge.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:584
bool isFrameEnabled(void) const
Return whether the frame for this window is enabled.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:139
SizingLocation
Enumeration that defines the set of possible locations for the mouse on a frame windows sizing border...
Definition: cegui/include/CEGUI/widgets/FrameWindow.h:97
void setSizingBorderThickness(float pixels)
Set the size of the sizing border for this window.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:284
bool isDragMovingEnabled(void) const
Return whether this FrameWindow can be moved by dragging the title bar.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:309
bool isRolledup(void) const
Return whether the window is currently rolled up (a.k.a shaded).
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:187
Class representing the title bar for Frame Windows.
Definition: cegui/include/CEGUI/widgets/Titlebar.h:50
Abstract base class for a movable, sizable, window with a title-bar and a frame.
Definition: cegui/include/CEGUI/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: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:129
virtual Rectf getSizingRect(void) const
Return a Rect that describes, in window relative pixel co-ordinates, the outer edge of the sizing are...
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:644
virtual bool isHit(const Vector2f &position, const bool allow_disabled=false) const
check if the given pixel position would hit this window.
Definition: cegui/src/Window.cpp:608
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: cegui/include/CEGUI/InputEvent.h:251
EventArgs based class that is used for objects passed to input event handlers concerning mouse input...
Definition: cegui/include/CEGUI/InputEvent.h:280
bool isBottomSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on bottom edge.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:623
bool isTopSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on top edge.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:610
EventArgs based class that is used for Activated and Deactivated window events.
Definition: cegui/include/CEGUI/InputEvent.h:329
bool isRightSizingLocation(SizingLocation loc) const
return true if given SizingLocation is on right edge.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/widgets/FrameWindow.h:597
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62