KMToolbarConfigTBItemView.swift 448 B

1234567891011121314151617181920212223242526
  1. //
  2. // KMToolbarConfigTBItemView.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2024/5/29.
  6. //
  7. import Cocoa
  8. class KMToolbarConfigTBItemView: KMToolbarItemView {
  9. override func draw(_ dirtyRect: NSRect) {
  10. super.draw(dirtyRect)
  11. // Drawing code here.
  12. }
  13. override func hitTest(_ point: NSPoint) -> NSView? {
  14. return self
  15. }
  16. override func updateTrackingAreas() {
  17. /// ...
  18. }
  19. }