widget.hpp 667 B

1234567891011121314151617181920212223242526
  1. #if defined(Hiro_Widget)
  2. namespace hiro {
  3. struct pWidget : pSizable {
  4. Declare(Widget, Sizable)
  5. auto focused() const -> bool;
  6. virtual auto setDroppable(bool droppable) -> void;
  7. auto setEnabled(bool enabled) -> void override;
  8. virtual auto setFocusable(bool focusable) -> void;
  9. auto setFocused() -> void override;
  10. auto setFont(const Font& font) -> void override;
  11. auto setGeometry(Geometry geometry) -> void override;
  12. auto setMouseCursor(const MouseCursor& mouseCursor) -> void;
  13. auto setToolTip(const string& toolTip) -> void;
  14. auto setVisible(bool visible) -> void override;
  15. NSView* cocoaView = nullptr;
  16. bool abstract = false;
  17. };
  18. }
  19. #endif