public MemberFigure(Gdk.Pixbuf icon, IMember memberInfo, bool hidden)
            : base()
        {
            this.icon = new ImageFigure (icon);

            if (memberInfo.ReturnType != null)
                retval = new TextFigure (memberInfo.ReturnType.Name);
            else
                retval = new TextFigure (String.Empty);

            name = new TextFigure (memberInfo.Name);

            MemberInfo = memberInfo;
            Visible = !hidden;

            name.Padding = 1.0;
            name.FontSize = 10;
            retval.Padding = 0;
            retval.FontSize = 10;
            retval.FontColor = new Cairo.Color(0, 0, 1.0);

            AllowFormatting = true;
            Alignment = HStackAlignment.Bottom;
            SetAttribute (FigureAttribute.Selectable, true);

            Add (this.icon);
            Add (retval);
            Add (name);
        }
 public SimpleTextTool(IDrawingEditor editor, TextFigure fig, ITool dt)
     : base(editor, fig, dt)
 {
     _entry = new Gtk.Entry ();
     _entry.HasFrame = false;
     _entry.Alignment = 0.5f;
     _entry.Changed += new System.EventHandler (ChangedHandler);
     _entry.ModifyFont (fig.PangoLayout.FontDescription.Copy ());
 }
        // For testing purposes
        public MemberFigure(Gdk.Pixbuf icon, string name, string retval, bool hidden)
        {
            this.icon = new ImageFigure (icon);
            this.name = new TextFigure (name);
            this.retval = new TextFigure (retval);

            this.name.Padding = 2.0;
            this.name.FontSize = 10;
            this.retval.Padding = 0.0;
            this.retval.FontSize = 10;
            this.retval.FontColor = new Cairo.Color(0, 0, 1.0);

            Visible = !hidden;
            AllowFormatting = true;
            Alignment = HStackAlignment.Bottom;

            Add (this.icon);
            Add (this.retval);
            Add (this.name);
        }
        public HeaderFigure()
            : base()
        {
            namespaceFigure = new TextFigure ("Namespace");
            namespaceFigure.Padding = 0;
            namespaceFigure.FontSize = 7;

            typeFigure = new TextFigure ("Type");
            typeFigure.Padding = 0;
            typeFigure.FontSize = 7;

            nameFigure = new TextFigure ("Name");
            nameFigure.Padding = 0;
            nameFigure.FontSize = 12;
            Spacing = 0;

            Add (typeFigure);
            Add (namespaceFigure);
            Add (nameFigure);
        }
        public CompartmentFigure(string name)
            : base()
        {
            Spacing = 1;
            Alignment = VStackAlignment.Left;

            _name = name;
            compartmentName = new TextFigure (name);
            compartmentName.Padding = 0;
            compartmentName.FontSize = 10;
            compartmentName.FontColor = new Cairo.Color(0.3, 0.0, 0.0);
            SetAttribute (FigureAttribute.Selectable, true);

            membersStack = new VStackFigure();
            membersStack.Spacing = 2;

            expandHandle = new ToggleButtonHandle (this, new AbsoluteLocator(-10, 7.5));
            expandHandle.Toggled += OnToggled;

            Add (compartmentName);
            Add (membersStack);
            Collapsed = false;
        }
 public TextTool(IDrawingEditor editor, TextFigure fig, ITool dt)
     : base(editor, fig, dt)
 {
 }