style: apply formatting fixes to AppKit code
This commit is contained in:
parent
413df0979d
commit
c2f67c4781
2 changed files with 21 additions and 20 deletions
|
@ -1,7 +1,6 @@
|
||||||
from collections.abc import Callable, Coroutine
|
from collections.abc import Callable, Coroutine
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
|
|
||||||
from corefoundationasyncio import CoreFoundationEventLoop
|
|
||||||
from MediaPlayer import (
|
from MediaPlayer import (
|
||||||
MPChangePlaybackPositionCommandEvent,
|
MPChangePlaybackPositionCommandEvent,
|
||||||
MPMusicPlaybackStatePlaying,
|
MPMusicPlaybackStatePlaying,
|
||||||
|
@ -12,6 +11,8 @@ from MediaPlayer import (
|
||||||
MPRemoteCommandHandlerStatusSuccess,
|
MPRemoteCommandHandlerStatusSuccess,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from corefoundationasyncio import CoreFoundationEventLoop
|
||||||
|
|
||||||
from ...config.model import CocoaReceiverConfig
|
from ...config.model import CocoaReceiverConfig
|
||||||
from ...playback import Playback
|
from ...playback import Playback
|
||||||
from ...playback.state import PlaybackState
|
from ...playback.state import PlaybackState
|
||||||
|
|
|
@ -8,26 +8,26 @@ NSCompositingOperationCopy: Final = 1
|
||||||
NSCompositingOperation = Literal[0, 1]
|
NSCompositingOperation = Literal[0, 1]
|
||||||
|
|
||||||
class NSRect:
|
class NSRect:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def NSMakeRect(x: float, y: float, w: float, h: float) -> NSRect: ...
|
def NSMakeRect(x: float, y: float, w: float, h: float) -> NSRect: ...
|
||||||
|
|
||||||
class NSImage:
|
class NSImage:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def alloc() -> type[NSImage]: ...
|
def alloc() -> type[NSImage]: ...
|
||||||
|
@staticmethod
|
||||||
@staticmethod
|
def initByReferencingFile_(file: str) -> NSImage: ...
|
||||||
def initByReferencingFile_(file: str) -> NSImage: ...
|
@staticmethod
|
||||||
|
def initWithData_(data: bytes) -> NSImage: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def initWithData_(data: bytes) -> NSImage: ...
|
def initWithSize_(size: CGSize) -> NSImage: ...
|
||||||
|
def size(self) -> CGSize: ...
|
||||||
@staticmethod
|
def lockFocus(self) -> None: ...
|
||||||
def initWithSize_(size: CGSize) -> NSImage: ...
|
def unlockFocus(self) -> None: ...
|
||||||
|
def drawInRect_fromRect_operation_fraction_(
|
||||||
def size(self) -> CGSize: ...
|
self,
|
||||||
|
inRect: NSRect,
|
||||||
def lockFocus(self) -> None: ...
|
fromRect: NSRect,
|
||||||
def unlockFocus(self) -> None: ...
|
operation: NSCompositingOperation,
|
||||||
|
fraction: float,
|
||||||
def drawInRect_fromRect_operation_fraction_(self, inRect: NSRect, fromRect: NSRect, operation: NSCompositingOperation, fraction: float) -> None: ...
|
) -> None: ...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue