gschem

a_zoom.c File Reference

#include <config.h>
#include <stdio.h>
#include <math.h>
#include "gschem.h"
Include dependency graph for a_zoom.c:

Go to the source code of this file.

Defines

#define GET_PAGE_WIDTH(w)   ((w)->page_current->right - (w)->page_current->left)
#define GET_PAGE_HEIGHT(w)   ((w)->page_current->bottom - (w)->page_current->top )
#define GET_PAGE_ASPECT_RATIO(w)

Functions

void a_zoom (GSCHEM_TOPLEVEL *w_current, int dir, int selected_from, int pan_flags)
void a_zoom_extents (GSCHEM_TOPLEVEL *w_current, const GList *list, int pan_flags)
void a_zoom_box (GSCHEM_TOPLEVEL *w_current, int pan_flags)
void a_zoom_box_start (GSCHEM_TOPLEVEL *w_current, int w_x, int w_y)
void a_zoom_box_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
void a_zoom_box_motion (GSCHEM_TOPLEVEL *w_current, int w_x, int w_y)
void a_zoom_box_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void a_zoom_box_draw_rubber (GSCHEM_TOPLEVEL *w_current)
void correct_aspect (GSCHEM_TOPLEVEL *w_current)

Define Documentation

#define GET_PAGE_WIDTH (   w)    ((w)->page_current->right - (w)->page_current->left)

Definition at line 39 of file a_zoom.c.

#define GET_PAGE_HEIGHT (   w)    ((w)->page_current->bottom - (w)->page_current->top )

Definition at line 42 of file a_zoom.c.

#define GET_PAGE_ASPECT_RATIO (   w)
Value:
((float) fabs(GET_PAGE_WIDTH (w)) / \
     (float) fabs(GET_PAGE_HEIGHT(w)))

Definition at line 45 of file a_zoom.c.


Function Documentation

void a_zoom ( GSCHEM_TOPLEVEL w_current,
int  dir,
int  selected_from,
int  pan_flags 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 56 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_extents ( GSCHEM_TOPLEVEL w_current,
const GList *  list,
int  pan_flags 
)
Todo:
Finish function documentation!!!
Function Description

Bug:
FIXME? trigger a x_event_motion() call without moving the cursor this will redraw rubberband lines after zooming removed!, it has side effects in the preview of the part dialog need to find another way to trigger x_event_motion() (Werner)

Definition at line 149 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box ( GSCHEM_TOPLEVEL w_current,
int  pan_flags 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 203 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 238 of file a_zoom.c.

void a_zoom_box_end ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 249 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 268 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 286 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 304 of file a_zoom.c.

Here is the call graph for this function:

void correct_aspect ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 319 of file a_zoom.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines