xine-lib: xine-lib-1.2.13/src/video_out/macosx/XineVideoWindow.h Source File

xine-lib 1.2.13-20230125hg15249

XineVideoWindow.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2007 the xine project
3 *
4 * This file is part of xine, a free video player.
5 *
6 * xine is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * xine is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 *
20 */
21
22#ifndef __HAVE_XINE_VIDEO_WINDOW_H__
23#define __HAVE_XINE_VIDEO_WINDOW_H__
24
25
26#import <Cocoa/Cocoa.h>
27
28
29 typedef enum
30{
31 XINE_FULLSCREEN_OVERSCAN,
32 XINE_FULLSCREEN_CROP
33} XineVideoWindowFullScreenMode;
34
35
36@interface XineVideoWindow : NSWindow
37{
38 int width, height;
39 id /* XineOpenGLView * */ xineView;
40}
41
42- (id) initWithContentSize:(NSSize)size;
43- (id /* XineOpenGLView * */) xineView;
44
45@end
46
47
48/* NSWindow aspect ratio convenience methods */
49
50@interface NSWindow (AspectRatioAdditions)
51
52- (void) setKeepsAspectRatio:(BOOL)flag;
53- (BOOL) keepsAspectRatio;
54
55@end
56
57
58#endif /* __HAVE_XINE_VIDEO_WINDOW_H__ */
XineVideoWindowFullScreenMode
XineVideoWindowFullScreenMode
Definition XineVideoWindow.h:30
XINE_FULLSCREEN_CROP
@ XINE_FULLSCREEN_CROP
Definition XineVideoWindow.h:32
XINE_FULLSCREEN_OVERSCAN
@ XINE_FULLSCREEN_OVERSCAN
Definition XineVideoWindow.h:31
-[NSWindow(AspectRatioAdditions) keepsAspectRatio]
BOOL keepsAspectRatio()
Definition XineVideoWindow.m:177
XineVideoWindow
Definition XineVideoWindow.h:37
XineVideoWindow::xineView
id xineView
Definition XineVideoWindow.h:39
XineVideoWindow::height
int height
Definition XineVideoWindow.h:38
XineVideoWindow::width
int width
Definition XineVideoWindow.h:38