/**** * * Class Label is a sublcass of InterViews Message that provides an additional * public constructor to create a message label of a given font. Specifically, * the new constructor takes the following parameters: * * PARM EXAMPLES * ============================================================ * text message text, as for Message constructor * family font family (e.g., times, helvetica, courier) * weight font weight (e.g, medium, bold) * slant font slant (e.g., r(oman), o(blique), i(talic)) * size font size (e.g., 9, 24) * * Class Label uses class FontByName, q.v. * */ #ifndef labelIncluded #define labelIncluded #include #include #include class Label : public Message { public: Label(char* msg, char* fam = "courier", char* wgt = "medium", char *sl = "r", int pnt = 12); /* * Construct this with the given string-valued message in a font * specified by the remaining parameters. */ protected: FontByName* fbn; // Font-by-name object used to construct this }; #endif