ReaderMainPagebar.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // ReaderMainPagebar.h
  3. // Reader v2.8.6
  4. //
  5. // Created by Julius Oklamcak on 2011-09-01.
  6. // Copyright © 2011-2015 Julius Oklamcak. All rights reserved.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights to
  11. // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  12. // of the Software, and to permit persons to whom the Software is furnished to
  13. // do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in all
  16. // copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  22. // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  23. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  24. //
  25. #import <UIKit/UIKit.h>
  26. #import "ReaderThumbView.h"
  27. @class ReaderMainPagebar;
  28. @class ReaderTrackControl;
  29. @class ReaderPagebarThumb;
  30. @class ReaderDocument;
  31. @protocol ReaderMainPagebarDelegate <NSObject>
  32. @required // Delegate protocols
  33. - (void)pagebar:(ReaderMainPagebar *)pagebar gotoPage:(NSInteger)page;
  34. @end
  35. @interface ReaderMainPagebar : UIView
  36. @property (nonatomic, weak, readwrite) id <ReaderMainPagebarDelegate> delegate;
  37. - (instancetype)initWithFrame:(CGRect)frame document:(ReaderDocument *)object;
  38. - (void)updatePagebar;
  39. - (void)hidePagebar;
  40. - (void)showPagebar;
  41. @end
  42. #pragma mark -
  43. //
  44. // ReaderTrackControl class interface
  45. //
  46. @interface ReaderTrackControl : UIControl
  47. @property (nonatomic, assign, readonly) CGFloat value;
  48. @end
  49. #pragma mark -
  50. //
  51. // ReaderPagebarThumb class interface
  52. //
  53. @interface ReaderPagebarThumb : ReaderThumbView
  54. - (instancetype)initWithFrame:(CGRect)frame small:(BOOL)small;
  55. @end
  56. #pragma mark -
  57. //
  58. // ReaderPagebarShadow class interface
  59. //
  60. @interface ReaderPagebarShadow : UIView
  61. @end