You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/TinyChat/SubControls/IChatMessageControl.cs

24 lines
701 B
C#

1 month ago
namespace TinyChat;
/// <summary>
/// Represents a control that can display a chat message.
/// </summary>
public interface IChatMessageControl
{
/// <summary>
/// The event that is raised when the size of the control is updated while streaming a message.
/// </summary>
public event EventHandler? SizeUpdatedWhileStreaming;
/// <summary>
/// Gets or sets the chat message displayed by this control.
/// </summary>
IChatMessage? Message { get; set; }
/// <summary>
/// Sets whether the control is receiving a stream or not
/// </summary>
/// <param name="isReceiving">The flag specifying whether a stream is being received or not</param>
void SetIsReceivingStream(bool isReceiving);
}