/// <summary> /// Resolves size of cell renderer /// </summary> /// <param name="widget"> /// Widget <see cref="Widget"/> /// </param> /// <param name="cell_area"> /// Area <see cref="Gdk.Rectangle"/> /// </param> /// <param name="x_offset"> /// X offset <see cref="System.Int32"/> /// </param> /// <param name="y_offset"> /// Y offset <see cref="System.Int32"/> /// </param> /// <param name="width"> /// Width <see cref="System.Int32"/> /// </param> /// <param name="height"> /// Height <see cref="System.Int32"/> /// </param> public override void GetSize(Widget widget, ref Gdk.Rectangle cell_area, out int x_offset, out int y_offset, out int width, out int height) { x_offset = 0; y_offset = 0; double w, h = 0; masterWidget = widget; MainBox.Arguments.Start(CellAction.GetSize, new CellExposeEventArgs(null, null, widget.GdkWindow, null, null)); MainBox.Arguments.PassedArguments.Widget = MasterWidget; MainBox.Arguments.PassedArguments.Renderer = this; MainBox.GetCellSize(out w, out h); MainBox.Arguments.Stop(); masterWidget = null; width = System.Convert.ToInt32(w + (Padding * 2)) + 4; height = System.Convert.ToInt32(h + (Padding * 2)); }