Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
92875c21
Commit
92875c21
authored
Jan 04, 2008
by
Faustino Osuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/Framework/VLCVideoView.m: Code clean up & implement Objective-C 2.0 @property.
parent
555be297
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
40 deletions
+16
-40
extras/MacOSX/Framework/Headers/Public/VLCVideoView.h
extras/MacOSX/Framework/Headers/Public/VLCVideoView.h
+2
-6
extras/MacOSX/Framework/Sources/VLCVideoView.m
extras/MacOSX/Framework/Sources/VLCVideoView.m
+14
-34
No files found.
extras/MacOSX/Framework/Headers/Public/VLCVideoView.h
View file @
92875c21
...
...
@@ -37,11 +37,7 @@
// with the video?
}
@property
(
assign
)
id
delegate
;
@property
(
copy
)
NSColor
*
backColor
;
@property
BOOL
fillScreen
;
-
(
void
)
setDelegate
:(
id
)
value
;
-
(
id
)
delegate
;
-
(
void
)
setBackColor
:(
NSColor
*
)
value
;
-
(
NSColor
*
)
backColor
;
@end
extras/MacOSX/Framework/Sources/VLCVideoView.m
View file @
92875c21
...
...
@@ -132,16 +132,6 @@
@implementation
VLCVideoView
-
(
BOOL
)
fillScreen
{
return
[
layoutManager
fillScreenEntirely
];
}
-
(
void
)
setFillScreen
:(
BOOL
)
fillScreen
{
[
layoutManager
setFillScreenEntirely
:
fillScreen
];
[[
self
layer
]
setNeedsLayout
];
}
-
(
id
)
initWithFrame
:(
NSRect
)
rect
{
if
(
self
=
[
super
initWithFrame
:
rect
])
...
...
@@ -164,30 +154,6 @@
[
super
dealloc
];
}
-
(
void
)
setDelegate
:(
id
)
value
{
delegate
=
value
;
}
-
(
id
)
delegate
{
return
delegate
;
}
-
(
void
)
setBackColor
:(
NSColor
*
)
value
{
if
(
backColor
!=
value
)
{
[
backColor
release
];
backColor
=
[
value
retain
];
}
}
-
(
NSColor
*
)
backColor
{
return
backColor
;
}
-
(
void
)
drawRect
:(
NSRect
)
aRect
{
[
self
lockFocus
];
...
...
@@ -200,6 +166,20 @@
{
return
YES
;
}
@synthesize
delegate
;
@synthesize
backColor
;
-
(
BOOL
)
fillScreen
{
return
[
layoutManager
fillScreenEntirely
];
}
-
(
void
)
setFillScreen
:(
BOOL
)
fillScreen
{
[
layoutManager
setFillScreenEntirely
:
fillScreen
];
[[
self
layer
]
setNeedsLayout
];
}
@end
/******************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment