Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
f6d6bc2497
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (26 sloc) 932 Bytes
function obj = Empty( varargin )
%uiextras.Empty Create an empty space
%
% obj = uiextras.Empty() creates an empty space that can be used to add
% gaps between elements in layouts.
%
% obj = uiextras.Empty(param,value,...) also sets one or more property
% values.
%
% See the <a href="matlab:doc uiextras.Empty">documentation</a> for more detail and the list of properties.
%
% Examples:
% >> f = figure();
% >> box = uiextras.HBox( 'Parent', f );
% >> uicontrol( 'Parent', box, 'Background', 'r' )
% >> uiextras.Empty( 'Parent', box )
% >> uicontrol( 'Parent', box, 'Background', 'b' )
% Copyright 2009-2014 The MathWorks, Inc.
% $Revision: 1115 $ $Date: 2015-05-28 15:16:22 +0100 (Thu, 28 May 2015) $
% Call uix construction function
obj = uix.Empty( varargin{:} );
% Auto-parent
if ~ismember( 'Parent', varargin(1:2:end) )
obj.Parent = gcf();
end
end % uiextras.Empty