Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
XApp.h
1// XApp.h: interface for the CXApp class.
2//
3//////////////////////////////////////////////////////////////////////
4
5#if !defined(CXAPP_INCLUDE_H)
6#define CXAPP_INCLUDE_H
7
8#ifdef _MSC_VER
9#pragma once
10#endif // _MSC_VER
11
12BEGIN_MOOTOOLS_NAMESPACE
13
14#ifndef MOOTOOLS_MFC_PRODUCT_BUILD
15DLL_TOOLSFUNCTION CXApp *XGetApp(); // Get the default app. If no application has been set, a default app is set.
16
17class DLL_TOOLSFUNCTION CXWaitCursor
18{
19protected:
20 bool waitState;
21
22public:
23 CXWaitCursor(bool wait);
25
26 void ShowWaitCursor(bool show);
27};
28
29#endif
30
31//////////////////////////////////////////////////////
32// CXApp callback typedef
33//
34typedef void(*ShowWaitCursorCallback)(bool show);
35
36class DLL_TOOLSFUNCTION CXApp : public CXObject
37{
38 public:
39 CXApp();
40
41 //////////////////////////////////////////////////////
42 // Get / set the main window handle which is the one
43 // that is used as parent for message box
44 //
45 CXWnd *GetMainWnd() const;
46 xWndHandle SetMainWndHandle(xWndHandle wndMain);
47
48 //////////////////////////////////////////////////////
49 // Callbacks
50 //
51 // Set wait cursor callbacks and
52 // Set callback and return previous callback
53 ShowWaitCursorCallback SetWaitCursorCallback(ShowWaitCursorCallback callback);
54 //Show / hide wait cursor by calling the callback
55 void ShowWaitCursor(bool show) const;
56
57 protected:
58 xWndHandle mainWnd;
59
60 ShowWaitCursorCallback waitCallback;
61};
62
63END_MOOTOOLS_NAMESPACE
64
65#endif // !defined(CXAPP_INCLUDE_H)
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27