FLEXExplorerToolbar.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // FLEXExplorerToolbar.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 4/4/14.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class FLEXToolbarItem;
  10. @interface FLEXExplorerToolbar : UIView
  11. /// The items to be displayed in the toolbar. Defaults to:
  12. /// globalsItem, hierarchyItem, selectItem, moveItem, closeItem
  13. @property (nonatomic, copy) NSArray<UIView*> *toolbarItems;
  14. /// Toolbar item for selecting views.
  15. /// Users of the toolbar can configure the enabled/selected state and event targets/actions.
  16. @property (nonatomic, strong, readonly) FLEXToolbarItem *selectItem;
  17. /// Toolbar item for presenting a list with the view hierarchy.
  18. /// Users of the toolbar can configure the enabled state and event targets/actions.
  19. @property (nonatomic, strong, readonly) FLEXToolbarItem *hierarchyItem;
  20. /// Toolbar item for moving views.
  21. /// Users of the toolbar can configure the enabled/selected state and event targets/actions.
  22. @property (nonatomic, strong, readonly) FLEXToolbarItem *moveItem;
  23. /// Toolbar item for inspecting details of the selected view.
  24. /// Users of the toolbar can configure the enabled state and event targets/actions.
  25. @property (nonatomic, strong, readonly) FLEXToolbarItem *globalsItem;
  26. /// Toolbar item for hiding the explorer.
  27. /// Users of the toolbar can configure the event targets/actions.
  28. @property (nonatomic, strong, readonly) FLEXToolbarItem *closeItem;
  29. /// A view for moving the entire toolbar.
  30. /// Users of the toolbar can attach a pan gesture recognizer to decide how to reposition the toolbar.
  31. @property (nonatomic, strong, readonly) UIView *dragHandle;
  32. /// A color matching the overlay on color on the selected view.
  33. @property (nonatomic, strong) UIColor *selectedViewOverlayColor;
  34. /// Description text for the selected view displayed below the toolbar items.
  35. @property (nonatomic, copy) NSString *selectedViewDescription;
  36. /// Area where details of the selected view are shown
  37. /// Users of the toolbar can attach a tap gesture recognizer to show additional details.
  38. @property (nonatomic, strong, readonly) UIView *selectedViewDescriptionContainer;
  39. @end