@@ -148,10 +148,10 @@ typedef struct {
148148 *
149149 * Stores a lot of different variables to reflect current draw state. Most callback functions/UI elements
150150 * mutate some member in this struct, which then alters the draw state. Accessible through
151- * global function get_draw_state_vars() in draw_global.cpp.
151+ * global function get_draw_state_vars() in draw_global.cpp. It is recommended to name the variable draw_state for consistent form.
152152 *
153- * @note t_draw_struct is used in the same way as a Context, but cannot be a Context because Contexts are
154- * not copyable, while t_draw_struct must be. (t_draw_struct is copied to save a restore of the graphics state
153+ * @note t_draw_state is used in the same way as a Context, but cannot be a Context because Contexts are
154+ * not copyable, while t_draw_state must be. (t_draw_state is copied to save a restore of the graphics state
155155 * when running graphics commands.)
156156 */
157157struct t_draw_state {
@@ -250,7 +250,7 @@ struct t_draw_state {
250250 int sequence_number = 0 ;
251251 float net_alpha = 0.1 ;
252252
253- // /@brief Present congestion cost factor
253+ // /@brief Present congestion cost factor used when drawing. Is a copy of router's current pres_fac
254254 float pres_fac = 1 .;
255255
256256 ManualMovesState manual_moves_state;
@@ -352,7 +352,7 @@ struct t_draw_coords {
352352
353353 /* *
354354 * @brief returns a bounding box for the given pb in the given
355- * clb with absolute coordinates, that can be directtly drawn.
355+ * clb with absolute coordinates, that can be directly drawn.
356356 */
357357 ezgl::rectangle get_absolute_pb_bbox (const ClusterBlockId clb_index, const t_pb_graph_node* pb_gnode);
358358
0 commit comments