From c3cde61e9879825c1547e366e2b9becedc1179e7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 9 Jun 2002 18:28:49 +0000 Subject: Add documentation for using styles in text editor. Add placeholder for style attributes - hidden + underlined - for future use. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Text_Display.H | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index 754cc10cb..575748758 100644 --- a/FL/Fl_Text_Display.H +++ b/FL/Fl_Text_Display.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Text_Display.H,v 1.4.2.7 2002/06/08 12:51:38 easysw Exp $" +// "$Id: Fl_Text_Display.H,v 1.4.2.8 2002/06/09 18:28:48 easysw Exp $" // // Header file for Fl_Text_Display class. // @@ -55,10 +55,18 @@ class Fl_Text_Display: public Fl_Group { typedef void (*Unfinished_Style_Cb)(); + // style attributes - currently not implemented! + enum { + ATTR_NONE = 0, + ATTR_UNDERLINE = 1, + ATTR_HIDDEN = 2 + }; + struct FL_EXPORT Style_Table_Entry { - Fl_Color color; - Fl_Font font; - int size; + Fl_Color color; + Fl_Font font; + int size; + unsigned attr; }; FL_EXPORT Fl_Text_Display(int X, int Y, int W, int H, const char *l = 0); @@ -234,5 +242,5 @@ class Fl_Text_Display: public Fl_Group { #endif // -// End of "$Id: Fl_Text_Display.H,v 1.4.2.7 2002/06/08 12:51:38 easysw Exp $". +// End of "$Id: Fl_Text_Display.H,v 1.4.2.8 2002/06/09 18:28:48 easysw Exp $". // -- cgit v1.2.3