libtpcsvg
 All Data Structures Files Functions Variables Enumerations Enumerator Defines
Functions | Variables
svg_vport.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "libtpcsvg.h"
Include dependency graph for svg_vport.c:

Go to the source code of this file.

Functions

int svg_define_viewports (int main_viewport_width, int main_viewport_height, int is_main_title, int is_yaxis_title, int is_xaxis_title, int is_label_area, struct svg_viewports *vp)

Variables

int SVG_INLINE
int SVG_TEST

Function Documentation

int svg_define_viewports ( int  main_viewport_width,
int  main_viewport_height,
int  is_main_title,
int  is_yaxis_title,
int  is_xaxis_title,
int  is_label_area,
struct svg_viewports vp 
)

Define the viewport positions for further use. All measures are in pixels.

Returns:
Returns pointer to the file if successful and NULL in case of an error.
Parameters:
main_viewport_widthMain viewport width (zero if default is used)
main_viewport_heightMain viewport height (zero if default is used)
is_main_titleIs there main title? no=0, yes<>0
is_yaxis_titleIs there y axis title? no=0, yes<>0
is_xaxis_titleIs there x axis title? no=0, yes<>0
is_label_areaIs there label area? no=0, yes<>0
vpPointer to structure which will be filled with viewport positions and sizes

Definition at line 53 of file svg_vport.c.

References svg_viewport_pos::chr_size, svg_viewports::coordinate_area_viewport, svg_viewport_pos::h, svg_viewport_pos::is, svg_viewports::label_area_viewport, svg_viewports::main_title_viewport, svg_viewports::main_viewport, svg_viewports::plot_area_viewport, SVG_TEST, SVG_VIEWPORT_HEIGHT, SVG_VIEWPORT_WIDTH, svg_coord::tick_label, svg_coord::tick_nr, svg_viewport_pos::w, svg_viewport_pos::x, svg_viewports::xaxis_title_viewport, svg_viewport_pos::y, svg_viewports::y, and svg_viewports::yaxis_title_viewport.


Variable Documentation

Definition at line 50 of file svg_file.c.

int SVG_TEST

Definition at line 51 of file svg_file.c.