Inheritance: NSObject
Exemple #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);
 }
Exemple #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;
        }
Exemple #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;
        }
Exemple #4
0
        public static NSFont FontWithNameSize(string aFontName, double aSize)
        {
            NSFont font = new NSFont();

            return font;
        }