| 
      
    | 
   
◆ drawTextAt()
  
  
      
        
          | float GiShapeAdapter::drawTextAt  | 
          ( | 
          const char *  | 
          text,  | 
         
        
           | 
           | 
          float  | 
          x,  | 
         
        
           | 
           | 
          float  | 
          y,  | 
         
        
           | 
           | 
          float  | 
          h,  | 
         
        
           | 
           | 
          int  | 
          align,  | 
         
        
           | 
           | 
          float  | 
          angle  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
   
 
 
Draw text in one line.  
Uses the current font and fill color to draw the text aligned on top.  - 参数
 - 
  
    | text | The text to draw.  |  
    | x | X of horizontal alignment position.  |  
    | y | Y of horizontal alignment position.  |  
    | h | Text height in point(or pixel) unit.  |  
    | align | alignment type, kAlignLeft|kAlignTop.  |  
    | angle | Rotate angle in radians, it's positive direction is CCW in the world coordinate system.  |  
   
   
 
- 返回
 - Actual display width. 
  
实现了 GiCanvas. 
 
 
     |