libgeda

o_list.c File Reference

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

Go to the source code of this file.

Functions

OBJECTo_object_copy (TOPLEVEL *toplevel, OBJECT *selected)
GList * o_glist_copy_all (TOPLEVEL *toplevel, const GList *src_list, GList *dest_list)
void o_glist_translate_world (TOPLEVEL *toplevel, int dx, int dy, const GList *list)
void o_glist_rotate_world (TOPLEVEL *toplevel, int x, int y, int angle, const GList *list)
void o_glist_mirror_world (TOPLEVEL *toplevel, int x, int y, const GList *list)
void o_glist_set_color (TOPLEVEL *toplevel, const GList *list, int color)
 Change the color of a list of objects.

Variables

int global_sid

Function Documentation

OBJECT* o_object_copy ( TOPLEVEL toplevel,
OBJECT selected 
)
Todo:
Finish documentation!!!!
Function Description
returns head !!!!!!!!!!!!!!!!!!! look at above.. this returns what was passed in!!!! copies selected to list_head (!! returns new list)
Parameters:
[in]toplevelThe TOPLEVEL object.
[in]selected
Returns:
OBJECT pointer.

Definition at line 47 of file o_list.c.

Here is the call graph for this function:

GList* o_glist_copy_all ( TOPLEVEL toplevel,
const GList *  src_list,
GList *  dest_list 
)
Todo:
Finish function description!!!
Function Description
you need to pass in a head_node for dest_list_head flag is either NORMAL_FLAG or SELECTION_FLAG this function copies the objects in the src GList src_list to the destination GList dest_list this routine assumes that objects in src_list are selected objects are unselected before they are copied and then reselected this is necessary to preserve the color info
Parameters:
[in]toplevelThe TOPLEVEL object.
[in]src_listThe GList to copy from.
[in]dest_listThe GList to copy to.
Returns:
the dest_list GList with objects appended to it.

Definition at line 137 of file o_list.c.

Here is the call graph for this function:

void o_glist_translate_world ( TOPLEVEL toplevel,
int  dx,
int  dy,
const GList *  list 
)
Todo:
Finish function description!!!
Function Description

Definition at line 228 of file o_list.c.

Here is the call graph for this function:

void o_glist_rotate_world ( TOPLEVEL toplevel,
int  x,
int  y,
int  angle,
const GList *  list 
)
Todo:
Finish function description!!!
Function Description

Definition at line 245 of file o_list.c.

Here is the call graph for this function:

void o_glist_mirror_world ( TOPLEVEL toplevel,
int  x,
int  y,
const GList *  list 
)
Todo:
Finish function description!!!
Function Description

Definition at line 262 of file o_list.c.

Here is the call graph for this function:

void o_glist_set_color ( TOPLEVEL toplevel,
const GList *  list,
int  color 
)
Function Description
This function changes the the new color of a list of objects
Parameters:
[in]toplevelThe TOPLEVEL structure.
[in]listThe list of OBJECTs to change color.
[in]colorThe new color.

Definition at line 284 of file o_list.c.

Here is the call graph for this function:


Variable Documentation

global which is used in o_list_copy_all

this is modified here and in o_list.c

Definition at line 48 of file s_basic.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines