00001
00002
00003
00004
00005
00006 #ifndef __XYRASTERTEXT_H
00007 #define __XYRASTERTEXT_H
00008
00009 #include "xytext.h"
00010
00011
00012
00013 class XYRasterText : public XYText
00014 {
00015 public:
00016
00017
00018
00019 enum TextSize {
00020 xytiny = 8,
00021 xysmall = 10,
00022 xystandard = 12,
00023 xylarge = 18
00024 };
00025
00026
00027
00028 XYRasterText (
00029 const char* text,
00030
00031 XYCoordinate x,
00032 XYCoordinate y,
00033 long color,
00034 int size,
00035 Typeface font,
00036 Style style,
00037 Alignment alignment,
00038 Orientation orientation,
00039 xybool underline = xyfalse,
00040 xybool visible = xytrue);
00041
00042
00043 XYRasterText (
00044 const char* text,
00045
00046 XYCoordinate x,
00047 XYCoordinate y,
00048 xybool visible = xytrue);
00049
00050
00051 XYRasterText (
00052 const char* text,
00053 long color,
00054 int size,
00055 Typeface font,
00056 Style style,
00057 Alignment alignment,
00058 Orientation orientation,
00059 xybool underline = xyfalse,
00060 xybool visible = xytrue);
00061
00062
00063 XYRasterText (
00064 long color,
00065 int size,
00066 Typeface font,
00067 Style style,
00068 Alignment alignment,
00069 Orientation orientation,
00070 xybool underline = xyfalse,
00071 xybool visible = xytrue);
00072
00073
00074 virtual ~XYRasterText (void);
00075
00076
00077
00078 virtual void size (int s);
00079
00080 virtual int size (void) const;
00081
00082
00083
00084 virtual void draw (void);
00085
00086 virtual void draw (int xmin, int ymin, int xmax, int ymax) const;
00087
00088
00089
00090 virtual void boundingBox (int& bxmin, int& bymin, int& bxmax, int& bymax) const;
00091
00092 private:
00093
00094 int _size;
00095 };
00096
00097 #endif
00098