Overlay windows now can be display floating on the screen.

This commit is contained in:
michael starke
2014-12-12 22:13:35 +01:00
parent 0b4a35c6d4
commit 3bff2a4f73
3 changed files with 57 additions and 20 deletions

View File

@@ -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