X-Git-Url: https://git.saurik.com/winterboard.git/blobdiff_plain/c27e08b2b3d51a2649195c23b7f9b56475fd0250..62ab6edbb3f23b74650ddb7e3ad054702f7eaa43:/WBMarkup.h diff --git a/WBMarkup.h b/WBMarkup.h index d396a8e..a60e8fb 100644 --- a/WBMarkup.h +++ b/WBMarkup.h @@ -7,12 +7,6 @@ @class WAKWindow; @class WebView; -typedef enum { - WebTextAlignmentLeft = 0, - WebTextAlignmentCenter = 1, - WebTextAlignmentRight = 2, -} WebTextAlignment; - @interface WBMarkup : NSObject { /*04*/ WebView *view_; /*08*/ DOMDocument *document_; @@ -34,11 +28,11 @@ typedef enum { - (void) setStringDrawingOrigin:(CGPoint)origin; - (void) clearStringDrawingOrigin; -- (CGSize) sizeOfMarkup:(NSString *)markup forWidth:(float)width; -- (CGSize) sizeOfString:(NSString *)string withStyle:(NSString *)style forWidth:(float)width; +- (CGSize) sizeOfMarkup:(NSString *)markup forWidth:(CGFloat)width; +- (CGSize) sizeOfString:(NSString *)string withStyle:(NSString *)style forWidth:(CGFloat)width; - (NSString *) _styleFormatString:(NSString *)style; -- (void) _setupWithStyle:(NSString *)style width:(float)width height:(float)height; +- (void) _setupWithStyle:(NSString *)style width:(CGFloat)width height:(CGFloat)height; - (BOOL) _webPrepareContextForTextDrawing:(BOOL)drawing; - (void) drawMarkup:(NSString *)markup atPoint:(CGPoint)point;