Mercurial > hg > orthanc-stone
comparison Framework/Widgets/WidgetBase.h @ 85:bd48431ac285 wasm
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 May 2017 12:20:26 +0200 |
parents | 298f375dcb68 |
children | 02c3a7a4938f |
comparison
equal
deleted
inserted
replaced
83:c75377306598 | 85:bd48431ac285 |
---|---|
33 IWidget* parent_; | 33 IWidget* parent_; |
34 IViewport* viewport_; | 34 IViewport* viewport_; |
35 IStatusBar* statusBar_; | 35 IStatusBar* statusBar_; |
36 bool backgroundCleared_; | 36 bool backgroundCleared_; |
37 uint8_t backgroundColor_[3]; | 37 uint8_t backgroundColor_[3]; |
38 bool transmitMouseOver_; | |
38 | 39 |
39 protected: | 40 protected: |
40 void ClearBackgroundOrthanc(Orthanc::ImageAccessor& target) const; | 41 void ClearBackgroundOrthanc(Orthanc::ImageAccessor& target) const; |
41 | 42 |
42 void ClearBackgroundCairo(CairoContext& context) const; | 43 void ClearBackgroundCairo(CairoContext& context) const; |
69 bool IsBackgroundCleared() const | 70 bool IsBackgroundCleared() const |
70 { | 71 { |
71 return backgroundCleared_; | 72 return backgroundCleared_; |
72 } | 73 } |
73 | 74 |
75 void SetTransmitMouseOver(bool transmit) | |
76 { | |
77 transmitMouseOver_ = transmit; | |
78 } | |
79 | |
74 void SetBackgroundColor(uint8_t red, | 80 void SetBackgroundColor(uint8_t red, |
75 uint8_t green, | 81 uint8_t green, |
76 uint8_t blue); | 82 uint8_t blue); |
77 | 83 |
78 void GetBackgroundColor(uint8_t& red, | 84 void GetBackgroundColor(uint8_t& red, |
93 | 99 |
94 virtual void UpdateContent(); | 100 virtual void UpdateContent(); |
95 | 101 |
96 virtual bool HasRenderMouseOver() | 102 virtual bool HasRenderMouseOver() |
97 { | 103 { |
98 return false; | 104 return transmitMouseOver_; |
99 } | 105 } |
100 | 106 |
101 virtual void NotifyChange(); | 107 virtual void NotifyChange(); |
102 | 108 |
103 virtual void Start() | 109 virtual void Start() |