Example #1
0
 public virtual void DrawWithRect(CGRect rect, NSStringDrawingOptions options, Dictionary <NSObject, AnyObject> attributes, [Unwrapped] NSStringDrawingContext context)
 {
 }
Example #2
0
 public virtual CGRect BoundingRectWithSize(CGSize size, NSStringDrawingOptions options, Dictionary <NSObject, AnyObject> attributes, [Unwrapped] NSStringDrawingContext context)
 {
     return(default(CGRect));
 }
Example #3
0
 public virtual CGRect BoundingRectWithSize(CGSize size, NSStringDrawingOptions options, [Optional] NSStringDrawingContext context)
 {
     return(default(CGRect));
 }
Example #4
0
        public static CGRect GetBoundingRect(this NSString This, CGSize size, NSStringDrawingOptions options, UIStringAttributes attributes, NSStringDrawingContext context)
        {
            // Define attributes
            var attr = new NSMutableDictionary();

            attr.Add(NSFont.NameAttribute, attributes.Font.NSFont);

            var rect = This.BoundingRectWithSize(size, options, attr);

            // HACK: Cheating on the height
            return(new CGRect(rect.Left, rect.Top, rect.Width, rect.Height * 1.5f));
        }
Example #5
0
 public virtual void DrawWithRect(CGRect rect, NSStringDrawingOptions options, [Optional] NSStringDrawingContext context)
 {
 }