//
//  RCTToolbarSlider.m
//  RCTOMPlayer
//
//  Created by lcg on 2017/8/22.
//  Copyright © 2017年 Anren. All rights reserved.
//

#import "RCTToolbarSlider.h"

@implementation RCTToolbarSlider

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (CGRect)minimumValueImageRectForBounds:(CGRect)bounds
{
    CGRect rect =  [super minimumValueImageRectForBounds:bounds];
    
//    NSLog(@"minimumValueImageRectForBounds:%f %f %f %f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
    
    return CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
}

- (CGRect)maximumValueImageRectForBounds:(CGRect)bounds
{
    CGRect rect = [super maximumValueImageRectForBounds:bounds];
    
//    NSLog(@"maximumValueImageRectForBounds:%f %f %f %f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
    
    return CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
}

- (CGRect)trackRectForBounds:(CGRect)bounds
{
    CGRect rect = [super trackRectForBounds:bounds];
    
//    NSLog(@"trackRectForBounds:%f %f %f %f", rect.origin.x - 15, rect.origin.y, rect.size.width + 30, rect.size.height);
    
    return CGRectMake(rect.origin.x - 13, rect.origin.y, rect.size.width + 26, rect.size.height);
}
//
//- (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value
//{
//    return [super thumbRectForBounds:bounds trackRect:rect value:value];
//    
//    NSLog(@"thumbRectForBounds:%f %f %f %f", rect1.origin.x, rect1.origin.y, rect1.size.width, rect1.size.height);
//    
//    return rect1;
//}

@end
