text: /*
   *  FMDisplayItem.h
   *  FountainMusic
   *
   *  Copyright 2005-2011 Brian Moore
   *
   */
  
  typedef enum
  {
  	kFMDisplayItemLeft = 1 << 0,
  	kFMDisplayItemHorizontalCenter = 1 << 1,
  	kFMDisplayItemRight = 1 << 2,
  	kFMDisplayItemTop = 1 << 3,
  	kFMDisplayItemVerticalCenter = 1 << 4,
  	kFMDisplayItemBottom = 1 << 5
  } FMDisplayItemAlignmentFlags;
  
  typedef struct FMDisplayItem *FMDisplayItemRef;
  
  // item creation API
  FMDisplayItemRef FMDisplayItemCreate();
  void FMDisplayItemDelete(FMDisplayItemRef item);
  
  void FMDisplayItemSetPosition(FMDisplayItemRef item, float newX, float newY);
  
  float FMDisplayItemGetFadeTime(FMDisplayItemRef item);
  void FMDisplayItemSetFadeTime(FMDisplayItemRef item, float newFadeTime);
  
  float FMDisplayItemGetTimeToDie(FMDisplayItemRef item);
  void FMDisplayItemSetTimeToDie(FMDisplayItemRef item, float newTime);
  
  float FMDisplayItemGetTextSize(FMDisplayItemRef item);
  void FMDisplayItemSetTextSize(FMDisplayItemRef item, float inSize);
  
  void FMDisplayItemStep(FMDisplayItemRef item, float deltaT);
  float FMDisplayItemAlpha(FMDisplayItemRef item);
  
  void FMDisplayItemSetStringValueMacRoman(FMDisplayItemRef item, const char *newText);
  void FMDisplayItemSetStringValueCFString(FMDisplayItemRef item, CFStringRef str);
  void FMDisplayItemSetTextAlignment(FMDisplayItemRef item, FMDisplayItemAlignmentFlags flags);
  
  void FMDisplayItemSetTextureDirty(FMDisplayItemRef item, Boolean flag);
  
  void FMDisplayItemSetupGraphics(FMDisplayItemRef item);
  void FMDisplayItemCleanupGraphics(FMDisplayItemRef item);
  
  void FMDisplayItemDraw(FMDisplayItemRef item);
  
  