Inkscape
Vector Graphics Editor
selected-style.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  Inkscape
 CMYK to sRGB conversion routines.
 
namespace  Inkscape::UI
 User interface code.
 
namespace  Inkscape::UI::Widget
 Custom widgets.
 

Enumerations

enum  Inkscape::UI::Widget::ui_drop_target_info { Inkscape::UI::Widget::APP_OSWB_COLOR }
 

Functions

static void ss_selection_changed (Inkscape::Selection *, gpointer data)
 
static void ss_selection_modified (Inkscape::Selection *selection, guint flags, gpointer data)
 
static void ss_subselection_changed (gpointer, gpointer data)
 
static Dialog::FillAndStroke * Inkscape::UI::Widget::get_fill_and_stroke_panel (SPDesktop *desktop)
 
template<typename Slot , typename ... Args>
static UI::Widget::PopoverMenuItem * Inkscape::UI::Widget::make_menu_item (Glib::ustring const &label, Slot slot, Args &&...args)
 

Variables

static constexpr int SELECTED_STYLE_SB_WIDTH = 48
 
static constexpr int SELECTED_STYLE_PLACE_WIDTH = 50
 
static constexpr int SELECTED_STYLE_STROKE_WIDTH = 40
 
static constexpr int SELECTED_STYLE_FLAG_WIDTH = 12
 
static constexpr int SELECTED_STYLE_WIDTH = 250
 
static constexpr std::array< double, 15 > _sw_presets
 
static const Glib::ustring type_strings [][2][2]
 

Function Documentation

◆ ss_selection_changed()

static void ss_selection_changed ( Inkscape::Selection ,
gpointer  data 
)
static

◆ ss_selection_modified()

static void ss_selection_modified ( Inkscape::Selection selection,
guint  flags,
gpointer  data 
)
static

Definition at line 100 of file selected-style.cpp.

References data, and ss_selection_changed().

Referenced by Inkscape::UI::Widget::SelectedStyle::setDesktop().

◆ ss_subselection_changed()

static void ss_subselection_changed ( gpointer  ,
gpointer  data 
)
static

Definition at line 109 of file selected-style.cpp.

References data, and ss_selection_changed().

Referenced by Inkscape::UI::Widget::SelectedStyle::setDesktop().

Variable Documentation

◆ _sw_presets

constexpr std::array<double, 15> _sw_presets
staticconstexpr
Initial value:
{
32, 16, 10, 8, 6, 4, 3, 2, 1.5, 1, 0.75, 0.5, 0.25, 0.1}

Definition at line 65 of file selected-style.cpp.

Referenced by Inkscape::UI::Widget::SelectedStyle::make_popup_units(), and Inkscape::UI::Widget::SelectedStyle::on_popup_preset().

◆ SELECTED_STYLE_FLAG_WIDTH

constexpr int SELECTED_STYLE_FLAG_WIDTH = 12
staticconstexpr

◆ SELECTED_STYLE_PLACE_WIDTH

constexpr int SELECTED_STYLE_PLACE_WIDTH = 50
staticconstexpr

◆ SELECTED_STYLE_SB_WIDTH

constexpr int SELECTED_STYLE_SB_WIDTH = 48
staticconstexpr

◆ SELECTED_STYLE_STROKE_WIDTH

constexpr int SELECTED_STYLE_STROKE_WIDTH = 40
staticconstexpr

◆ SELECTED_STYLE_WIDTH

constexpr int SELECTED_STYLE_WIDTH = 250
staticconstexpr

◆ type_strings

const Glib::ustring type_strings[][2][2]
static
Initial value:
= {
{{ _("N/A"), _("Nothing selected")},
{ _("N/A"), _("Nothing selected")}},
{{C_("Fill", "<i>None</i>"), _("No fill, middle-click for black fill")},
{C_("Stroke", "<i>None</i>"), _("No stroke, middle-click for black stroke")}},
{{ _("<b>Unset</b>"), _("Unset fill")},
{ _("<b>Unset</b>"), _("Unset stroke")}},
{{ _("≠"), _("Different fills")},
{ _("≠"), _("Different strokes")}},
{{ _("Pattern"), _("Pattern (fill)")},
{ _("Pattern"), _("Pattern (stroke)")}},
{{ _("Hatch"), _("Pattern (fill)")},
{ _("Hatch"), _("Pattern (stroke)")}},
{{ _("<b>L</b>"), _("Linear gradient (fill)")},
{ _("<b>L</b>"), _("Linear gradient (stroke)")}},
{{ _("<b>R</b>"), _("Radial gradient (fill)")},
{ _("<b>R</b>"), _("Radial gradient (stroke)")}},
{{ _("<b>M</b>"), _("Mesh gradient (fill)")},
{ _("<b>M</b>"), _("Mesh gradient (stroke)")}},
{{ _("<b>C</b>"), _("Flat color (fill)")},
{ _("<b>C</b>"), _("Flat color (stroke)")}}
}

Definition at line 69 of file selected-style.cpp.

Referenced by Inkscape::UI::Widget::SelectedStyle::SelectedStyle(), and Inkscape::UI::Widget::SelectedStyle::update().