29 #ifndef PT_FORMS_WORKSPACE_MANAGER_H
30 #define PT_FORMS_WORKSPACE_MANAGER_H
32 #include <Pt/Forms/Api.h>
33 #include <Pt/Forms/WindowManager.h>
34 #include <Pt/Forms/Widget.h>
35 #include <Pt/Forms/Painter.h>
36 #include <Pt/Gfx/Point.h>
37 #include <Pt/Gfx/Size.h>
38 #include <Pt/Gfx/Rect.h>
62 friend class WorkspaceFrame;
122 return _inactiveColor;
143 return _inactiveTextColor;
150 virtual void onProcessLayoutEvent(
const LayoutEvent& ev);
152 virtual void onLayoutEvent(
const LayoutEvent& ev);
154 virtual void onLayout(
const Gfx::RectF& rect);
178 virtual void onSetAbove(WorkspaceFrame& w,
bool above);
180 virtual void onSetSizeLimits(WorkspaceFrame& w,
184 virtual void onAutoCenter(WindowFrame& w,
const Gfx::SizeF*
size);
186 virtual void onShow(WorkspaceFrame& w,
bool visible);
188 virtual void onActivate(WorkspaceFrame& w,
bool active);
190 virtual void onEnable(WorkspaceFrame& w,
bool enable);
192 virtual void onMove(WorkspaceFrame& w,
const Gfx::PointF& to);
194 virtual void onResize(WorkspaceFrame& w,
const Gfx::SizeF& to);
196 virtual void onClose(WorkspaceFrame& w);
248 std::vector<Window*> _windows;
249 std::vector<Window*> _windowStack;
253 std::map<Window*, Gfx::RectF> _autoCenter;
269 #endif // include guard
Core module.
Definition: Allocator.h:33
Base class for all event types.
Definition: Event.h:50
Size with floating-point width and height.
Definition: Size.h:47
Point with floating-point X and Y coordinates.
Definition: Point.h:47
Standard color type.
Definition: Color.h:47
Rect with floating-point coordinates.
Definition: Rect.h:47