29 #ifndef _CEGUITitlebar_h_
30 #define _CEGUITitlebar_h_
32 #include "../Window.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
144 void addTitlebarProperties(
void);
149 #if defined(_MSC_VER)
150 # pragma warning(pop)
EventArgs based class that is used for objects passed to input event handlers concerning mouse input.
Definition: InputEvent.h:281
String class used within the GUI system.
Definition: String.h:64
Class representing the title bar for Frame Windows.
Definition: widgets/Titlebar.h:51
virtual void onCaptureLost(WindowEventArgs &e)
Handler called when this window loses capture of mouse inputs.
virtual void onFontChanged(WindowEventArgs &e)
Handler called when the window's font is changed.
virtual void onMouseButtonUp(MouseEventArgs &e)
Handler called when a mouse button has been released within this window's area.
virtual void onDraggingModeChanged(WindowEventArgs &)
Event handler called when the 'draggable' state for the title bar is changed.
Definition: widgets/Titlebar.h:129
bool isDragged() const
Checks whether the title bar widget is being dragged at the moment.
virtual void onMouseDoubleClicked(MouseEventArgs &e)
Handler called when a mouse button has been double-clicked within this window's area.
bool isDraggingEnabled(void) const
Return whether this title bar will respond to dragging.
virtual void onMouseButtonDown(MouseEventArgs &e)
Handler called when a mouse button has been depressed within this window's area.
virtual ~Titlebar(void)
Destructor for Titlebar base class.
Titlebar(const String &type, const String &name)
Constructor for Titlebar base class.
bool d_dragEnabled
true when dragging for the widget is enabled.
Definition: widgets/Titlebar.h:136
virtual void onMouseMove(MouseEventArgs &e)
Handler called when the mouse cursor has been moved within this window's area.
Vector2f d_dragPoint
Point at which we are being dragged.
Definition: widgets/Titlebar.h:135
bool d_dragging
set to true when the window is being dragged.
Definition: widgets/Titlebar.h:134
static const String WidgetTypeName
Window factory name.
Definition: widgets/Titlebar.h:54
void setDraggingEnabled(bool setting)
Set whether this title bar widget will respond to dragging.
Rectf d_oldCursorArea
Used to backup cursor restraint area.
Definition: widgets/Titlebar.h:138
static const String EventNamespace
Namespace for global events.
Definition: widgets/Titlebar.h:53
const Vector2f & getDragPoint() const
Gets the point at which the title bar widget is/was being dragged.
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:252
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1