How to get started with the code for drawing Blender's user interface?

I’m interested in working with the drawing code responsible for the user interface in the Dope Sheet & Graph Editors (not the Python code for menus/panels, but rather the actual timeline, keyframes, grid, etc.). How would I get started with this?

Thank you!

If you don’t want to start rewriting it on C++, then you’ll have to do it on C.
That is, you need to do everything you need to build the blender, and after that start editing the files here:

  • blender/editors/space_graph
    or more specifically:
  • blender/editors/space_graph/graph_draw.c
  • blender/editors/space_graph/graph_view.c

1 Like

That’s very helpful, thank you!