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; }
public Connected(Control source, HAlign horizAlign, VAlign vertAlign) { Source = source; HorizAlign = horizAlign; VertAlign = vertAlign; }
public CommandContainer(Control inner, params KeyboardCommand[] commands) { Inner = inner; Commands = commands; }
public static Container Frame(Control control) { return new Container (VisualDirection.Horizontal, HAlign.Left, VAlign.Top, true, false, control); }
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); }
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); }
public PanelFrame(Control client, string title) { Client = client; Title = title; }