2022-05-21 19:58:09 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include "StringBase.h"
|
|
|
|
|
|
|
|
namespace Forms
|
|
|
|
{
|
|
|
|
// Provides data for the LabelEdit event.
|
|
|
|
class LabelEditEventArgs
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LabelEditEventArgs(int32_t Item);
|
2022-05-21 21:51:35 +02:00
|
|
|
LabelEditEventArgs(int32_t Item, const String& Label);
|
2022-05-21 19:58:09 +02:00
|
|
|
~LabelEditEventArgs() = default;
|
|
|
|
|
|
|
|
// The new text for the item.
|
2022-05-21 21:51:35 +02:00
|
|
|
String Label;
|
2022-05-21 19:58:09 +02:00
|
|
|
// The index of the item being edited.
|
|
|
|
int32_t Item;
|
|
|
|
// Whether or not to cancel the changes.
|
|
|
|
bool CancelEdit;
|
|
|
|
};
|
|
|
|
}
|