Browse Source

doxygen comments for undocumented features of Fl_Clock, Fl_Check_Browser

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
pull/49/head
engelsman 17 years ago
parent
commit
4bc22ed15d
  1. 11
      FL/Fl_Check_Browser.H
  2. 14
      FL/Fl_Clock.H
  3. 7
      src/Fl_Clock.cxx

11
FL/Fl_Check_Browser.H

@ -54,12 +54,13 @@ class FL_EXPORT Fl_Check_Browser : public Fl_Browser_ {
public: // IRIX 5.3 C++ compiler doesn't support private structures... public: // IRIX 5.3 C++ compiler doesn't support private structures...
/** For internal use only. */
struct cb_item { struct cb_item {
cb_item *next; cb_item *next; /**< For internal use only. */
cb_item *prev; cb_item *prev; /**< For internal use only. */
char checked; char checked; /**< For internal use only. */
char selected; char selected; /**< For internal use only. */
char *text; char *text; /**< For internal use only. */
}; };
private: private:

14
FL/Fl_Clock.H

@ -36,10 +36,10 @@
#endif #endif
// values for type: // values for type:
#define FL_SQUARE_CLOCK 0 #define FL_SQUARE_CLOCK 0 /**< type() of Square Clock variant */
#define FL_ROUND_CLOCK 1 #define FL_ROUND_CLOCK 1 /**< type() of Round Clock variant */
#define FL_ANALOG_CLOCK FL_SQUARE_CLOCK #define FL_ANALOG_CLOCK FL_SQUARE_CLOCK /**< An analog clock is square */
#define FL_DIGITAL_CLOCK FL_SQUARE_CLOCK // nyi #define FL_DIGITAL_CLOCK FL_SQUARE_CLOCK /**< Not yet implemented */
/** /**
\class Fl_Clock_Output \class Fl_Clock_Output
@ -57,8 +57,8 @@ class FL_EXPORT Fl_Clock_Output : public Fl_Widget {
ulong value_; ulong value_;
void drawhands(Fl_Color,Fl_Color); // part of draw void drawhands(Fl_Color,Fl_Color); // part of draw
protected: protected:
void draw(int, int, int, int);
void draw(); void draw();
void draw(int X, int Y, int W, int H);
public: public:
Fl_Clock_Output(int X, int Y, int W, int H, const char *L = 0); Fl_Clock_Output(int X, int Y, int W, int H, const char *L = 0);
@ -109,6 +109,10 @@ public:
class FL_EXPORT Fl_Clock : public Fl_Clock_Output { class FL_EXPORT Fl_Clock : public Fl_Clock_Output {
public: public:
int handle(int); int handle(int);
/**
Undefined.
\todo Find Fl_Clock::update() implementation, if any, and document it.
*/
void update(); void update();
Fl_Clock(int X, int Y, int W, int H, const char *L = 0); Fl_Clock(int X, int Y, int W, int H, const char *L = 0);

7
src/Fl_Clock.cxx

@ -74,6 +74,10 @@ static void rect(double x, double y, double w, double h) {
fl_end_polygon(); 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) { 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 box_color = type()==FL_ROUND_CLOCK ? FL_GRAY : color();
Fl_Color shadow_color = fl_color_average(box_color, FL_BLACK, 0.5); 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(); fl_pop_matrix();
} }
/**
Draw clock with current position and size.
*/
void Fl_Clock_Output::draw() { void Fl_Clock_Output::draw() {
draw(x(), y(), w(), h()); draw(x(), y(), w(), h());
draw_label(); draw_label();

Loading…
Cancel
Save