public virtual void SetTitleFont(NSFont fontObj) { ((NSCell)_cell).Font = fontObj; if (_content_view != null) ((NSView)_content_view).Frame = CalcSizesAllowingNegative(false); this.SetNeedsDisplay(true); }
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; }
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; }
public static NSFont FontWithNameSize(string aFontName, double aSize) { NSFont font = new NSFont(); return font; }