PCB-FPW developer documentation based on version: 0.0.11

Functions

dimensions_dialog.c File Reference

Functions for a footprint dimensions preview widget. More...

Go to the source code of this file.

Functions

static void dimensions_window_close_cb (GtkWidget *widget, GtkWidget *dimensions_window)
 Close the dimensions window (destroy the dimensions_window widget).
void dimensions_window_delete_event (GtkWidget *widget, GdkEvent *event)
 Delete the window.
void dimensions_window_expose_event (GtkWidget *widget, GdkEventExpose *event, GdkPixbuf *buf)
 Expose the window.
int dimensions_create_window (gchar *image_filename, gchar *footprint_type)
 Create a dialog window containing a pre-defined pixbuf (from file).

Detailed Description

Functions for a footprint dimensions preview widget.

Author:
Copyright 2007, 2008, 2009 by Bert Timmerman <bert.timmerman@xs4all.nl> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition in file dimensions_dialog.c.


Function Documentation

int dimensions_create_window ( gchar *  image_filename,
gchar *  footprint_type 
)

Create a dialog window containing a pre-defined pixbuf (from file).

The footprint_name variable is used in the dialog title.

Returns:
0 when successfull.
Parameters:
image_filename : is the filename of the image to draw in the window.
footprint_type : is the footprint type.

Definition at line 104 of file dimensions_dialog.c.

References dimensions_window_close_cb(), dimensions_window_delete_event(), and dimensions_window_expose_event().

Here is the call graph for this function:

static void dimensions_window_close_cb ( GtkWidget *  widget,
GtkWidget *  dimensions_window 
) [static]

Close the dimensions window (destroy the dimensions_window widget).

Parameters:
widget : is the caller widget.
dimensions_window : is the widget to be closed.

Definition at line 35 of file dimensions_dialog.c.

Referenced by dimensions_create_window().

void dimensions_window_delete_event ( GtkWidget *  widget,
GdkEvent *  event 
)

Delete the window.

Parameters:
widget : is the widget to be deleted.
event : is the event passed from the caller.

Definition at line 51 of file dimensions_dialog.c.

void dimensions_window_expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
GdkPixbuf *  buf 
)

Expose the window.

Parameters:
widget : is the (drawable) widget to contain the image.
event : is the event passed from the caller.
buf : is the image to (re)draw.

Definition at line 67 of file dimensions_dialog.c.