1 #include <Foundation/Foundation.h>
2 #include <CoreGraphics/CoreGraphics.h>
10 @interface WBMarkup
: NSObject
{
11 /*04*/ WebView
*view_
;
12 /*08*/ DOMDocument
*document_
;
13 /*0C*/ WAKWindow
*window_
;
14 /*10*/ DOMElement
*text_
;
15 /*14*/ DOMElement
*size_
;
16 /*18*/ CGContextRef context_
;
17 /*1C*/ CGPoint origin_
;
20 + (BOOL
) isSharedMarkupCreated
;
21 + (WBMarkup
*) sharedMarkup
;
26 - (WebView
*) _webView
;
28 - (void) setStringDrawingOrigin
:(CGPoint
)origin
;
29 - (void) clearStringDrawingOrigin
;
31 - (CGSize
) sizeOfMarkup
:(NSString
*)markup forWidth
:(CGFloat
)width
;
32 - (CGSize
) sizeOfString
:(NSString
*)string withStyle
:(NSString
*)style forWidth
:(CGFloat
)width
;
34 - (NSString
*) _styleFormatString
:(NSString
*)style
;
35 - (void) _setupWithStyle
:(NSString
*)style width
:(CGFloat
)width height
:(CGFloat
)height
;
36 - (BOOL
) _webPrepareContextForTextDrawing
:(BOOL
)drawing
;
38 - (void) drawMarkup
:(NSString
*)markup atPoint
:(CGPoint
)point
;
39 - (void) drawMarkup
:(NSString
*)markup inRect
:(CGRect
)rect
;
41 - (void) drawString
:(NSString
*)string atPoint
:(CGPoint
)point withStyle
:(NSString
*)style
;
42 - (void) drawString
:(NSString
*)string inRect
:(CGRect
)rect withStyle
:(NSString
*)style
;