Logo Search packages:      
Sourcecode: inkscape version File versions

paint-selector.cpp File Reference


Detailed Description

SPPaintSelector: Generic paint selector widget.

Definition in file paint-selector.cpp.

#include <config.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <libnr/nr-values.h>
#include <libnr/nr-matrix.h>
#include <libnr/nr-matrix-div.h>
#include <libnr/nr-matrix-fns.h>
#include <libnr/nr-matrix-ops.h>
#include <gtk/gtksignal.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkradiobutton.h>
#include <gtk/gtkhseparator.h>
#include <gtk/gtkframe.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkoptionmenu.h>
#include "menu.h"
#include <gtk/gtkmenuitem.h>
#include <gtk/gtkimage.h>
#include "../sp-item.h"
#include "../sp-pattern.h"
#include <glibmm/i18n.h>
#include "../widgets/icon.h"
#include "../inkscape-stock.h"
#include "widgets/widget-sizes.h"
#include "xml/repr.h"
#include "sp-color-selector.h"
#include "sp-color-notebook.h"
#include "sp-linear-gradient-fns.h"
#include "sp-radial-gradient-fns.h"
#include "gradient-selector.h"
#include <inkscape.h>
#include <document-private.h>
#include <desktop-handles.h>
#include <selection.h>
#include <style.h>
#include "paint-selector.h"

Go to the source code of this file.

Defines

#define __SP_PAINT_SELECTOR_C__
#define noSP_PS_VERBOSE
#define XPAD   4
#define YPAD   1

Enumerations

enum  {
  MODE_CHANGED, GRABBED, DRAGGED, RELEASED,
  CHANGED, LAST_SIGNAL
}

Functions

static GtkWidget * ink_pattern_menu (GtkWidget *mnu)
void sp_gradient_selector_attrs_to_gradient (SPGradient *gr, SPPaintSelector *psel)
static void sp_paint_selector_class_init (SPPaintSelectorClass *klass)
static void sp_paint_selector_clear_frame (SPPaintSelector *psel)
static void sp_paint_selector_color_changed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_color_dragged (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_color_grabbed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_color_released (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_destroy (GtkObject *object)
void sp_paint_selector_get_color_alpha (SPPaintSelector *psel, SPColor *color, gfloat *alpha)
void sp_paint_selector_get_gradient_gs2d_matrix_f (SPPaintSelector const *psel, NRMatrix *gs2d)
void sp_paint_selector_get_gradient_position_floatv (SPPaintSelector *psel, gfloat *pos)
void sp_paint_selector_get_gradient_properties (SPPaintSelector *psel, SPGradientUnits *units, SPGradientSpread *spread)
SPGradient * sp_paint_selector_get_gradient_vector (SPPaintSelector *psel)
SPPattern * sp_paint_selector_get_pattern (SPPaintSelector *psel)
GtkType sp_paint_selector_get_type (void)
static void sp_paint_selector_gradient_changed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_gradient_dragged (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_gradient_grabbed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_gradient_released (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_init (SPPaintSelector *slider)
GtkWidget * sp_paint_selector_new (void)
void sp_paint_selector_set_color_alpha (SPPaintSelector *psel, const SPColor *color, float alpha)
void sp_paint_selector_set_gradient_bbox (SPPaintSelector *psel, gdouble x0, gdouble y0, gdouble x1, gdouble y1)
void sp_paint_selector_set_gradient_gs2d_matrix (SPPaintSelector *psel, NR::Matrix const &gs2d)
void sp_paint_selector_set_gradient_gs2d_matrix_f (SPPaintSelector *psel, NRMatrix const *gs2d)
void sp_paint_selector_set_gradient_linear (SPPaintSelector *psel, SPGradient *vector)
void sp_paint_selector_set_gradient_properties (SPPaintSelector *psel, SPGradientUnits units, SPGradientSpread spread)
void sp_paint_selector_set_gradient_radial (SPPaintSelector *psel, SPGradient *vector)
void sp_paint_selector_set_lgradient_position (SPPaintSelector *psel, gdouble x0, gdouble y0, gdouble x1, gdouble y1)
void sp_paint_selector_set_mode (SPPaintSelector *psel, SPPaintSelectorMode mode)
static void sp_paint_selector_set_mode_clone (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_color (SPPaintSelector *psel, SPPaintSelectorMode mode)
static void sp_paint_selector_set_mode_empty (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_gradient (SPPaintSelector *psel, SPPaintSelectorMode mode)
static void sp_paint_selector_set_mode_multiple (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_none (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_pattern (SPPaintSelector *psel, SPPaintSelectorMode mode)
void sp_paint_selector_set_rgradient_position (SPPaintSelector *psel, gdouble cx, gdouble cy, gdouble fx, gdouble fy, gdouble r)
static void sp_paint_selector_set_style_buttons (SPPaintSelector *psel, GtkWidget *active)
static GtkWidget * sp_paint_selector_style_button_add (SPPaintSelector *psel, const gchar *px, SPPaintSelectorMode mode, GtkRadioButton *last, GtkTooltips *tt, const gchar *tip)
static void sp_paint_selector_style_button_toggled (GtkToggleButton *tb, SPPaintSelector *psel)
void sp_paint_selector_write_lineargradient (SPPaintSelector *psel, SPLinearGradient *lg, SPItem *item)
void sp_paint_selector_write_radialgradient (SPPaintSelector *psel, SPRadialGradient *rg, SPItem *item)
static void sp_psel_pattern_change (GtkWidget *widget, SPPaintSelector *psel)
static void sp_psel_pattern_destroy (GtkWidget *widget, SPPaintSelector *psel)
void sp_update_pattern_list (SPPaintSelector *psel, SPPattern *pattern)

Variables

static GtkVBoxClass * parent_class
static guint psel_signals [LAST_SIGNAL] = {0}


Generated by  Doxygen 1.6.0   Back to index