-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added classes to represent a toolbar push button.
- Loading branch information
1 parent
11bff17
commit 2545eac
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
src/BetterControls/BetterToolbar/Items/BetterToolbarPushButton.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ } | ||
} | ||
} |