38 lines
958 B
C++
38 lines
958 B
C++
#include <MwCXX/Widget/Clock.h>
|
|
|
|
MwCXX::Clock::Clock(MwWidget widget, MwCXX::Base* parent)
|
|
: MwCXX::Base(widget, parent) {
|
|
this->RegisterHandlers();
|
|
}
|
|
|
|
MwCXX::Clock::Clock(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
|
: MwCXX::Base(MwClockClass, name, parent, x, y, width, height) {
|
|
this->RegisterHandlers();
|
|
}
|
|
|
|
int MwCXX::Clock::GetHour() {
|
|
return (int)MwGetInteger(this->widget, MwNhour);
|
|
}
|
|
|
|
void MwCXX::Clock::SetHour(int value) {
|
|
MwSetInteger(this->widget, MwNhour, (int)value);
|
|
}
|
|
|
|
int MwCXX::Clock::GetMinute() {
|
|
return (int)MwGetInteger(this->widget, MwNminute);
|
|
}
|
|
|
|
void MwCXX::Clock::SetMinute(int value) {
|
|
MwSetInteger(this->widget, MwNminute, (int)value);
|
|
}
|
|
|
|
int MwCXX::Clock::GetSecond() {
|
|
return (int)MwGetInteger(this->widget, MwNsecond);
|
|
}
|
|
|
|
void MwCXX::Clock::SetSecond(int value) {
|
|
MwSetInteger(this->widget, MwNsecond, (int)value);
|
|
}
|
|
|
|
void MwCXX::Clock::RegisterHandlers() {
|
|
}
|