Functions |
| SCM_SYMBOL (attribute_format_sym,"attribute-format") |
| SCM_DEFINE (parse_attrib,"%parse-attrib", 1, 0, 0,(SCM text_s),"Parse attribute name and value from text object.") |
| Parse an attribute text object into name and value strings.
|
| SCM_DEFINE (object_attribs,"%object-attribs", 1, 0, 0,(SCM obj_s),"Get an object's attributes.") |
| Get a list of an object's attributes.
|
| SCM_DEFINE (attrib_attachment,"%attrib-attachment", 1, 0, 0,(SCM attrib_s),"Get the object that an attribute is attached to.") |
| Get the object that an attribute is attached to.
|
| SCM_DEFINE (attach_attrib_x,"%attach-attrib!", 2, 0, 0,(SCM obj_s, SCM attrib_s),"Attach an attribute to an object.") |
| Attach an attribute to an object.
|
| SCM_DEFINE (detach_attrib_x,"%detach-attrib!", 2, 0, 0,(SCM obj_s, SCM attrib_s),"Detach an attribute to an object.") |
| Detach an attribute from an object.
|
| SCM_DEFINE (promotable_attribs,"%promotable-attribs", 1, 0, 0,(SCM complex_s),"Get a component's promotable attributes") |
| Get a complex object's promotable attribs.
|
static void | init_module_geda_core_attrib () |
| Create the (geda core attrib) Scheme module.
|
void | edascm_init_attrib () |
| Initialise the basic gEDA attribute manipulation procedures.
|
Definition in file scheme_attrib.c.
SCM_DEFINE |
( |
attach_attrib_x |
, |
|
|
"%attach-attrib!" |
, |
|
|
2 |
, |
|
|
0 |
, |
|
|
0 |
, |
|
|
(SCM obj_s, SCM attrib_s) |
, |
|
|
"Attach an attribute to an object." |
|
|
) |
| |
- Function Description
- Attach attrib_s to obj_s. The following conditions must be satisfied:
- Neither obj_s nor attrib_s may be already attached as an attribute.
- Both obj_s and attrib_s must be part of the same page and/or complex object. (They can't be "loose" objects).
- attrib_s must be a text object.
These restrictions are intentionally harsher than those of the C API, and are required in order to ensure that the Scheme API is safe.
If attrib_s is already attached to obj_s, does nothing successfully.
- Note:
- Scheme API: Implements the attach-attrib! procedure of the (geda core attrib) module.
- Parameters:
-
obj_s | the object to which to attach an attribute. |
attrib_s | the attribute to attach. |
- Returns:
- obj_s.
Definition at line 152 of file scheme_attrib.c.