Esempio n. 1
0
        public Connector(Control source, Connected target, VisualDirection direction, 
			HAlign horizAlign, VAlign vertAlign, ConnectorKind kind, VisualStyle style)
            : base(source, horizAlign, vertAlign)
        {
            Target = target;
            Kind = kind;
            ConnectorStyle = style;
        }
Esempio n. 2
0
 public Connected(Control source, HAlign horizAlign, VAlign vertAlign)
 {
     Source = source;
     HorizAlign = horizAlign;
     VertAlign = vertAlign;
 }
Esempio n. 3
0
 public CommandContainer(Control inner, params KeyboardCommand[] commands)
 {
     Inner = inner;
     Commands = commands;
 }
Esempio n. 4
0
 public static Container Frame(Control control)
 {
     return new Container (VisualDirection.Horizontal, HAlign.Left, VAlign.Top, true, false,
         control);
 }
Esempio n. 5
0
 public override void HandleInput(PointF relativeMousePos)
 {
     if (_mouseRegions != null)
     {
         var hit = _mouseRegions.ItemUnderMouse (relativeMousePos);
         if (InputState.MouseButtonPressed (MouseButton.Left))
         {
             if (hit != null && _selected != hit.Item2.Item1)
             {
                 _selected = hit.Item2.Item1;
                 hit.Item2.Item2 (_selected);
             }
             else if (hit == null)
                 _selected = null;
         }
     }
     foreach (var control in Controls.Select (TupleExt.First))
         control.HandleInput (relativeMousePos);
 }
Esempio n. 6
0
 public static Container LabelAndControl(string label, Control control, bool framed)
 {
     return new Container (VisualDirection.Horizontal, HAlign.Left, VAlign.Center, framed, false,
         Label.Static (label, FontStyle.Regular), control);
 }
Esempio n. 7
0
 public PanelFrame(Control client, string title)
 {
     Client = client;
     Title = title;
 }