VLCVolumeView.m 1012 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*****************************************************************************
  2. * VLCVolumeView.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Author: Tobias Conradi <videolan # tobias-conradi.de>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCVolumeView.h"
  13. @implementation VLCVolumeView
  14. - (CGRect)volumeSliderRectForBounds:(CGRect)bounds
  15. {
  16. CGRect rect = [super volumeSliderRectForBounds:bounds];
  17. // fix height and y origin
  18. rect.size.height = bounds.size.height;
  19. rect.origin.y = bounds.origin.y;
  20. return rect;
  21. }
  22. - (CGRect)routeButtonRectForBounds:(CGRect)bounds
  23. {
  24. CGRect rect = [super routeButtonRectForBounds:bounds];
  25. // fix height and y origin
  26. rect.size.height = bounds.size.height;
  27. rect.origin.y = bounds.origin.y;
  28. return rect;
  29. }
  30. @end