//
//  XTTableColumnInfo.m
//  XTads
//
//  Created by Rune Berg on 30/10/2018.
//  Copyright © 2018 Rune Berg. All rights reserved.
//

#import "XTTableColumnInfo.h"
#import "XTAllocDeallocCounter.h"


@implementation XTTableColumnInfo

OVERRIDE_ALLOC_FOR_COUNTER
OVERRIDE_DEALLOC_FOR_COUNTER

- (CGFloat)getComputedMinContentRectWidth
{
	CGFloat res = self.minContentRectWidth.doubleValue;
	if (self.maxHorizRulerWidthAsPoints != nil && self.maxHorizRulerWidthAsPoints.doubleValue > res) {
		res = self.maxHorizRulerWidthAsPoints.doubleValue;
	}
	return res;
}

- (CGFloat)getComputedMaxContentRectWidth
{
	CGFloat res = self.maxContentRectWidth.doubleValue;
	if (self.maxHorizRulerWidthAsPoints != nil && self.maxHorizRulerWidthAsPoints.doubleValue > res) {
		res = self.maxHorizRulerWidthAsPoints.doubleValue;
	}
	return res;
}

@end
