This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
NeuroBits/widgets/GUI Layout Toolbox 2.3.1/layout/+uiextras/Empty.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (26 sloc)
932 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |