struct FL_EXPORT Fl_Label {
  const char* value;
  Fl_Image* image;
  Fl_Image* deimage;
  uchar type;
  uchar font;
  uchar size;
  unsigned color;
  void draw(int,int,int,int, Fl_Align) const ;
  void measure(int&, int&) const ;
};

enum Fl_Labeltype {    // labeltypes:
  FL_NORMAL_LABEL    = 0,
  FL_NO_LABEL,
  _FL_SHADOW_LABEL,
  _FL_ENGRAVED_LABEL,
  _FL_EMBOSSED_LABEL,
  _FL_MULTI_LABEL,
  _FL_ICON_LABEL,
  _FL_IMAGE_LABEL,

  FL_FREE_LABELTYPE
};
#define FL_SYMBOL_LABEL FL_NORMAL_LABEL
extern Fl_Labeltype FL_EXPORT fl_define_FL_SHADOW_LABEL();
#define FL_SHADOW_LABEL fl_define_FL_SHADOW_LABEL()
extern Fl_Labeltype FL_EXPORT fl_define_FL_ENGRAVED_LABEL();
#define FL_ENGRAVED_LABEL fl_define_FL_ENGRAVED_LABEL()
extern Fl_Labeltype FL_EXPORT fl_define_FL_EMBOSSED_LABEL();
#define FL_EMBOSSED_LABEL fl_define_FL_EMBOSSED_LABEL()

enum Fl_Align {    // align() values
  FL_ALIGN_CENTER        = 0,
  FL_ALIGN_TOP            = 1,
  FL_ALIGN_BOTTOM        = 2,
  FL_ALIGN_LEFT            = 4,
  FL_ALIGN_RIGHT        = 8,
  FL_ALIGN_INSIDE        = 16,
  FL_ALIGN_TEXT_OVER_IMAGE    = 32,
  FL_ALIGN_IMAGE_OVER_TEXT    = 0,
  FL_ALIGN_CLIP            = 64,
  FL_ALIGN_WRAP            = 128,
  FL_ALIGN_TOP_LEFT        = FL_ALIGN_TOP | FL_ALIGN_LEFT,
  FL_ALIGN_TOP_RIGHT        = FL_ALIGN_TOP | FL_ALIGN_RIGHT,
  FL_ALIGN_BOTTOM_LEFT        = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT,
  FL_ALIGN_BOTTOM_RIGHT        = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT,
  FL_ALIGN_LEFT_TOP        = FL_ALIGN_TOP_LEFT,
  FL_ALIGN_RIGHT_TOP        = FL_ALIGN_TOP_RIGHT,
  FL_ALIGN_LEFT_BOTTOM        = FL_ALIGN_BOTTOM_LEFT,
  FL_ALIGN_RIGHT_BOTTOM        = FL_ALIGN_BOTTOM_RIGHT,
  FL_ALIGN_NOWRAP        = 0 // for back compatability
};


台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()