csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
#ifndef window_h
|
|
#define window_h
|
|
|
|
class WindowBaseImpl;
|
|
|
|
@interface AvnView : NSView<NSTextInputClient, NSDraggingDestination>
|
|
-(AvnView* _Nonnull) initWithParent: (WindowBaseImpl* _Nonnull) parent;
|
|
-(NSEvent* _Nonnull) lastMouseDownEvent;
|
|
-(AvnPoint) translateLocalPoint:(AvnPoint)pt;
|
|
-(void) setSwRenderedFrame: (AvnFramebuffer* _Nonnull) fb dispose: (IUnknown* _Nonnull) dispose;
|
|
-(void) onClosed;
|
|
-(AvnPixelSize) getPixelSize;
|
|
@end
|
|
|
|
@interface AvnWindow : NSWindow <NSWindowDelegate>
|
|
+(void) closeAll;
|
|
-(AvnWindow* _Nonnull) initWithParent: (WindowBaseImpl* _Nonnull) parent;
|
|
-(void) setCanBecomeKeyAndMain;
|
|
-(void) pollModalSession: (NSModalSession _Nonnull) session;
|
|
-(void) restoreParentWindow;
|
|
-(bool) shouldTryToHandleEvents;
|
|
-(void) setEnabled: (bool) enable;
|
|
-(void) showAppMenuOnly;
|
|
-(void) showWindowMenuWithAppMenu;
|
|
-(void) applyMenu:(NSMenu* _Nullable)menu;
|
|
-(double) getScaling;
|
|
@end
|
|
|
|
struct INSWindowHolder
|
|
{
|
|
virtual AvnWindow* _Nonnull GetNSWindow () = 0;
|
|
};
|
|
|
|
struct IWindowStateChanged
|
|
{
|
|
virtual void WindowStateChanged () = 0;
|
|
virtual void StartStateTransition () = 0;
|
|
virtual void EndStateTransition () = 0;
|
|
virtual SystemDecorations Decorations () = 0;
|
|
virtual AvnWindowState WindowState () = 0;
|
|
};
|
|
|
|
#endif /* window_h */
|
|
|