An open API service indexing awesome lists of open source software.

https://github.com/markandre13/toad-macosx

C++ GUI Library for macOS™ & Fischland Vector Graphics Editor
https://github.com/markandre13/toad-macosx

Last synced: 8 months ago
JSON representation

C++ GUI Library for macOS™ & Fischland Vector Graphics Editor

Awesome Lists containing this project

README

          

Please note: There's GNU GPL v3 stuff within some files.

This is an experimental port of the TOAD C++ GUI Library to Mac OS X's Cocoa

+: done
-: todo

o TWindow
+ create/destroy
+ parentless window
+ end application when last parentless window is closed
+ nest windows
+ background color
+ paint events
+ mouse events
+ getRootPos
- implement doModalLoop (required for modal dialogs)
o TMenuBar
+ place menubutton in popup
- resizing a menubar causes lots windows created and destroyed: stop this!
o TPen
+ draw line
+ draw string
o TFont
+ create/destroy

----------------
a "key window" is the one which currently receives keyboard events.
a "main window" is the one highlighted.

"key window" and "main window" are usually the same. exceptions are small
dialogs which affect the main window, ie. a save file dialog.

an example for a window which doesn't become a key window is NSPanel.

isKeyWindow
canBecomeKeyWindow
default is 'YES'
makeKeyWindow

becomeKeyWindow
resignKeyWindow

acceptsFirstMouse

acceptsFirstResponder
becomeFirstResponder
resignFirstResponder