diff --git a/docs/develop/servers/app_server/ColorSet.htm b/docs/develop/servers/app_server/ColorSet.htm new file mode 100644 index 0000000000..9067340309 --- /dev/null +++ b/docs/develop/servers/app_server/ColorSet.htm @@ -0,0 +1,112 @@ + + +ColorSet.htm + + + +
+

ColorSet class

+


+

+

The ColorSet class provides an easy manner to manage system attribute colors, such as window tabs, panel background colors, etc. Each member is an RGBColor. The attributes are list below and are publicly accessible.

+


+

+

panel_background

+

panel_text

+

document_background

+

document_text

+

control_background

+

control_text

+

control_border

+

control_highlight

+

tooltip_background

+

tooltip_text

+

menu_background

+

menu_selected_background

+

menu_text

+

menu_selected_text

+

menu_separator_high

+

menu_separator_low

+

menu_triggers

+

window_tab

+

window_tab_text

+

inactive_window_tab

+

inactive_window_tab_text

+

keyboard_navigation

+

desktop

+


+
+


+

+


+Member Functions

+


+

+ + + + + + + + + + + + + +
+

ColorSet(void)

+
+

ColorSet(const ColorSet &cs)

+
+

ColorSet & operator=(const ColorSet &cs)

+
+

void SetColors(const ColorSet &cs)

+
+

void PrintToStream(void)

+
+   +
+


+
+
+


+

+


+ColorSet(void)

+


+Does nothing.

+


+
+ColorSet(const ColorSet &cs)

+

ColorSet & operator=(const ColorSet &cs)

+


+Calls SetColors on the passed ColorSet object

+


+
+void SetColors(const ColorSet &cs)

+


+Copies all data members of the passed color set to those of the current one

+


+
+void PrintToStream(void)

+


+Prints the name of each attribute color and then calls the color's PrintToStream member.

+
+
+
+ + diff --git a/docs/develop/servers/app_server/FontStyle.htm b/docs/develop/servers/app_server/FontStyle.htm new file mode 100644 index 0000000000..8d8a4ab69d --- /dev/null +++ b/docs/develop/servers/app_server/FontStyle.htm @@ -0,0 +1,164 @@ + + +FontStyle.htm + + + +
+

FontStyle class : public SharedObject

+


+

+

FontStyle objects represent a font's look, such as bold, italics, etc.

+


+
+


+

+

Type Definitions

+


+typedef struct CachedFaceRec_

+

{

+

BString file_path;

+

uint32 face_index;

+

} CachedFaceRec, *CachedFace;

+


+A record used in FreeType caching.

+


+
+Member Functions

+


+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

FontStyle(const char *filepath, FT_Face face)

+
+

~FontStyle(void)

+
+

ServerFont *Instantiate(float size, float rotation=0.0, float shear=90.0)

+
+

bool IsFixedWidth(void)

+
+

bool IsScalable(void)

+
+

bool HasKerning(void)

+
+

bool HasTuned(void)

+
+

uint16 GlyphCount(void)

+
+

uint16 CharMapCount(void)

+
+

const char *Style(void)

+
+

FontFamily *Family(void)

+
+

FT_Face GetFace(void)

+
+

const char *GetPath(void)

+
+

int16 ConvertToUni code(uint16 c)

+
+


+
+
+


+

+

FontStyle(const char *filepath, FT_Face face)

+


+1) set name from face

+

2) create a CachedFaceRec object and generate the handle as being the memory address converted to an integer. Assign the path from the parameter.

+

3) set the path from the parameter

+

4) set family to NULL

+

5) create the instance list

+

6) check to see if face object has ready-made strikes and set IsTuned flags as appropriate

+

7) set fixed-width, kerning, and scalable flags as appropriate, based on face data

+

8) get and assign glyph and charmap count

+

9) set bounds to an invalid rectangle

+


+
+~FontStyle(void)

+


+1) delete all pointer objects

+

2) empty instance list, delete all attached instances, and delete the list

+


+
+ServerFont *Instantiate(float size, float rotation=0.0, float shear=90.0)

+


+Retrieves a specific instance of the font style, based on the size, rotation, and shear values

+


+1) create a new ServerFont object

+

2) add the new object to the instance list and return it

+


+
+bool IsFixedWidth(void)

+

bool IsScalable(void)

+

bool HasKerning(void)

+

bool HasTuned(void)

+

uint16 GlyphCount(void)

+

uint16 CharMapCount(void)

+

const char *GetPath(void)

+

FT_Face GetFace(void)

+


+These merely return the appropriate flags/values which are assigned values in the constructor.

+


+
+const char *Style(void)

+


+Returns the string value for the particular style.

+


+
+FontFamily *Family(void)

+


+Returns the pointer to the FontStyle object's family. Do NOT delete this pointer.

+


+
+int16 ConvertToUnicode(uint16 c)

+


+Converts a character code to a UTF-8 string

+


+1) Look up the face from the cache manager

+

2) Call FT_Get_Char_Index for the particular character code and return the value

+
+
+
+ + diff --git a/docs/develop/servers/app_server/SharedObject.htm b/docs/develop/servers/app_server/SharedObject.htm new file mode 100644 index 0000000000..4e5783571a --- /dev/null +++ b/docs/develop/servers/app_server/SharedObject.htm @@ -0,0 +1,86 @@ + + +SharedObject.htm + + + +
+

SharedObjectf class

+


+The FontStyle class represents the particular style in a font family, such as Bold, Roman, etc. and provides information on an individual font, such as whether it has a fixed width, whether it is scalable etc. It also houses all instances of the individual style.

+


+


+

+

Member Functions

+


+

+ + + + + + + + + + + + + +
+

SharedObject(void)

+
+

virtual SharedObject(void)

+
+

virtual void AddDependent(void)

+
+

virtual void RemoveDependent(void)

+
+

virtual bool HasDependents(void)

+
+   +
+


+
+


+

+

SharedObject(void)

+


+1) Sets dependent count to 0

+


+
+virtual ~SharedObject(void)

+


+1) Does nothing

+


+
+virtual void AddDependent(void)

+


+1) Increments dependent count

+


+
+virtual void RemoveDependent(void)

+


+1) Decrements dependent count if greater than 0

+


+
+virtual bool HasDependents(void)

+


+1) if dependent count > 0, return true. Otherwise, return false.

+
+
+
+ +