Inheritance: NSObject
示例#1
0
 public virtual void SetTitleFont(NSFont fontObj)
 {
     ((NSCell)_cell).Font = fontObj;
     if (_content_view != null)
         ((NSView)_content_view).Frame = CalcSizesAllowingNegative(false);
     this.SetNeedsDisplay(true);
 }
示例#2
0
        public virtual id InitImageCell(NSImage anImage)
        {
            id self = this;

            _cell.type = (uint)NSCellType.NSImageCellType;
            _cell_image = anImage;
            _cell.image_position = (uint)NSCellImagePosition.NSImageOnly;
            _font = NSFont.SystemFontOfSize(-1);
            _action_mask = (uint)NSEventMask.NSLeftMouseUpMask;
            //_menu = [object_getClass(self) defaultMenu];
            //[self setFocusRingType: [object_getClass(self) defaultFocusRingType]];

            return self;
        }
示例#3
0
        public virtual id InitTextCell(NSString aString)
        {
            id self = this;

            _cell.type = (uint)NSCellType.NSTextCellType;
            _contents = aString;
            _font = NSFont.SystemFontOfSize(-1);
            _action_mask = (uint)NSEventMask.NSLeftMouseUpMask;
            //_menu = [object_getClass(self) defaultMenu];
            //[self setFocusRingType: [object_getClass(self) defaultFocusRingType]];

            return self;
        }
示例#4
0
        public static NSFont FontWithNameSize(string aFontName, double aSize)
        {
            NSFont font = new NSFont();

            return font;
        }