![]() |
pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include "global.h"#include "gui.h"#include "copy.h"#include "data.h"#include "draw.h"#include "mymem.h"#include "move.h"#include "rotate.h"#include "gui-pinout-preview.h"
Go to the source code of this file.
Defines | |
| #define | SENSIBLE_VIEW_SCALE (100. / MIL_TO_COORD (150.)) |
Enumerations | |
| enum | { PROP_ELEMENT_DATA = 1 } |
Functions | |
| static void | pinout_set_view (GhidPinoutPreview *pinout) |
| static void | pinout_set_data (GhidPinoutPreview *pinout, ElementType *element) |
| static void | ghid_pinout_preview_constructed (GObject *object) |
| GObject constructed. | |
| static void | ghid_pinout_preview_finalize (GObject *object) |
| GObject finalise handler. | |
| static void | ghid_pinout_preview_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) |
| GObject property setter function. | |
| static void | ghid_pinout_preview_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) |
| GObject property getter function. | |
| static void | ghid_pinout_preview_class_init (GhidPinoutPreviewClass *klass) |
| GType class initialiser for GhidPinoutPreview. | |
| GType | ghid_pinout_preview_get_type () |
| Function to retrieve GhidPinoutPreview's GType identifier. | |
| GtkWidget * | ghid_pinout_preview_new (ElementType *element) |
| Convenience function to create a new pinout preview. | |
| void | ghid_pinout_preview_get_natural_size (GhidPinoutPreview *pinout, int *width, int *height) |
| Query the natural size of a pinout preview. | |
Variables | |
| static GObjectClass * | ghid_pinout_preview_parent_class = NULL |
| #define SENSIBLE_VIEW_SCALE (100. / MIL_TO_COORD (150.)) |
Definition at line 51 of file gui-pinout-preview.c.
Referenced by pinout_set_view().
| anonymous enum |
Definition at line 130 of file gui-pinout-preview.c.
| static void ghid_pinout_preview_class_init | ( | GhidPinoutPreviewClass * | klass | ) | [static] |
GType class initialiser for GhidPinoutPreview.
| [in] | klass | The GhidPinoutPreviewClass we are initialising |
Definition at line 246 of file gui-pinout-preview.c.
References ghid_pinout_preview_constructed(), ghid_pinout_preview_expose(), ghid_pinout_preview_finalize(), ghid_pinout_preview_get_property(), ghid_pinout_preview_parent_class, ghid_pinout_preview_set_property(), and PROP_ELEMENT_DATA.
Referenced by ghid_pinout_preview_get_type().

| static void ghid_pinout_preview_constructed | ( | GObject * | object | ) | [static] |
GObject constructed.
| [in] | object | The pinout preview object |
Definition at line 148 of file gui-pinout-preview.c.
References ghid_init_drawing_widget(), ghid_pinout_preview_parent_class, and gport.
Referenced by ghid_pinout_preview_class_init().

| static void ghid_pinout_preview_finalize | ( | GObject * | object | ) | [static] |
GObject finalise handler.
| [in] | widget | The GObject being finalized. |
Definition at line 168 of file gui-pinout-preview.c.
References GHID_PINOUT_PREVIEW, ghid_pinout_preview_parent_class, pinout, and pinout_set_data().
Referenced by ghid_pinout_preview_class_init().

| void ghid_pinout_preview_get_natural_size | ( | GhidPinoutPreview * | pinout, |
| int * | width, | ||
| int * | height | ||
| ) |
Query the natural size of a pinout preview.
Definition at line 330 of file gui-pinout-preview.c.
References _GhidPinoutPreview::h_pixels, and _GhidPinoutPreview::w_pixels.
Referenced by ghid_pinout_window_show().
| static void ghid_pinout_preview_get_property | ( | GObject * | object, |
| guint | property_id, | ||
| GValue * | value, | ||
| GParamSpec * | pspec | ||
| ) | [static] |
GObject property getter function.
| [in] | object | The GObject whose properties we are getting |
| [in] | property_id | The numeric id. under which the property was registered with g_object_class_install_property() |
| [out] | value | The GValue in which to return the value of the property |
| [in] | pspec | A GParamSpec describing the property being got |
Definition at line 225 of file gui-pinout-preview.c.
Referenced by ghid_pinout_preview_class_init().
| GType ghid_pinout_preview_get_type | ( | void | ) |
Function to retrieve GhidPinoutPreview's GType identifier.
Definition at line 278 of file gui-pinout-preview.c.
References ghid_pinout_preview_class_init().

| GtkWidget* ghid_pinout_preview_new | ( | ElementType * | element | ) |
Convenience function to create a new pinout preview.
Definition at line 313 of file gui-pinout-preview.c.
References GHID_TYPE_PINOUT_PREVIEW.
Referenced by ghid_pinout_window_show().
| static void ghid_pinout_preview_set_property | ( | GObject * | object, |
| guint | property_id, | ||
| const GValue * | value, | ||
| GParamSpec * | pspec | ||
| ) | [static] |
GObject property setter function.
| [in] | object | The GObject whose properties we are setting |
| [in] | property_id | The numeric id. under which the property was registered with g_object_class_install_property() |
| [in] | value | The GValue the property is being set from |
| [in] | pspec | A GParamSpec describing the property being set |
Definition at line 192 of file gui-pinout-preview.c.
References FALSE, GHID_PINOUT_PREVIEW, pinout, pinout_set_data(), PROP_ELEMENT_DATA, and window.
Referenced by ghid_pinout_preview_class_init().

| static void pinout_set_data | ( | GhidPinoutPreview * | pinout, |
| ElementType * | element | ||
| ) | [static] |
Definition at line 67 of file gui-pinout-preview.c.
References ARC_LOOP, CopyElementLowLevel(), _GhidPinoutPreview::element, ELEMENTLINE_LOOP, END_LOOP, FALSE, FreeElementMemory(), _GhidPinoutPreview::h_pixels, line, MoveElementLowLevel(), PAD_LOOP, pin, PIN_LOOP, pinout_set_view(), SettingType::PinoutOffsetX, SettingType::PinoutOffsetY, SET_FLAG, Settings, and _GhidPinoutPreview::w_pixels.
Referenced by ghid_pinout_preview_finalize(), and ghid_pinout_preview_set_property().

| static void pinout_set_view | ( | GhidPinoutPreview * | pinout | ) | [static] |
Definition at line 53 of file gui-pinout-preview.c.
References _GhidPinoutPreview::element, _GhidPinoutPreview::h_pixels, SettingType::PinoutOffsetX, SettingType::PinoutOffsetY, scale, SENSIBLE_VIEW_SCALE, Settings, _GhidPinoutPreview::w_pixels, _GhidPinoutPreview::x_max, and _GhidPinoutPreview::y_max.
Referenced by pinout_set_data().
GObjectClass* ghid_pinout_preview_parent_class = NULL [static] |
Definition at line 136 of file gui-pinout-preview.c.
Referenced by ghid_pinout_preview_class_init(), ghid_pinout_preview_constructed(), and ghid_pinout_preview_finalize().