Skip to content

Commit 5570e39

Browse files
committed
updated comments
1 parent cba0c3c commit 5570e39

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

vpr/src/draw/draw_toggle_functions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
/**
2424
* @brief Generalized callback function for checkboxes.
2525
* Toggles the state of a boolean variable based on the checkbox state.
26+
* @param self ptr to gtkToggleButton
27+
* @param data ptr to t_checkbox_data struct containing the ezgl::application and the boolean to toggle
2628
*/
2729
void toggle_checkbox_cbk(GtkToggleButton* self, t_checkbox_data* data);
2830

vpr/src/draw/draw_types.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ enum e_draw_crit_path {
4040
DRAW_CRIT_PATH_ROUTING_DELAYS
4141
};
4242

43+
/// @brief Whether to draw routed nets or flylines (direct lines between sources and sinks).
4344
enum e_draw_nets {
44-
DRAW_NO_NETS = 0,
4545
DRAW_ROUTED_NETS,
4646
DRAW_FLYLINES
4747
};
@@ -122,22 +122,22 @@ enum e_draw_noc {
122122
DRAW_NOC_LINK_USAGE
123123
};
124124

125-
/// Different types of edges in the routing resource graph
125+
/// Different types of edges in the routing resource graph. Used to determine color of edges when drawn.
126126
enum class e_edge_type {
127-
PIN_TO_OPIN,
128-
PIN_TO_IPIN,
129-
OPIN_TO_CHAN,
130-
CHAN_TO_IPIN,
131-
CHAN_TO_CHAN,
127+
PIN_TO_OPIN, // any pin to output pin
128+
PIN_TO_IPIN, // any pin to input pin
129+
OPIN_TO_CHAN, // output pin to channel
130+
CHAN_TO_IPIN, // channel to input pin
131+
CHAN_TO_CHAN, // channel to channel
132132
NUM_EDGE_TYPES
133133
};
134134

135135
/**
136136
* @brief Structure used to hold data passed into the toggle checkbox callback function.
137137
*/
138138
typedef struct {
139-
ezgl::application* app;
140-
bool* toggle_state;
139+
ezgl::application* app; // Pointer to the ezgl application instance
140+
bool* toggle_state; // Pointer to the boolean variable that will be toggled
141141
} t_checkbox_data;
142142

143143

0 commit comments

Comments
 (0)