File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 23
23
/**
24
24
* @brief Generalized callback function for checkboxes.
25
25
* 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
26
28
*/
27
29
void toggle_checkbox_cbk (GtkToggleButton * self , t_checkbox_data * data );
28
30
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ enum e_draw_crit_path {
40
40
DRAW_CRIT_PATH_ROUTING_DELAYS
41
41
};
42
42
43
+ // / @brief Whether to draw routed nets or flylines (direct lines between sources and sinks).
43
44
enum e_draw_nets {
44
- DRAW_NO_NETS = 0 ,
45
45
DRAW_ROUTED_NETS,
46
46
DRAW_FLYLINES
47
47
};
@@ -122,22 +122,22 @@ enum e_draw_noc {
122
122
DRAW_NOC_LINK_USAGE
123
123
};
124
124
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.
126
126
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
132
132
NUM_EDGE_TYPES
133
133
};
134
134
135
135
/* *
136
136
* @brief Structure used to hold data passed into the toggle checkbox callback function.
137
137
*/
138
138
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
141
141
} t_checkbox_data;
142
142
143
143
You can’t perform that action at this time.
0 commit comments