Exemplo n.º 1
0
        public override void DrawLayer(CALayer layer, CGContext context)
        {
            /* XXX draw the arrow (and border) */

            if (el.SelectedIndex != -1)
            {
                GuiUtil.RenderTextToContext(context, new PointF(0, 0), el.SelectedItem, el.Font, el.Palette, 4);
            }
        }
Exemplo n.º 2
0
        public override void DrawLayer(CALayer layer, CGContext context)
        {
            int y = 0;

            for (int i = el.Items.Count - 1; i >= 0; i--)
            {
                GuiUtil.RenderTextToContext(context, new PointF(0, y), el.Items[i], el.Font, el.Palette,
                                            i == el.DropdownHoverIndex ? 4 : 24);

                y += (int)el.Font.LineSize;
            }
        }
Exemplo n.º 3
0
		public override void DrawLayer (CALayer layer, CGContext context)
		{
			if (el.Items != null) {
				int y = el.Bounds.Height - el.Font.LineSize;
				for (int i = el.FirstVisible; i < el.FirstVisible + el.NumVisible; i ++) {
					if (i >= el.Items.Count)
						return;
					GuiUtil.RenderTextToContext (context, new PointF (0, y),
												el.Items[i], el.Font, el.Palette, 4);
#if notyet
												(!el.Selectable ||
									     		(!el.Selecting && el.SelectedIndex == i) ||
									     		(el.Selecting && el.SelectionIndex == i)) ? 4 : 24);
#endif
					y -= el.Font.LineSize;
				}
			}
		}
Exemplo n.º 4
0
 public override void DrawLayer(CALayer layer, CGContext context)
 {
     GuiUtil.RenderTextToContext(context, el.TextPosition, el.Text, el.Font, el.Palette, el.Sensitive ? 4 : 24);
 }
Exemplo n.º 5
0
 public override void DrawLayer(CALayer layer, CGContext context)
 {
     GuiUtil.RenderTextToContext(context, new PointF(0, el.Height / 2), el.Text, el.Font, el.Palette, el.Sensitive ? 4 : 24);
 }