Resource_Font.h
Go to the documentation of this file.00001 00011 #ifndef __Resource_Font_H__ 00012 #define __Resource_Font_H__ 00013 00014 // Includes 00015 #include "StringId.h" 00016 00017 // Forward declares 00018 class Font; 00019 class Filename; 00020 class Bitmap; 00021 00022 // Resource_Font 00023 class Resource_Font 00024 { 00025 public: 00026 Resource_Font(); 00027 00028 Resource_Font(const Filename& filename); 00029 00030 Resource_Font(const char* filename); 00031 00032 Resource_Font(StringId filename); 00033 00034 ~Resource_Font(); 00035 00036 Resource_Font(const Resource_Font& resource); 00037 00038 const Resource_Font& operator =(const Resource_Font& resource); 00039 00040 const Font& GetFont() const; 00041 00042 operator const Font&() const; 00043 00044 void Blit( 00045 Bitmap& bitmap, 00046 int x, 00047 int y, 00048 const char* text, 00049 int spacing = 0, 00050 unsigned short modulate = 0xffff, 00051 unsigned char alpha = 255 00052 ) const; 00053 00054 void BlitWrap( 00055 Bitmap& bitmap, 00056 int x, 00057 int y, 00058 const char* text, 00059 int width, 00060 int hspacing = 0, 00061 int vspacing = 0, 00062 unsigned short modulate = 0xffff, 00063 unsigned char alpha = 255 00064 ) const; 00065 00066 private: 00067 const Font* font_; 00068 }; 00069 00070 #endif /* __Resource_Font_H__ */ 00071
Reproduction/republishing of any material on this site without permission is strictly prohibited.
