Esempio n. 1
0
        public TypeMemberFigure(Pixbuf icon, string retvalue, string name)
            : base()
        {
            _icon = new PixbufFigure(icon);
            _retvalue = new SimpleTextFigure(retvalue);
            _name = new SimpleTextFigure(name);

            _name.Padding = 0.0;
            _name.FontSize = 10;
            _retvalue.Padding = 0.0;
            _retvalue.FontSize = 10;
            _retvalue.FontColor = new Cairo.Color(0, 0, 1.0);

            Alignment = HStackAlignment.Bottom;

            Add(_icon);
            Add(_retvalue);
            Add(_name);
        }
        public TypeHeaderFigure(Pixbuf icon)
            : base()
        {
            namespaceFigure = new SimpleTextFigure("Namespace");
            namespaceFigure.Padding = 0;
            namespaceFigure.FontSize = 9;

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

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

            Spacing = 3.0;
            _icon = new PixbufFigure(icon);
            //Add(new TypeMemberFigure(icon,"",typeFigure.Text));
            Add(_icon);
            //Add(typeFigure);
            Add(namespaceFigure);
            Add(nameFigure);
        }