FLTK 1.4.4: Fl_Multi_Label.H Source File

FLTK 1.4.4

Loading...
Searching...
No Matches
Fl_Multi_Label.H
1//
2// Multi-label header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2023 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
17#ifndef Fl_Multi_Label_H
18#define Fl_Multi_Label_H
19
20class Fl_Widget;
21struct Fl_Menu_Item;
22
76 struct FL_EXPORT Fl_Multi_Label {
80 const char* labela;
84 const char* labelb;
89 uchar typea;
94 uchar typeb;
95
96 // This method is used to associate a Fl_Multi_Label with a Fl_Widget.
97 void label(Fl_Widget*);
98
99 // This method is used to associate a Fl_Multi_Label with a Fl_Menu_Item.
100 void label(Fl_Menu_Item*);
101};
102
103#endif
Fl_Widget
Fl_Widget is the base class for all widgets in FLTK.
Definition Fl_Widget.H:112
uchar
unsigned char uchar
unsigned char
Definition fl_types.h:30
Fl_Multi_Label
Allows a mixed text and/or graphics label to be applied to an Fl_Menu_Item or Fl_Widget.
Definition Fl_Multi_Label.H:76
Fl_Multi_Label::typea
uchar typea
Holds the "type" of labela.
Definition Fl_Multi_Label.H:89
Fl_Multi_Label::labelb
const char * labelb
Holds the "rightmost" of the two elements in the composite label.
Definition Fl_Multi_Label.H:84
Fl_Multi_Label::label
void label(Fl_Widget *)
Associate an Fl_Multi_Label with an Fl_Widget.
Definition Fl_Multi_Label.cxx:88
Fl_Multi_Label::labela
const char * labela
Holds the "leftmost" of the two elements in the composite label.
Definition Fl_Multi_Label.H:80
Fl_Multi_Label::typeb
uchar typeb
Holds the "type" of labelb.
Definition Fl_Multi_Label.H:94