VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDeSplashScreen.h
Go to the documentation of this file.
1 /***************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved
4 ***************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCore/vrvCore.h>
12 
15 
16 #include <string>
17 
18 namespace makVrv
19 {
20  class DtDeMainWindow;
21  class DtUnicode;
22 
26 #define SPLASH_SCREEN_MESSAGE(splashScreen, message) if (splashScreen != nullptr) \
27  { \
28  splashScreen->showMessage(message); \
29  }
30 
35  {
36  public:
37 
39  {
40  AlignLeft = 0x0001,
41  AlignRight = 0x0002,
42  AlignHCenter = 0x0004,
43  AlignJustify = 0x0008,
44  AlignAbsolute = 0x0010,
45  AlignTop = 0x0020,
46  AlignBottom = 0x0040,
47  AlignVCenter = 0x0080,
48  AlignBaseline = 0x0100,
49  AlignCenter = AlignVCenter | AlignHCenter,
50  AlignBottomRight = AlignBottom | AlignRight
51  };
52 
54  static DtDeSplashScreen* instance(DtDe& de);
55 
56  public:
58  virtual ~DtDeSplashScreen();
59 
61  virtual void finish(DtDeMainWindow& mainWin) = 0;
62 
64  virtual void show() = 0;
65 
67  virtual void setMessageAlignment(DtDeSplashScreenMessageAlignment alignment) = 0;
68 
70  virtual void setMessageColor(int colorR, int colorG, int colorB, int colorA) = 0;
71 
74  virtual void showMessage(const DtUnicode& message) = 0;
75 
76  protected:
77 
80 
81  };
82 
83  // Allows:
84  // DtDeSplashScreenMessageAlignment alignment = AlignBottom | AlignHCenter;
85  template <> struct is_flag<DtDeSplashScreen::DtDeSplashScreenMessageAlignment> : std::true_type { };
86 }
Definition: DtEnumClassFlag.h:28
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
Contains makVrv::DtVirtualBaseClass class.
DtDeSplashScreenMessageAlignment
Definition: DtDeSplashScreen.h:38
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The abstract main window class.
Definition: DtDeMainWindow.h:24
The VR-Vantage Splash Screen Interface.
Definition: DtDeSplashScreen.h:34
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Contains generic operator overrides for enum classes to allow for bitwise operations, e.g. | and &amp;.
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)