add live select pannel

This commit is contained in:
CroakFang
2023-01-20 07:13:54 +08:00
parent 3b18268252
commit a4dc2516e3
1543 changed files with 107369 additions and 9227 deletions
@@ -0,0 +1,30 @@
namespace Cutt
{
public static class LiveTimelineKeyAttribute_Ext
{
public static bool hasFlag(this LiveTimelineKeyAttribute This, LiveTimelineKeyAttribute bit)
{
return (This & bit) != (LiveTimelineKeyAttribute)0;
}
public static LiveTimelineKeyAttribute addFlag(this LiveTimelineKeyAttribute This, LiveTimelineKeyAttribute bit, bool on)
{
if (on)
{
return This | bit;
}
return This & ~bit;
}
public static int GetHighWord(this LiveTimelineKeyAttribute This)
{
return (int)This >> 16;
}
public static LiveTimelineKeyAttribute SetHighWord(this LiveTimelineKeyAttribute This, int val)
{
LiveTimelineKeyAttribute liveTimelineKeyAttribute = (LiveTimelineKeyAttribute)(val << 16);
return liveTimelineKeyAttribute | (This & LiveTimelineKeyAttribute.KeyCommonBitMask);
}
}
}