public MacExpander() { header = new ExpanderHeader(this); PackStart(header, false, false, 0); contentBox = new VBox(); contentBox.PackEnd(border, false, false, 0); expanded = true; PackStart(contentBox, true, true, 0); ShowAll(); }
public ClosableExpander() { header = new ExpanderHeader(this); PackStart(header, false, false, 0); contentBox = new VBox(); contentBox.ExposeEvent += delegate(object o, ExposeEventArgs args) { using (var cr = CairoHelper.Create(args.Event.Window)) { CairoCorners corners = CairoCorners.BottomLeft | CairoCorners.BottomRight; int r = 10; CairoExtensions.RoundedRectangle(cr, contentBox.Allocation.X + 0.5, contentBox.Allocation.Y + 0.5, contentBox.Allocation.Width - 1, contentBox.Allocation.Height - 1, r, corners, true); cr.LineWidth = 1; cr.Color = (Mono.TextEditor.HslColor)Style.Dark(StateType.Normal); cr.Stroke(); } }; expanded = true; PackStart(contentBox, true, true, 0); ShowAll(); }
public MacExpander () { header = new ExpanderHeader (this); PackStart (header, false, false, 0); contentBox = new VBox (); contentBox.PackEnd (border, false, false, 0); PackStart (contentBox, true, true, 0); ShowAll (); }
public ClosableExpander () { header = new ExpanderHeader (this); PackStart (header, false, false, 0); contentBox = new VBox (); contentBox.ExposeEvent += delegate(object o, ExposeEventArgs args) { using (var cr = CairoHelper.Create (args.Event.Window)) { CairoCorners corners = CairoCorners.BottomLeft | CairoCorners.BottomRight; int r = 10; CairoExtensions.RoundedRectangle (cr, contentBox.Allocation.X + 0.5, contentBox.Allocation.Y+ 0.5, contentBox.Allocation.Width - 1, contentBox.Allocation.Height - 1, r, corners, true); cr.LineWidth = 1; cr.Color = (Mono.TextEditor.HslColor)Style.Dark (StateType.Normal); cr.Stroke (); } }; expanded = true; PackStart (contentBox, true, true, 0); ShowAll (); }