//
//  MFStyler+PaddingExtension.swift
//  MVMCoreUI
//
//  Created by Scott Pfeil on 3/25/21.
//  Copyright © 2021 Verizon Wireless. All rights reserved.
//

import Foundation

@objc public extension MFStyler {
    
    @objc static func bridgeGetGutterSizeForApplicationWidth() -> CGFloat {
        Padding.Component.gutterForApplicationWidth
    }
    
    @objc static func bridgeGetGutterSize(for size: CGFloat) -> CGFloat {
        Padding.Component.gutterFor(size: size)
    }
    
    @objc static func bridgeGetColumnSizeForApplicationWidth() -> CGFloat {
        Padding.Component.columnFor(size: MVMCoreUISplitViewController.getApplicationViewWidth())
    }
    
    @objc static func bridgeGetColumnSize(for size: CGFloat) -> CGFloat {
        Padding.Component.columnFor(size: size)
    }
    
    @objc static func bridgeHorizontalPadding(for size: CGFloat) -> CGFloat {
        Padding.Component.horizontalPaddingForSize(size)
    }
    
    @objc static func bridgeVerticalPadding(for size: CGFloat) -> CGFloat {
        Padding.Component.verticalPaddingForSize(size)
    }
    
    @objc static func bridgeSetDefaultMargins(for view: UIView, size: CGFloat, horizontal: Bool = true, vertical: Bool = false) {
        Styler.setDefaultMarginsFor(view, size: size, horizontal: horizontal, vertical: vertical)
    }
    
    @objc static func bridgeSetMargins(for view: UIView, size: CGFloat, horizontal: Bool, top: CGFloat, bottom: CGFloat) {
        Styler.setMarginsFor(view, size: size, horizontal: horizontal ? nil : 0, top: top, bottom: bottom)
    }
}
