Verify Views files against decompiled, extract embedded types
Fixed files: - SkiaImageButton.cs: Added SVG support with multi-path search - SkiaNavigationPage.cs: Added LinuxApplication.IsGtkMode check - SkiaRefreshView.cs: Added ICommand support (Command, CommandParameter) - SkiaTemplatedView.cs: Added missing using statements Extracted embedded types to separate files (matching decompiled pattern): - From SkiaMenuBar.cs: MenuBarItem, MenuItem, SkiaMenuFlyout, MenuItemClickedEventArgs - From SkiaNavigationPage.cs: NavigationEventArgs - From SkiaTabbedPage.cs: TabItem - From SkiaVisualStateManager.cs: SkiaVisualStateGroupList, SkiaVisualStateGroup, SkiaVisualState, SkiaVisualStateSetter - From SkiaSwipeView.cs: SwipeItem, SwipeStartedEventArgs, SwipeEndedEventArgs - From SkiaFlyoutPage.cs: FlyoutLayoutBehavior (already separate) - From SkiaIndicatorView.cs: IndicatorShape (already separate) - From SkiaBorder.cs: SkiaFrame - From SkiaCarouselView.cs: PositionChangedEventArgs - From SkiaCollectionView.cs: SkiaSelectionMode, ItemsLayoutOrientation - From SkiaContentPresenter.cs: LayoutAlignment Verified matching decompiled: - SkiaContextMenu.cs, SkiaFlexLayout.cs, SkiaGraphicsView.cs Build: 0 errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -296,98 +296,3 @@ public class GlobalHotkeyService : IDisposable
|
||||
public HotkeyModifiers ModifierKeys { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event args for hotkey pressed events.
|
||||
/// </summary>
|
||||
public class HotkeyEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the registration ID.
|
||||
/// </summary>
|
||||
public int Id { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the key.
|
||||
/// </summary>
|
||||
public HotkeyKey Key { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the modifier keys.
|
||||
/// </summary>
|
||||
public HotkeyModifiers Modifiers { get; }
|
||||
|
||||
public HotkeyEventArgs(int id, HotkeyKey key, HotkeyModifiers modifiers)
|
||||
{
|
||||
Id = id;
|
||||
Key = key;
|
||||
Modifiers = modifiers;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hotkey modifier keys.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum HotkeyModifiers
|
||||
{
|
||||
None = 0,
|
||||
Shift = 1 << 0,
|
||||
Control = 1 << 1,
|
||||
Alt = 1 << 2,
|
||||
Super = 1 << 3
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hotkey keys (X11 keysyms).
|
||||
/// </summary>
|
||||
public enum HotkeyKey : uint
|
||||
{
|
||||
// Letters
|
||||
A = 0x61, B = 0x62, C = 0x63, D = 0x64, E = 0x65,
|
||||
F = 0x66, G = 0x67, H = 0x68, I = 0x69, J = 0x6A,
|
||||
K = 0x6B, L = 0x6C, M = 0x6D, N = 0x6E, O = 0x6F,
|
||||
P = 0x70, Q = 0x71, R = 0x72, S = 0x73, T = 0x74,
|
||||
U = 0x75, V = 0x76, W = 0x77, X = 0x78, Y = 0x79,
|
||||
Z = 0x7A,
|
||||
|
||||
// Numbers
|
||||
D0 = 0x30, D1 = 0x31, D2 = 0x32, D3 = 0x33, D4 = 0x34,
|
||||
D5 = 0x35, D6 = 0x36, D7 = 0x37, D8 = 0x38, D9 = 0x39,
|
||||
|
||||
// Function keys
|
||||
F1 = 0xFFBE, F2 = 0xFFBF, F3 = 0xFFC0, F4 = 0xFFC1,
|
||||
F5 = 0xFFC2, F6 = 0xFFC3, F7 = 0xFFC4, F8 = 0xFFC5,
|
||||
F9 = 0xFFC6, F10 = 0xFFC7, F11 = 0xFFC8, F12 = 0xFFC9,
|
||||
|
||||
// Special keys
|
||||
Escape = 0xFF1B,
|
||||
Tab = 0xFF09,
|
||||
Return = 0xFF0D,
|
||||
Space = 0x20,
|
||||
BackSpace = 0xFF08,
|
||||
Delete = 0xFFFF,
|
||||
Insert = 0xFF63,
|
||||
Home = 0xFF50,
|
||||
End = 0xFF57,
|
||||
PageUp = 0xFF55,
|
||||
PageDown = 0xFF56,
|
||||
|
||||
// Arrow keys
|
||||
Left = 0xFF51,
|
||||
Up = 0xFF52,
|
||||
Right = 0xFF53,
|
||||
Down = 0xFF54,
|
||||
|
||||
// Media keys
|
||||
AudioPlay = 0x1008FF14,
|
||||
AudioStop = 0x1008FF15,
|
||||
AudioPrev = 0x1008FF16,
|
||||
AudioNext = 0x1008FF17,
|
||||
AudioMute = 0x1008FF12,
|
||||
AudioRaiseVolume = 0x1008FF13,
|
||||
AudioLowerVolume = 0x1008FF11,
|
||||
|
||||
// Print screen
|
||||
Print = 0xFF61
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user