Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

text.c

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------- 00002 @COPYRIGHT : 00003 Copyright 1993,1994,1995 David MacDonald, 00004 McConnell Brain Imaging Centre, 00005 Montreal Neurological Institute, McGill University. 00006 Permission to use, copy, modify, and distribute this 00007 software and its documentation for any purpose and without 00008 fee is hereby granted, provided that the above copyright 00009 notice appear in all copies. The author and McGill University 00010 make no representations about the suitability of this 00011 software for any purpose. It is provided "as is" without 00012 express or implied warranty. 00013 ---------------------------------------------------------------------------- */ 00014 00015 #include <volume_io/internal_volume_io.h> 00016 #include <bicpl/objects.h> 00017 00018 #ifndef lint 00019 static char rcsid[] = "$Header: /software/source//libraries/bicpl/Objects/text.c,v 1.10 2000/02/06 15:30:46 stever Exp $"; 00020 #endif 00021 00022 /* ----------------------------- MNI Header ----------------------------------- 00023 @NAME : initialize_text 00024 @INPUT : position 00025 colour 00026 text_font 00027 size 00028 @OUTPUT : text 00029 @RETURNS : 00030 @DESCRIPTION: Initializes the text structure to empty. 00031 @METHOD : 00032 @GLOBALS : 00033 @CALLS : 00034 @CREATED : 1993 David MacDonald 00035 @MODIFIED : 00036 ---------------------------------------------------------------------------- */ 00037 00038 public void initialize_text( 00039 text_struct *text, 00040 Point *position, 00041 Colour colour, 00042 Font_types text_font, 00043 Real size ) 00044 { 00045 if( position != NULL ) 00046 text->origin = *position; 00047 00048 text->colour = colour; 00049 text->font = text_font; 00050 text->size = size; 00051 00052 text->string = create_string( NULL ); 00053 } 00054 00055 /* ----------------------------- MNI Header ----------------------------------- 00056 @NAME : delete_text 00057 @INPUT : text 00058 @OUTPUT : 00059 @RETURNS : 00060 @DESCRIPTION: Deletes the text object. 00061 @METHOD : 00062 @GLOBALS : 00063 @CALLS : 00064 @CREATED : Sep. 25, 1995 David MacDonald 00065 @MODIFIED : 00066 ---------------------------------------------------------------------------- */ 00067 00068 public void delete_text( 00069 text_struct *text ) 00070 { 00071 delete_string( text->string ); 00072 }

Generated on Wed Jul 28 09:10:58 2004 for BICPL by doxygen 1.3.7