text: /*
   * Copyright 2012-present Pixate, Inc.
   *
   * Licensed 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.
   */
  
  //
  //  STKPXStylingMacros.h
  //  Pixate
  //
  //  Created by Paul Colton on 10/7/13.
  //  Copyright (c) 2013 Pixate, Inc. All rights reserved.
  //
  
  #ifndef Pixate_STKPXStylingMacros_h
  #define Pixate_STKPXStylingMacros_h
  
  #import "STKPXMacrosCommon.h"
  #import "UIView+STKPXStyling.h"
  
  // Third-party support macros
  #import "STKPXTitaniumMacros.h"
  
  //
  // Styling Macros
  //
  
  #define STKPX_RECURSIVE 1
  #define STKPX_NONRECURSIVE 0
  
  // TODO: Optimize style updates on re-layout
  #define STKPX_LAYOUT_SUBVIEWS_OVERRIDE             STKPX_LAYOUT_SUBVIEWS_IMP(STKPX_NONRECURSIVE)
  #define STKPX_LAYOUT_SUBVIEWS_OVERRIDE_RECURSIVE   STKPX_LAYOUT_SUBVIEWS_IMP(STKPX_RECURSIVE)
  
  #define STKPX_LAYOUT_SUBVIEWS_IMP(RECURSE) \
  - (void)layoutSubviews	\
  {	\
      callSuper0(SUPER_PREFIX, @selector(layoutSubviews));	\
      [self stkUpdateStylesFromLayoutSubviewsRecursively:RECURSE]; \
  }
  
  #endif // Pixate_STKPXStylingMacros_h
  
  