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>
315 std::vector<Gfx::FontFace>
fontFaces(
const std::string& family)
const;
318 void onSetPointer(Widget& widget,
bool isPointer);
320 void onRequestCapture(Widget& target,
bool capture);
322 void onShowPopup(Popup& w,
bool transient);
324 bool isAnchoredTo(Popup& w,
Window& top)
const;
326 bool isPopupOf(Popup& w,
Window& top)
const;
328 void onClosePopups(
const Gfx::PointF& screenPos);
331 void registerWidget(Widget& widget);
333 void unregisterWidget(Widget& widget);
336 void onDispatchMouseEvent(
const MouseEvent& ev);
338 void onProcessMouseEvent(
const MouseEvent& ev);
341 void onDispatchTouchEvent(
const TouchEvent& ev);
343 void onProcessTouchEvent(
const TouchEvent& ev);
346 void onDetectScroll(Widget* widget,
const Gfx::PointF& screenPos,
347 bool isPress,
bool isPressed);
355 void onDispatchEnterEvent(
const EnterEvent& ev);
357 void onProcessEnterEvent(
const EnterEvent& ev);
360 void onDispatchLeaveEvent(
const LeaveEvent& ev);
362 void onProcessLeaveEvent(
const LeaveEvent& ev);
365 void onDispatchKeyEvent(
const KeyEvent& ev);
367 void onProcessKeyEvent(
const KeyEvent& ev);
370 void onDispatchInvalidateEvent(
const InvalidateEvent& ev);
372 void onProcessInvalidateEvent(
const InvalidateEvent& ev);
375 void onDispatchLayoutEvent(
const LayoutEvent& ev);
377 void onProcessLayoutEvent(
const LayoutEvent& ev);
380 void onDispatchRescaleEvent(
const RescaleEvent& ev);
382 void onProcessRescaleEvent(
const RescaleEvent& ev);
385 void onDispatchPaintEvent(
const PaintEvent& ev);
387 void onProcessPaintEvent(
const PaintEvent& ev);
390 void onDispatchMoveEvent(
const MoveEvent& ev);
392 void onProcessMoveEvent(
const MoveEvent& ev);
405 void onDispatchEnableEvent(
const EnableEvent& ev);
407 void onProcessEnableEvent(
const EnableEvent& ev);
410 void onDispatchShowEvent(
const ShowEvent& ev);
412 void onProcessShowEvent(
const ShowEvent& ev);
415 void onDispatchCloseEvent(
const CloseEvent& ev);
417 void onProcessCloseEvent(
const CloseEvent& ev);
420 void onDispatchFocusEvent(
const FocusEvent& ev);
422 void onProcessFocusEvent(
const FocusEvent& ev);
430 typedef std::map<Pt::uint64_t, Widget*> WidgetMap;
432 ApplicationImpl* _impl;
445 std::list<Popup*> _popups;
446 std::list<Widget*> _capture;
448 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