/// <summary> /// Initializes a new instance of the <see cref="UserInterfaceElement"/> class. /// </summary> /// <param name="mouse">The mouse service.</param> /// <param name="parent">The parent.</param> protected UserInterfaceElement(IMouse mouse, UserInterfaceElement parent = null) { Parent = parent; isVisible = true; mouse.Move += OnMouseMove; mouse.ButtonLift += OnMouseButtonLift; }
public MonoGameImage( string source, IMouse mouse, ILogger logger, ContentManager content, SpriteBatch spriteBatch, UserInterfaceElement parent = null) : base(source, mouse, parent) { this.logger = logger; this.content = content; this.spriteBatch = spriteBatch; }
public static IXnaGameLoop AsXnaGameLoop(this UserInterfaceElement userInterfaceElement) { return(userInterfaceElement as IXnaGameLoop); }
public MonoGameLabel(ContentManager content, SpriteBatch spriteBatch, IMouse mouse, UserInterfaceElement parent = null) : base(mouse, parent) { this.content = content; this.spriteBatch = spriteBatch; }
public MonoGameButton(IMouse mouse, UserInterfaceElement parent = null) : base(mouse, parent) { }
public MonoGameStackPanel(IMouse mouse, UserInterfaceElement parent = null) : base(mouse, parent) { }
/// <summary> /// Initializes a new instance of the <see cref="Button"/> class. /// </summary> /// <param name="assets">The asset manager of this user interface.</param> /// <param name="child">The user interface inside this button.</param> public Button(AssetManager assets, UserInterfaceElement child) : base(assets) { this.Child = child; }
/// <summary> /// Initializes a new instance of the <see cref="Label"/> class. /// </summary> /// <param name="mouse">The mouse servicve.</param> /// <param name="parent">The parent.</param> protected Label(IMouse mouse, UserInterfaceElement parent = null) : base(mouse, parent) { }
/// <summary> /// Initializes a new instance of the <see cref="Image"/> class. /// </summary> /// <param name="source">The source for the image.</param> /// <param name="mouse">The mouse service.</param> /// <param name="parent">The parent.</param> protected Image(string source, IMouse mouse, UserInterfaceElement parent) : base(mouse, parent) { Source = source; }
/// <summary> /// Initializes a new instance of the <see cref="Button"/> class. /// </summary> /// <param name="mouse">The mouse service.</param> /// <param name="parent">The parent.</param> protected Button(IMouse mouse, UserInterfaceElement parent) : base(mouse, parent) { }