PCB-FPW developer documentation based on version: 0.0.11

Functions

dimensions.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, 2010 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.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 successful.
Parameters:
image_filename : is the filename of the image to draw in the window.
footprint_type : is the footprint type.

Definition at line 106 of file dimensions.c.

Referenced by on_dimensions_button_clicked().

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 37 of file dimensions.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 53 of file dimensions.c.

Referenced by dimensions_create_window().

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 69 of file dimensions.c.

Referenced by dimensions_create_window().