MacOSX/Framework/VLCVideoLayer: Publish fillScreen.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 16 Jan 2008 00:42:54 +0000 (00:42 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 16 Jan 2008 00:42:54 +0000 (00:42 +0000)
extras/MacOSX/Framework/Headers/Public/VLCVideoLayer.h
extras/MacOSX/Framework/Sources/VLCVideoLayer.m

index 86dd638..790b438 100644 (file)
@@ -29,4 +29,5 @@
     BOOL hasVideo;
 }
 @property (readonly) BOOL hasVideo;
+@property BOOL fillScreen;
 @end
index 965895f..d26fa6f 100644 (file)
 @implementation VLCVideoLayer
 @synthesize hasVideo;
 
+- (BOOL)fillScreen
+{
+    return [self.layoutManager fillScreenEntirely];
+}
+
+- (void)setFillScreen:(BOOL)fillScreen
+{
+    [self.layoutManager setFillScreenEntirely:fillScreen];
+    [self setNeedsLayout];
+}
+
 @end
+
 /******************************************************************************
  * Implementation VLCVideoLayer  (Private)
  */