pcb 4.1.1
An interactive printed circuit board layout editor.

flags.c File Reference

More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "global.h"
#include "data.h"
#include "pcb-printf.h"
#include <glib.h>
Include dependency graph for flags.c:

Go to the source code of this file.

Defines

#define OFFSET_POINTER(a, b)   (&(((a *)0)->b))

Enumerations

enum  {
  FL_SILK = -6, FL_PINS, FL_RATS, FL_VIAS,
  FL_BACK, FL_MASK
}

Functions

int pcb_flag_eq (FlagType *f1, FlagType *f2)
 
static int FlagCurrentStyle (void *data)
static int FlagGrid (void *data)
static int FlagGridSize (void *data)
static int FlagUnitsMm (void *data)
static int FlagUnitsMil (void *data)
static int FlagBuffer (void *data)
static int FlagElementName (void *data)
static int FlagTESTFLAG (void *data)
static int FlagSETTINGS (void *data)
static int FlagMode (void *data)
static int FlagHaveRegex (void *data)
static int FlagLayerShown (void *data)
static int FlagLayerActive (void *data)

Variables

HID_Flag flags_flag_list []

Detailed Description


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 2005 DJ Delorie

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 flags.c.


Define Documentation

#define OFFSET_POINTER (   a,
 
)    (&(((a *)0)->b))

Definition at line 211 of file flags.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
FL_SILK 
FL_PINS 
FL_RATS 
FL_VIAS 
FL_BACK 
FL_MASK 

Definition at line 162 of file flags.c.


Function Documentation

static int FlagBuffer ( void *  data) [static]

Definition at line 114 of file flags.c.

References SettingType::BufferNumber, and Settings.

static int FlagElementName ( void *  data) [static]

Definition at line 120 of file flags.c.

References PCB, and TEST_FLAG.

static int FlagGrid ( void *  data) [static]

Definition at line 84 of file flags.c.

References PCBType::Grid, and PCB.

static int FlagGridSize ( void *  data) [static]

Definition at line 90 of file flags.c.

References PCBType::Grid, and PCB.

static int FlagHaveRegex ( void *  data) [static]

Definition at line 153 of file flags.c.

static int FlagLayerActive ( void *  data) [static]

Definition at line 197 of file flags.c.

References FL_RATS, FL_SILK, PCB, PCBType::RatDraw, and PCBType::SilkActive.

static int FlagMode ( void *  data) [static]

Definition at line 144 of file flags.c.

References SettingType::Mode, Settings, and x.

static int FlagSETTINGS ( void *  data) [static]

Definition at line 137 of file flags.c.

References Settings.

static int FlagTESTFLAG ( void *  data) [static]

Definition at line 130 of file flags.c.

References PCB, and TEST_FLAG.

static int FlagUnitsMil ( void *  data) [static]

Definition at line 105 of file flags.c.

References get_unit_struct(), SettingType::grid_unit, Settings, and u().

Here is the call graph for this function:

static int FlagUnitsMm ( void *  data) [static]

Definition at line 96 of file flags.c.

References get_unit_struct(), SettingType::grid_unit, Settings, and u().

Here is the call graph for this function:

int pcb_flag_eq ( FlagType f1,
FlagType f2 
)

Warning:
ignore unknowns for now: the only place where we use this function, undo.c, won't care.

Definition at line 60 of file flags.c.

References FlagType::f, and FlagType::t.


Variable Documentation

Definition at line 213 of file flags.c.