Skip to content

Commit

Permalink
gui: Add accessors for SchematicWindow's field 'scrollpan_steps'
Browse files Browse the repository at this point in the history
  • Loading branch information
vzh committed Sep 9, 2024
1 parent 89d3da8 commit 059e61c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libleptongui/include/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,10 @@ schematic_window_get_scrollbars_flag (SchematicWindow *w_current);
void
schematic_window_set_scrollbars_flag (SchematicWindow *w_current,
int val);
int
schematic_window_get_scrollpan_steps (SchematicWindow *w_current);

void
schematic_window_set_scrollpan_steps (SchematicWindow *w_current,
int val);
G_END_DECLS
29 changes: 29 additions & 0 deletions libleptongui/src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2229,3 +2229,32 @@ schematic_window_set_scrollbars_flag (SchematicWindow *w_current,

w_current->scrollbars_flag = val;
}


/*! \brief Get schematic window's field 'scrollpan_steps'.
*
* \param [in] w_current The schematic window.
* \return The value of the field 'scrollpan_steps'.
*/
int
schematic_window_get_scrollpan_steps (SchematicWindow *w_current)
{
g_return_val_if_fail (w_current != NULL, 8);

return w_current->scrollpan_steps;
}


/*! \brief Set schematic window's field 'scrollpan_steps'.
*
* \param [in] w_current The schematic window.
* \param [in] val The new value of the field 'scrollpan_steps'.
*/
void
schematic_window_set_scrollpan_steps (SchematicWindow *w_current,
int val)
{
g_return_if_fail (w_current != NULL);

w_current->scrollpan_steps = val;
}

0 comments on commit 059e61c

Please sign in to comment.