GVTextLayout.h 867 B

1234567891011121314151617181920212223242526
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #import <UIKit/UIKit.h>
  11. @interface GVTextLayout : NSObject
  12. {
  13. UIFont* _font;
  14. NSString* _text;
  15. }
  16. - (id)initWithFontName:(char*)fontName fontSize:(CGFloat)fontSize text:(char*)text;
  17. - (void)sizeUpWidth:(double*)width height:(double*)height yoffset:(double*)yoffset;
  18. - (void)drawInContext:(CGContextRef)context atPosition:(CGPoint)position;
  19. - (void)dealloc;
  20. @end