Esempio n. 1
0
        /// <param name="editorGraphics">Owner EditorGraphics object that relays UI events to this element and manages its rendering.</param>
        /// <param name="isReceivingEvents">If true, new instance of GraphicalEventHandler is added to this graphical element.</param>
        /// <param name="parent">GraphicalElement position is calculated relative to Parent element. Can be null.</param>
        protected GraphicalElement(EditorGraphics editorGraphics, bool isReceivingEvents, GraphicalElement parent = null)
        {
            IsReceivingEvents = isReceivingEvents;
            if (isReceivingEvents)
            {
                GraphicalEventHandler = new GraphicalEventHandler();
            }

            Parent   = parent;
            Graphics = editorGraphics;
            Graphics.Register(this);
        }
Esempio n. 2
0
 public Grid(EditorGraphics editorGraphics, bool isReceivingEvents, GraphicalElement parent = null) : base(editorGraphics, isReceivingEvents, parent)
 {
 }
Esempio n. 3
0
 public CreateTransitionButton(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new CreateTransitionButtonRenderer(this, editorGraphics.ColorPalette);
 }
Esempio n. 4
0
 public EntryJoint(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new EntryJointRenderer(this, editorGraphics.ColorPalette);
 }
Esempio n. 5
0
 public bool RemoveChild(GraphicalElement child)
 {
     return(children.Remove(child));
 }
Esempio n. 6
0
 public void AddChild(GraphicalElement child)
 {
     children.Add(child);
 }
Esempio n. 7
0
 public AddStepButton(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new AddStepButtonRenderer(this, editorGraphics.ColorPalette);
 }