UI graphics utilities overview

Purpose

Provides miscellaneous user interface utility functions, relating to fonts, colours, and drawing.

Architectural relationships

The API is a simple library that is used by applications and other UI framework APIs.

Description

Colour utilities

Colour utilities are available from CColorArray, CColorList, and ColorUtils.

Font utilities

Font utilities are available from CCleanupStackableFont, FontUtils, ResourceUtils, and TLogicalFont. A family of classes derived from TFindWidthOfWidestTextItem find the pixel width for common items, such as days and digits, using a particular font.

Icon utility

CGulIcon packages two bitmaps, one each for an icon image and its mask.

Text and drawing utilities

Text and drawing utilities are available from TextUtils and DrawUtils.

  • Utilities for help with finding text are available from CTulAddressStringTokenizer.

  • Utilities for help with loading and formatting resource strings are available from TulTextResourceUtils

  • Utilities for help with parsing and validating phone numbers are available from TulPhoneNumberUtils

  • Utilities for help with reading strings from resource files are available from CTulStringResourceReader

  • Utilities for help with rectangular areas are provided by TGulAlignment and TGulBorder.