Mozilla2:GFXTextRun: Difference between revisions

Jump to navigation Jump to search
Line 21: Line 21:
   void GetCharacterFlags(int pos, int len, CharFlags* flags);
   void GetCharacterFlags(int pos, int len, CharFlags* flags);


   // Set whether or not this text run starts/ends a word
  struct RunFlags {
   void SetWordStartEnd(PRBool startsWord, PRBool endsWord);
    PRPackedBool startsWord;
   // Set whether or not this text run starts/ends a line
    PRPackedBool endsWord;
  void SetLineStartEnd(PRBool startsLine, PRBool endsLine);
    PRPackedBool startsLine;
    PRPackedBool endsLine;
  };
   // Set whether or not this text run starts/ends a word.
  // This must NOT change the character flags but it can change the geometry.
   void SetRunFlags(RunFlags flags);
   RunFlags GetRunFlags();


   // Set the spacing between clusters. For each character index i that is
   // Set the spacing between clusters. For each character index i that is
Line 32: Line 38:
   // For each character index i that is not the start of a cluster,
   // For each character index i that is not the start of a cluster,
   // spacingArray[i] must be zero. spacingArray[0] must be zero.
   // spacingArray[i] must be zero. spacingArray[0] must be zero.
  // This must NOT change the character flags but it can change the geometry.
   void SetSpacing(gfxFloat* spacingArray);
   void SetSpacing(gfxFloat* spacingArray);
          
          
1,295

edits

Navigation menu