Free Electron
DrawView.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __viewer_DrawView_h__
8 #define __viewer_DrawView_h__
9 
10 #include "signal/signal.h"
11 #include "draw/draw.h"
12 #include "window/window.h"
13 
14 namespace fe
15 {
16 namespace ext
17 {
18 
19 /** Helper class for draw operators (handlers)
20 
21  */
22 class FE_DL_EXPORT DrawView
23 {
24  public:
25  DrawView(void);
26 virtual ~DrawView(void);
27 
28  bool handle( Record &record);
29 
30  sp<DrawI> drawI(void) { return m_spDraw; }
31  sp<WindowI> windowI(void) { return m_spWindow; }
32  sp<RecordGroup> group(void) { return m_spRG; }
33  AsSignal &asSignal(void) { return m_asSignal; }
34  AsWindata &asWindata(void) { return m_asWindata; }
35 
36  const Color &getColor(const String &a_name,
37  const Color &a_default);
38  private:
39  AsSignal m_asSignal;
40  AsWindata m_asWindata;
41  AsColor m_asColor;
42  sp<DrawI> m_spDraw;
43  sp<WindowI> m_spWindow;
44  sp<RecordGroup> m_spRG;
45 };
46 } /* namespace ext */
47 } /* namespace fe */
48 
49 #endif /* __viewer_DrawView_h__ */
50 
window data
Definition: datatoolAS.h:38
possible attributes of a top level signal
Definition: datatoolAS.h:16
kernel
Definition: namespace.dox:3
Special vector for color (RGBA)
Definition: Color.h:21
Automatically reference-counted string container.
Definition: String.h:128
Reference to an instance of a Layout.
Definition: RecordSB.h:35
color information
Definition: windowAS.h:83
Helper class for draw operators (handlers)
Definition: DrawView.h:22