gschem

o_attrib.c File Reference

#include <config.h>
#include <stdio.h>
#include <math.h>
#include "gschem.h"
Include dependency graph for o_attrib.c:

Go to the source code of this file.

Functions

void o_attrib_add_selected (GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected)
void o_attrib_deselect_invisible (GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected)
 Remove invisible attributes of an object from the selection list.
void o_attrib_select_invisible (GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected)
 Add invisible attributes of an object to the selection list.
void o_attrib_toggle_visibility (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
 Change visibility status of attribute object.
void o_attrib_toggle_show_name_value (GSCHEM_TOPLEVEL *w_current, OBJECT *object, int show_name_value)
 Set what part of an attribute is shown.
OBJECT * o_attrib_add_attrib (GSCHEM_TOPLEVEL *w_current, const char *text_string, int visibility, int show_name_value, OBJECT *object)

Function Documentation

void o_attrib_add_selected ( GSCHEM_TOPLEVEL w_current,
SELECTION *  selection,
OBJECT *  selected 
)
Todo:
Finish function documentation!!!
Function Description
Copy all attributes select to the selection list.
Todo:
get a better name

Definition at line 52 of file o_attrib.c.

Here is the call graph for this function:

void o_attrib_deselect_invisible ( GSCHEM_TOPLEVEL w_current,
SELECTION *  selection,
OBJECT *  selected 
)
Function Description

Remove all invisible attributes attached to the given object from the selection list. If hidden text is being shown, this function returns immediately.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]selectionThe SELECTION list to remove from.
[in]objectThe OBJECT whose invisible attributes to remove.

Definition at line 91 of file o_attrib.c.

void o_attrib_select_invisible ( GSCHEM_TOPLEVEL w_current,
SELECTION *  selection,
OBJECT *  selected 
)
Function Description

Add all invisible attributes attached to the given object to the selection list. If hidden text is being shown, this function returns immediately.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]selectionThe SELECTION list to add to.
[in]objectThe OBJECT whose invisible attributes to add.

Definition at line 125 of file o_attrib.c.

void o_attrib_toggle_visibility ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Function Description
This function toggles the visibility status of the attribute object and updates it. The object is erased or redrawn if necessary.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]objectThe attribute object.

Definition at line 157 of file o_attrib.c.

Here is the call graph for this function:

void o_attrib_toggle_show_name_value ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object,
int  show_name_value 
)
Function Description
This function changes what part (name, value or both) of an attribute is shown by its attribute object. The attribute object is erased, updated and finally redrawn.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]objectThe attribute object.
[in]show_name_valueThe new display flag for attribute.

Definition at line 200 of file o_attrib.c.

Here is the call graph for this function:

OBJECT* o_attrib_add_attrib ( GSCHEM_TOPLEVEL w_current,
const char *  text_string,
int  visibility,
int  show_name_value,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 222 of file o_attrib.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines