mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 17:59:32 +00:00
Overlay windows now can be display floating on the screen.
This commit is contained in:
@@ -12,9 +12,15 @@
|
||||
|
||||
+ (MPOverlayWindowController *)sharedController;
|
||||
|
||||
/*
|
||||
Displays an overlay centered at the given view. The Windows is added as a childwindow to the view window
|
||||
/**
|
||||
* Displays an overlay HUD style image with the given text, image centerd at the given view.
|
||||
* There are two use cases. Either displaying information over a view by providing on,
|
||||
* or displaying information on the main screen by using nil for the view.
|
||||
*
|
||||
* @param imageOrNil Image to be displayed. If nil, no image will be shown.
|
||||
* @param labelOrNil Text to be displayed. If nil, no text will be rendered
|
||||
* @param viewOrNil View to center the Overlay in. If nil, the window will be center and displayed on the main screen
|
||||
*/
|
||||
- (void)displayOverlayImage:(NSImage *)imageOrNil label:(NSString *)labelOrNil atView:(NSView *)view;
|
||||
- (void)displayOverlayImage:(NSImage *)imageOrNil label:(NSString *)labelOrNil atView:(NSView *)viewOrNil;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user