Skip to content

Commit 81ab4da

Browse files
improved draw_struct comments, fixed compile warning
1 parent 2484a96 commit 81ab4da

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

vpr/src/draw/draw_types.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
157157
struct 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

vpr/src/draw/search_bar.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ void search_type_changed(GtkComboBox* /*self*/, ezgl::application* app);
4040
/*function below pops up a dialog box with no button, showing the input warning message*/
4141
void warning_dialog_box(const char* message);
4242

43-
//Returns pb ptr of given atom block name
44-
t_pb* find_atom_block_in_pb(std::string name, t_pb* pb);
45-
4643
//Highlights atom block in cluster block
4744
bool highlight_atom_block(AtomBlockId atom_blk, ClusterBlockId cl_blk, ezgl::application* app);
4845

vpr/src/draw/ui_setup.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ void load_net_names(ezgl::application* app);
8686
*/
8787
void hide_widget(std::string widgetName, ezgl::application* app);
8888

89-
/*
89+
/**
9090
* @brief Shows widget with given name; name is id string created in Glade
91-
*
92-
* @param widgetName
93-
* @param app
9491
*/
9592
void show_widget(std::string widgetName, ezgl::application* app);
9693

0 commit comments

Comments
 (0)