Logo Search packages:      
Sourcecode: inkscape version File versions

dash-selector.cpp File Reference


Detailed Description

Option menu for selecting dash patterns - implementation.

Definition in file dash-selector.cpp.

#include <cstring>
#include <string>
#include <libnr/nr-macros.h>
#include <gtk/gtk.h>
#include <glibmm/i18n.h>
#include "style.h"
#include "dialogs/dialog-events.h"
#include "preferences.h"
#include <gtkmm/optionmenu.h>
#include <gtkmm/adjustment.h>
#include <gtkmm/spinbutton.h>
#include "dash-selector.h"

Go to the source code of this file.

Defines

#define __SP_DASH_SELECTOR_NEW_C__
#define DASH_PREVIEW_LENGTH   80
#define DASH_PREVIEW_WIDTH   2

Functions

static bool all_even_are_zero (double *pattern, int n)
static bool all_odd_are_zero (double *pattern, int n)
static void sp_dash_selector_menu_item_image_realize (Gtk::Image *px, double *pattern)

Variables

static double * builtin_dashes [] = {dash_0, dash_1_1, dash_2_1, dash_4_1, dash_1_2, dash_1_4, NULL}
static double dash_0 [] = {-1.0}
static double dash_1_1 [] = {1.0, 1.0, -1.0}
static double dash_1_2 [] = {1.0, 2.0, -1.0}
static double dash_1_4 [] = {1.0, 4.0, -1.0}
static double dash_2_1 [] = {2.0, 1.0, -1.0}
static double dash_4_1 [] = {4.0, 1.0, -1.0}
static double ** dashes = NULL


Generated by  Doxygen 1.6.0   Back to index