30#ifndef Pt_Forms_Application_h
31#define Pt_Forms_Application_h
33#include <Pt/Forms/Api.h>
34#include <Pt/Forms/Screen.h>
35#include <Pt/Forms/Style.h>
36#include <Pt/Forms/StyleOptions.h>
37#include <Pt/Forms/GraphicsBackend.h>
38#include <Pt/Forms/PlatinumStyle.h>
39#include <Pt/Forms/InputMethod.h>
40#include <Pt/Forms/Icon.h>
41#include <Pt/Gfx/Font.h>
42#include <Pt/Gfx/FontFace.h>
43#include <Pt/Gfx/PngReader.h>
44#include <Pt/System/Application.h>
45#include <Pt/System/Path.h>
322 std::vector<Gfx::FontFace>
fontFaces(
const std::string& family)
const;
325 void onSetPointer(Widget& widget,
bool isPointer);
327 void onRequestCapture(Widget& target,
bool capture);
329 void onShowPopup(Popup& w,
bool transient);
331 bool isAnchoredTo(Popup& w,
Window& top)
const;
333 bool isPopupOf(Popup& w,
Window& top)
const;
335 void onClosePopups(
const Gfx::PointF& screenPos);
338 void registerWidget(Widget& widget);
340 void unregisterWidget(Widget& widget);
343 void onDispatchMouseEvent(
const MouseEvent& ev);
345 void onProcessMouseEvent(
const MouseEvent& ev);
348 void onDispatchTouchEvent(
const TouchEvent& ev);
350 void onProcessTouchEvent(
const TouchEvent& ev);
353 void onDetectScroll(Widget* widget,
const Gfx::PointF& screenPos,
354 bool isPress,
bool isPressed);
362 void onDispatchEnterEvent(
const EnterEvent& ev);
364 void onProcessEnterEvent(
const EnterEvent& ev);
367 void onDispatchLeaveEvent(
const LeaveEvent& ev);
369 void onProcessLeaveEvent(
const LeaveEvent& ev);
372 void onDispatchKeyEvent(
const KeyEvent& ev);
374 void onProcessKeyEvent(
const KeyEvent& ev);
377 void onDispatchInvalidateEvent(
const InvalidateEvent& ev);
379 void onProcessInvalidateEvent(
const InvalidateEvent& ev);
382 void onDispatchLayoutEvent(
const LayoutEvent& ev);
384 void onProcessLayoutEvent(
const LayoutEvent& ev);
387 void onDispatchRescaleEvent(
const RescaleEvent& ev);
389 void onProcessRescaleEvent(
const RescaleEvent& ev);
392 void onDispatchPaintEvent(
const PaintEvent& ev);
394 void onProcessPaintEvent(
const PaintEvent& ev);
397 void onDispatchMoveEvent(
const MoveEvent& ev);
399 void onProcessMoveEvent(
const MoveEvent& ev);
412 void onDispatchEnableEvent(
const EnableEvent& ev);
414 void onProcessEnableEvent(
const EnableEvent& ev);
417 void onDispatchShowEvent(
const ShowEvent& ev);
419 void onProcessShowEvent(
const ShowEvent& ev);
422 void onDispatchCloseEvent(
const CloseEvent& ev);
424 void onProcessCloseEvent(
const CloseEvent& ev);
427 void onDispatchFocusEvent(
const FocusEvent& ev);
429 void onProcessFocusEvent(
const FocusEvent& ev);
440 typedef std::map<Pt::uint64_t, Widget*> WidgetMap;
442 ApplicationImpl* _impl;
455 std::list<Popup*> _popups;
456 std::list<Widget*> _capture;
458 Gfx::PointF _scrollFrom;
Base class for typed events.
Definition Event.h:66
PNG image reader.
Definition PngReader.h:53
Multicast Signal to call multiple slots.
Definition Signal.h:190
Console process root.
Definition Application.h:74
char ** argv() const
Command line arguments.
Definition Application.h:139
int & argc() const
Number of command line arguments.
Definition Application.h:134
Represents a path in the file-system.
Definition Path.h:48
Represents time spans in microsecond resolution.
Definition Timespan.h:63
uint_type uint64_t
Unsigned 64-bit integer type.
Definition Api-Types.h:66
Core module.
Definition Allocator.h:33