Skip to content

Commit

Permalink
Added classes to represent a toolbar push button.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehighfield committed May 19, 2022
1 parent 11bff17 commit 2545eac
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions src/BetterControls/BetterToolbar/Items/BetterToolbarPushButton.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
namespace BetterControls
{
/// <summary>
/// Represents a toolbar button.
/// </summary>
public class BetterToolbarPushButton : BetterToolbarClickableButton
{
/// <summary>
/// Initialize a new instance of <see cref="BetterToolbarPushButton"/>.
/// </summary>
public BetterToolbarPushButton() { }

/// <summary>
/// Initialize a new instance of <see cref="BetterToolbarPushButton"/>.
/// </summary>
/// <param name="text">The text of the button.</param>
public BetterToolbarPushButton(string text)
: base(text)
{ }

/// <summary>
/// Initialize a new instance of <see cref="BetterToolbarPushButton"/>.
/// </summary>
/// <param name="text">The text of the button.</param>
/// <param name="description">The description of the button.</param>
public BetterToolbarPushButton(string text, string description)
: base(text, description)
{ }

/// <summary>
/// Initialize a new instance of <see cref="BetterToolbarPushButton"/>.
/// </summary>
/// <param name="text">The text of the button.</param>
/// <param name="imageIndex">The index of the image from the toolbar image list to be shown in the button.</param>
public BetterToolbarPushButton(string text, int imageIndex)
: base(text, imageIndex)
{ }

/// <summary>
/// Initialize a new instance of <see cref="BetterToolbarPushButton"/>.
/// </summary>
/// <param name="text">The text of the button.</param>
/// <param name="description">The description of the button.</param>
/// <param name="imageIndex">The index of the image from the toolbar image list to be shown in the button.</param>
public BetterToolbarPushButton(string text, string description, int imageIndex)
: base(text, description, imageIndex)
{ }

/// <summary>
/// Initialize a new instance of <see cref="BetterToolbarPushButton"/>.
/// </summary>
/// <param name="ownerToolbar">The owner toolbar as an instance of <see cref="BetterToolbar"/>.</param>
private protected BetterToolbarPushButton(BetterToolbar ownerToolbar)
: base(ownerToolbar)
{ }
}
}

0 comments on commit 2545eac

Please sign in to comment.