1#ifndef PHWIDGETS_GAUGE_H
2#define PHWIDGETS_GAUGE_H
4#include <photon/PtGauge.h>
7#include "./Drawing/Font.h"
150 #define Pt_SHOW_VALUE_IMPL Pt_GAUGE_SHOW_VALUE
152 #define Pt_SHOW_VALUE_IMPL Pt_SHOW_VALUE
156 #define Pt_VALUE_XOR_IMPL Pt_GAUGE_VALUE_XOR
158 #define Pt_VALUE_XOR_IMPL Pt_VALUE_XOR
161#ifndef Pt_GAUGE_MAX_ON_RIGHT
162 #define Pt_GAUGE_MAX_ON_RIGHT_IMPL 0
164 #define Pt_GAUGE_MAX_ON_RIGHT_IMPL Pt_GAUGE_MAX_ON_RIGHT
167#ifndef Pt_GAUGE_MAX_ON_BOTTOM
168 #define Pt_GAUGE_MAX_ON_BOTTOM_IMPL 0
170 #define Pt_GAUGE_MAX_ON_BOTTOM_IMPL Pt_GAUGE_MAX_ON_BOTTOM
173#ifndef Pt_GAUGE_INDETERMINATE
174 #define Pt_GAUGE_INDETERMINATE_IMPL 0
176 #define Pt_GAUGE_INDETERMINATE_IMPL Pt_GAUGE_INDETERMINATE
179#ifndef Pt_GAUGE_INTERACTIVE
180 #define Pt_GAUGE_INTERACTIVE_IMPL 0
182 #define Pt_GAUGE_INTERACTIVE_IMPL Pt_GAUGE_INTERACTIVE
191 Indeterminate = Pt_GAUGE_INDETERMINATE_IMPL,
192 Interactive = Pt_GAUGE_INTERACTIVE_IMPL
194#undef Pt_SHOW_VALUE_IMPL
195#undef Pt_VALUE_XOR_IMPL
196#undef Pt_GAUGE_MAX_ON_RIGHT_IMPL
197#undef Pt_GAUGE_MAX_ON_BOTTOM_IMPL
198#undef Pt_GAUGE_INDETERMINATE_IMPL
199#undef Pt_GAUGE_INTERACTIVE_IMPL
266 public ArgumentsEx<Basic::ArgLong>,
279 public ArgumentsEx<Basic::ArgChar>,
287 public ArgumentsEx<Basic::ArgUnsignedChar>,
295 public ArgumentsEx<Basic::ArgPChar>,
318 typedef ResourceFrom<Basic::WidgetResourcesSingleton>::
319 Define::String<ThisArgs::ArgPChar::eArgPChar>::
320 Define::Scalar<ThisArgs::ArgLong::eArgLong, long>::
321 Define::Flag<ThisArgs::ArgShort::eArgShort, short int>::
322 Define::Scalar<ThisArgs::ArgChar::eArgChar, char>::
323 Define::Scalar<ThisArgs::ArgUnsignedChar::eArgUnsignedChar, unsigned char>::
325 resource_type WidgetResourcesSingleton;
330 std::string getPrefix()
const;
331 void setPrefix(std::string text);
333 std::string getSuffix()
const;
334 void setSuffix(std::string text);
336 virtual void check();
399 property<Drawing::Font>::bind<
Gauge, &Gauge::getFont, &Gauge::setFont>
Font;
409 property<std::string>::bind<
Gauge, &Gauge::getPrefix, &Gauge::setPrefix>
Prefix;
419 property<std::string>::bind<
Gauge, &Gauge::getSuffix, &Gauge::setSuffix>
Suffix;