update
This commit is contained in:
parent
7f7c653815
commit
bcf9f8a123
13 changed files with 225 additions and 4 deletions
37
src/widget/clock.cc
Normal file
37
src/widget/clock.cc
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#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() {
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue