summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Clock.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_Clock.cxx b/src/Fl_Clock.cxx
index b13223c5e..ec2020c4a 100644
--- a/src/Fl_Clock.cxx
+++ b/src/Fl_Clock.cxx
@@ -74,6 +74,10 @@ static void rect(double x, double y, double w, double h) {
fl_end_polygon();
}
+/**
+ Draw clock with the given position and size.
+ \param[in] X, Y, W, H position and size
+*/
void Fl_Clock_Output::draw(int X, int Y, int W, int H) {
Fl_Color box_color = type()==FL_ROUND_CLOCK ? FL_GRAY : color();
Fl_Color shadow_color = fl_color_average(box_color, FL_BLACK, 0.5);
@@ -107,6 +111,9 @@ void Fl_Clock_Output::draw(int X, int Y, int W, int H) {
fl_pop_matrix();
}
+/**
+ Draw clock with current position and size.
+*/
void Fl_Clock_Output::draw() {
draw(x(), y(), w(), h());
draw_label();