This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit c43ef21861abe273a7f276ebdc75237755baaf6e Author: Carlos Rovira <[email protected]> AuthorDate: Sun Jun 7 20:17:16 2020 +0200 core-ILayoutChildren: add core ILayoutChildren to trigger layout in children instances --- .../projects/Core/src/main/royale/CoreClasses.as | 1 + .../apache/royale/core/layout/ILayoutChildren.as | 46 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as b/frameworks/projects/Core/src/main/royale/CoreClasses.as index e4a28d7..ff662a0 100644 --- a/frameworks/projects/Core/src/main/royale/CoreClasses.as +++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as @@ -60,6 +60,7 @@ internal class CoreClasses import org.apache.royale.core.layout.IPaddings; IPaddings; import org.apache.royale.core.layout.ILayoutStyleProperties; ILayoutStyleProperties; + import org.apache.royale.core.layout.ILayoutChildren; ILayoutChildren; COMPILE::SWF { diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/layout/ILayoutChildren.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/layout/ILayoutChildren.as new file mode 100644 index 0000000..226c298 --- /dev/null +++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/layout/ILayoutChildren.as @@ -0,0 +1,46 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package org.apache.royale.core.layout +{ + import org.apache.royale.core.IBead; + + /** + * The ILayoutChildren interface is a configurator marker bead + * that indicate to layout classes (i.e: StyledLayoutBase) that child instances must + * refresh layout due to changes in size. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.10.0 + */ + public interface ILayoutChildren extends IBead + { + /** + * trigger the corresponding layout algorithm in all child + * elements. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.10.0 + */ + function executeLayoutChildren():void; + } +}
