libgeda
|
Scheme API page manipulation procedures. More...
#include <config.h>
#include "libgeda_priv.h"
#include "libgedaguile_priv.h"
#include "scheme_page.x"
Go to the source code of this file.
Functions | |
SCM_SYMBOL (edascm_string_format_sym,"string-format") | |
SCM_DEFINE (active_pages,"%active-pages", 0, 0, 0,(),"Retrieve a list of currently-opened pages") | |
Get a of open pages. | |
SCM_DEFINE (new_page,"%new-page", 1, 0, 0,(SCM filename_s),"Create a new page") | |
Create a new page. | |
SCM_DEFINE (close_page_x,"%close-page!", 1, 0, 0,(SCM page_s),"Close a page.") | |
Close a page. | |
SCM_DEFINE (page_filename,"%page-filename", 1, 0, 0,(SCM page_s),"Get a page's associated filename") | |
Get the filename associated with a page. | |
SCM_DEFINE (set_page_filename_x,"%set-page-filename!", 2, 0, 0,(SCM page_s, SCM filename_s),"Set a page's associated filename") | |
Change the filename associated with a page. | |
SCM_DEFINE (page_contents,"%page-contents", 1, 0, 0,(SCM page_s),"Get a page's contents.") | |
Get a list of objects in a page. | |
SCM_DEFINE (object_page,"%object-page", 1, 0, 0,(SCM obj_s),"Get the page that an object smob belongs to") | |
Get the page an object belongs to. | |
SCM_DEFINE (page_append_x,"%page-append!", 2, 0, 0,(SCM page_s, SCM obj_s),"Add an object to a page.") | |
Add an object to a page. | |
SCM_DEFINE (page_remove_x,"%page-remove!", 2, 0, 0,(SCM page_s, SCM obj_s),"Remove an object from a page.") | |
Remove an object from a page. | |
SCM_DEFINE (page_dirty,"%page-dirty?", 1, 0, 0,(SCM page_s),"Check whether a page has been flagged as changed.") | |
Check whether a page has been flagged as changed. | |
SCM_DEFINE (set_page_dirty_x,"%set-page-dirty!", 2, 0, 0,(SCM page_s, SCM flag_s),"Set whether a page is flagged as changed.") | |
Set a page's changed flag. | |
SCM_DEFINE (page_to_string,"%page->string", 1, 0, 0,(SCM page_s),"Create a string representation of a page.") | |
Create a string representation of a page. | |
SCM_DEFINE (string_to_page,"%string->page", 2, 0, 0,(SCM filename_s, SCM str_s),"Create a new page from a string.") | |
Create a page from a string representation. | |
static void | init_module_geda_core_page () |
Create the (geda core page) Scheme module. | |
void | edascm_init_page () |
Initialise the basic gEDA page manipulation procedures. |
Definition in file scheme_page.c.
SCM_SYMBOL | ( | edascm_string_format_sym | , |
"string-format" | |||
) |
SCM_DEFINE | ( | active_pages | , |
"%active-pages" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Retrieve a list of currently-opened pages" | |||
) |
Definition at line 41 of file scheme_page.c.
SCM_DEFINE | ( | new_page | , |
"%new-page" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM filename_s) | , | ||
"Create a new page" | |||
) |
Definition at line 70 of file scheme_page.c.
SCM_DEFINE | ( | close_page_x | , |
"%close-page!" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s) | , | ||
"Close a page." | |||
) |
Destroys the PAGE structure page_s, freeing all of its resources. Attempting to use page_s after calling this function will cause an error.
page_s | The page to close. |
Definition at line 101 of file scheme_page.c.
SCM_DEFINE | ( | page_filename | , |
"%page-filename" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s) | , | ||
"Get a page's associated filename" | |||
) |
Definition at line 125 of file scheme_page.c.
SCM_DEFINE | ( | set_page_filename_x | , |
"%set-page-filename!" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s, SCM filename_s) | , | ||
"Set a page's associated filename" | |||
) |
page_s | page to set filename for. |
filename_s | new filename for page. |
Definition at line 150 of file scheme_page.c.
SCM_DEFINE | ( | page_contents | , |
"%page-contents" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s) | , | ||
"Get a page's contents." | |||
) |
Definition at line 179 of file scheme_page.c.
SCM_DEFINE | ( | object_page | , |
"%object-page" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get the page that an object smob belongs to" | |||
) |
[in] | obj_s | an OBJECT smob. |
Definition at line 204 of file scheme_page.c.
SCM_DEFINE | ( | page_append_x | , |
"%page-append!" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s, SCM obj_s) | , | ||
"Add an object to a page." | |||
) |
Definition at line 231 of file scheme_page.c.
SCM_DEFINE | ( | page_remove_x | , |
"%page-remove!" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s, SCM obj_s) | , | ||
"Remove an object from a page." | |||
) |
Definition at line 276 of file scheme_page.c.
SCM_DEFINE | ( | page_dirty | , |
"%page-dirty?" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s) | , | ||
"Check whether a page has been flagged as changed." | |||
) |
page_s | page to inspect. |
Definition at line 337 of file scheme_page.c.
SCM_DEFINE | ( | set_page_dirty_x | , |
"%set-page-dirty!" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s, SCM flag_s) | , | ||
"Set whether a page is flagged as changed." | |||
) |
page_s | page to modify. |
flag_s | new flag setting. |
Definition at line 360 of file scheme_page.c.
SCM_DEFINE | ( | page_to_string | , |
"%page->string" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM page_s) | , | ||
"Create a string representation of a page." | |||
) |
page_s | page to convert to a string. |
Definition at line 383 of file scheme_page.c.
SCM_DEFINE | ( | string_to_page | , |
"%string->page" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM filename_s, SCM str_s) | , | ||
"Create a new page from a string." | |||
) |
filename_s | Filename for new page. |
str_s | String to parse to create page. |
Definition at line 415 of file scheme_page.c.
static void init_module_geda_core_page | ( | ) | [static] |
Definition at line 457 of file scheme_page.c.
void edascm_init_page | ( | ) |
Definition at line 477 of file scheme_page.c.