libgeda

o_selection.c File Reference

#include <config.h>
#include <stdio.h>
#include <ctype.h>
#include "libgeda_priv.h"
Include dependency graph for o_selection.c:

Go to the source code of this file.

Functions

SELECTIONo_selection_new (void)
 Returns a pointer to a new SELECTION object.
void o_selection_add (TOPLEVEL *toplevel, SELECTION *selection, OBJECT *o_selected)
 Selects the given object and adds it to the selection list.
void o_selection_remove (TOPLEVEL *toplevel, SELECTION *selection, OBJECT *o_selected)
 Removes the given object from the selection list.
void o_selection_print_all (const SELECTION *selection)
 Prints the given selection list.
void o_selection_select (TOPLEVEL *toplevel, OBJECT *object)
 Selects the given object.
void o_selection_unselect (TOPLEVEL *toplevel, OBJECT *object)
 Unselects the given object.

Function Documentation

SELECTION* o_selection_new ( void  )
Returns a pointer to a new SELECTION object.
Returns:
pointer to the new SELECTION object.

Definition at line 38 of file o_selection.c.

Here is the call graph for this function:

void o_selection_add ( TOPLEVEL toplevel,
SELECTION selection,
OBJECT o_selected 
)
Selects the given object and does the needed work to make the
object visually selected. Skip objects that are already selected.
Parameters:
[in]toplevelThe TOPLEVEL object
[in]selectionPointer to the selection list
[in]o_selectedObject to select.

Definition at line 52 of file o_selection.c.

Here is the call graph for this function:

void o_selection_remove ( TOPLEVEL toplevel,
SELECTION selection,
OBJECT o_selected 
)
Removes the given object from the selection list and does the
needed work to make the object visually unselected. It's ok to call this function with an object which is not necessarily selected.
Parameters:
[in]toplevelThe TOPLEVEL object
[in]selectionPointer to the selection list
[in]o_selectedObject to unselect and remove from the list.

Definition at line 71 of file o_selection.c.

Here is the call graph for this function:

void o_selection_print_all ( const SELECTION selection)
Prints the given selection list.
Parameters:
[in]selectionPointer to selection list to print.

Definition at line 90 of file o_selection.c.

void o_selection_select ( TOPLEVEL toplevel,
OBJECT object 
)
Sets the select flag, saves the color, and then selects the
given object
Parameters:
[in]toplevelThe TOPLEVEL object
[in]objectObject to select.

Definition at line 114 of file o_selection.c.

Here is the call graph for this function:

void o_selection_unselect ( TOPLEVEL toplevel,
OBJECT object 
)
Unsets the select flag, restores the original color of the
given object. This function should not be called by anybody outside of this file.
Parameters:
[in]toplevelThe TOPLEVEL object
[in]objectObject to unselect.

Definition at line 132 of file o_selection.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines