FLEXExplorerToolbar.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 FLEXExplorerToolbarItem;
  10. /// Users of the toolbar can configure the enabled state
  11. /// and event target/actions for each item.
  12. @interface FLEXExplorerToolbar : UIView
  13. /// The items to be displayed in the toolbar. Defaults to:
  14. /// globalsItem, hierarchyItem, selectItem, moveItem, closeItem
  15. @property (nonatomic, copy) NSArray<FLEXExplorerToolbarItem *> *toolbarItems;
  16. /// Toolbar item for selecting views.
  17. @property (nonatomic, readonly) FLEXExplorerToolbarItem *selectItem;
  18. /// Toolbar item for presenting a list with the view hierarchy.
  19. @property (nonatomic, readonly) FLEXExplorerToolbarItem *hierarchyItem;
  20. /// Toolbar item for moving views.
  21. /// Its \c sibling is the \c lastTabItem
  22. @property (nonatomic, readonly) FLEXExplorerToolbarItem *moveItem;
  23. /// Toolbar item for presenting the currently active tab.
  24. @property (nonatomic, readonly) FLEXExplorerToolbarItem *recentItem;
  25. /// Toolbar item for presenting a screen with various tools for inspecting the app.
  26. @property (nonatomic, readonly) FLEXExplorerToolbarItem *globalsItem;
  27. /// Toolbar item for hiding the explorer.
  28. @property (nonatomic, readonly) FLEXExplorerToolbarItem *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, readonly) UIView *dragHandle;
  32. /// A color matching the overlay on color on the selected view.
  33. @property (nonatomic) 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, readonly) UIView *selectedViewDescriptionContainer;
  39. @end