SevenSeg.h
/*
* $Id: SevenSeg.h 2839 2009-09-28 11:36:20Z karijes $
*
* s7 segment number widget
* Copyright (c) 2005-2007 edelib authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_SEVENSEG_H__
#define __EDELIB_SEVENSEG_H__
#include "edelib-global.h"
#include <FL/Fl_Widget.H>
EDELIB_NS_BEGIN
class EDELIB_API SevenSeg : public Fl_Widget {
private:
int digit;
int segwidth;
void draw_seg_a(int X, int Y, int W, int H);
void draw_seg_b(int X, int Y, int W, int H);
void draw_seg_c(int X, int Y, int W, int H);
void draw_seg_d(int X, int Y, int W, int H);
void draw_seg_e(int X, int Y, int W, int H);
void draw_seg_f(int X, int Y, int W, int H);
void draw_seg_g(int X, int Y, int W, int H);
public:
SevenSeg(int X, int Y, int W, int H);
~SevenSeg();
#ifndef SKIP_DOCS
virtual void draw(void);
#endif
void value(int v);
void value(char c);
int value(void) { return digit; }
void bar_width(int w);
int bar_width(void) { return segwidth; }
};
EDELIB_NS_END
#endif
edelib::SevenSeg::value
int value(void)
Definition: SevenSeg.h:81
edelib::SevenSeg
Digital number widget.
Definition: SevenSeg.h:42
edelib::SevenSeg::bar_width
int bar_width(void)
Definition: SevenSeg.h:92