Пример #1
0
 /// <summary>
 /// Creates new MouseClickEvent object, used for MouseClick events in the ScreenComponent
 /// class.
 /// </summary>
 /// <param name="component">The component that created the event</param>
 /// <param name="input">    The inputstate at the time of the event</param>
 /// <param name="button">   The button that was used to make the click</param>
 public MouseClickEvent(ScreenComponent component, InputState input, MouseButton button)
     : base(component, input)
 {
     this.button = button;
 }
Пример #2
0
 public bool RemoveComponent(ScreenComponent component)
 {
     return components.Remove(component);
 }
Пример #3
0
 /// <summary>
 /// Creates a new MouseEvent instance used for ScreenComponent events
 /// </summary>
 /// <param name="component">The component that throws the event</param>
 /// <param name="input">    The inputstate at the time of throwing the event</param>
 public MouseEvent(ScreenComponent component, InputState input)
 {
     this.component = component;
     this.input = input;
 }
Пример #4
0
 public void AddComponent(ScreenComponent component)
 {
     components.Add(component);
 }