Mercurial > hg > orthanc-stone
comparison Framework/Widgets/WidgetBase.cpp @ 726:4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 May 2019 11:43:25 +0200 |
parents | aaeec7be8fb7 |
children |
comparison
equal
deleted
inserted
replaced
714:d2c0e347ddc2 | 726:4f2416d519b4 |
---|---|
23 | 23 |
24 #include <Core/OrthancException.h> | 24 #include <Core/OrthancException.h> |
25 #include <Core/Images/ImageProcessing.h> | 25 #include <Core/Images/ImageProcessing.h> |
26 #include <Core/Logging.h> | 26 #include <Core/Logging.h> |
27 | 27 |
28 namespace OrthancStone | 28 namespace Deprecated |
29 { | 29 { |
30 void WidgetBase::NotifyContentChanged() | 30 void WidgetBase::NotifyContentChanged() |
31 { | 31 { |
32 if (parent_ != NULL) | 32 if (parent_ != NULL) |
33 { | 33 { |
67 255 /* alpha */); | 67 255 /* alpha */); |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 | 71 |
72 void WidgetBase::ClearBackgroundCairo(CairoContext& context) const | 72 void WidgetBase::ClearBackgroundCairo(OrthancStone::CairoContext& context) const |
73 { | 73 { |
74 // Clear the background using Cairo | 74 // Clear the background using Cairo |
75 | 75 |
76 if (IsBackgroundCleared()) | 76 if (IsBackgroundCleared()) |
77 { | 77 { |
84 } | 84 } |
85 | 85 |
86 | 86 |
87 void WidgetBase::ClearBackgroundCairo(Orthanc::ImageAccessor& target) const | 87 void WidgetBase::ClearBackgroundCairo(Orthanc::ImageAccessor& target) const |
88 { | 88 { |
89 CairoSurface surface(target, false /* no alpha */); | 89 OrthancStone::CairoSurface surface(target, false /* no alpha */); |
90 CairoContext context(surface); | 90 OrthancStone::CairoContext context(surface); |
91 ClearBackgroundCairo(context); | 91 ClearBackgroundCairo(context); |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 void WidgetBase::UpdateStatusBar(const std::string& message) | 95 void WidgetBase::UpdateStatusBar(const std::string& message) |