Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes and Example with twr-con-window #62

Open
wants to merge 55 commits into
base: dev
Choose a base branch
from

Conversation

JohnDog3112
Copy link
Collaborator

A large collection of changes I made while implementing a window class.

  • Added events for keyboard and mouse that are passed down from a hierarchy. For instance, if window is at the top, it passed keyboard and mouse events down to it's internal d2d_canvas class. This performs operations like focus and offsets mouse coordinates as needed.
  • Added a console interface called ICanvasEvents that allows a console to provide interfaces for registering and preregistering events. This is used in d2d canvas for the mouse and keyboard events talked about above.
  • Created window console that acts as a chrome around the d2d canvas with things like resizing and menu widgets.
    • Menu widgets are based around the Widget class that contains some common functionality for events, drawing, and properties that can be modified by C.
    • Main widgets created are as follows:
      • Menu bars (like the drop down menu buttons at the top of a window)
      • Drop down menus
      • Buttons
      • Separators
      • Check boxes
      • Radio Items

TODO:

  • Look into the potential focus bug I was thinking about
  • Fix some weird vertical centering issues with text
  • Possibly move the menu widgets into their own library/console

… some issues with CLICKED_OFF, and added borders to menus
…es with radio menus, fixed prefix bug in buttons, and added tests for setting widget visibility
…elected, fixed things being unselected when updating, and refactored button class
…rop, and rearranged listProps to also return the type and access fields
…ng shortcut functions for widgets (with comments)
…ted and fixed the flickering when resizing an async programs canvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant