Inkscape
Vector Graphics Editor
|
Custom widgets. More...
Classes | |
class | AlignmentSelector |
class | AnchorSelector |
class | AttrWidget |
class | Bin |
The Bin is a widget that can hold a single child. More... | |
struct | CairoFragment |
class | CairoGraphics |
class | Canvas |
A widget for Inkscape's canvas. More... | |
class | CanvasGrid |
A Gtk::Grid widget that contains rulers, scrollbars, buttons, and, of course, the canvas. More... | |
class | CanvasNotice |
class | CellRendererItemIcon |
Custom cell renderer for shapes of items in Objects dialog, w/ optional clip/mask icon overlaid. More... | |
class | ColorEntry |
class | ColorNotebook |
class | ColorPage |
class | ColorPageChannel |
class | ColorPalette |
class | ColorPalettePreview |
A Gtk::DrawingArea to preview color palette menu items by showing a small example of the colors. More... | |
class | ColorPicker |
class | ColorPlate |
struct | ColorPoint |
class | ColorPreview |
A color preview widget, used within a picker button and style indicator. More... | |
class | ColorSlider |
class | ColorTagRenderer |
class | ColorWheel |
class | ColorWheelBase |
class | ColorWheelHSL |
class | ColorWheelHSLuv |
class | ComboBoxEntryToolItem |
Formerly a Gtk::ToolItem that wraps a Gtk::ComboBox object. More... | |
class | ComboBoxEnum |
Simplified management of enumerations in the UI as combobox. More... | |
class | ComboToolItem |
class | ComboToolItemColumns |
class | CompletionPopup |
class | CssNameClassInit |
A class that can be inherited to set the CSS name of a Gtk::Widget subclass. More... | |
class | DashSelector |
class | DefaultValueHolder |
Very basic interface for classes that control attributes. More... | |
class | DialogPage |
class | DocumentTemplates |
class | DropDownList |
class | DualSpinScale |
Contains two SpinScales for controlling number-opt-number attributes. More... | |
class | EntityEntry |
class | EntityLineEntry |
class | EntityMultiLineEntry |
class | Entry |
Helperclass for Gtk::Entry widgets. More... | |
class | FillNStroke |
class | FontButton |
A labelled font button for entering font values. More... | |
class | FontCollectionSelector |
A container of widgets for selecting font faces. More... | |
class | FontList |
class | FontSelector |
A container of widgets for selecting font faces. More... | |
class | FontVariants |
A container for selecting font variants (OpenType Features). More... | |
class | FontVariationAxis |
A widget for a single axis: Label and Slider. More... | |
class | FontVariations |
A widget for selecting font variations (OpenType Variations). More... | |
struct | Fragment |
A "fragment" is a rectangle of drawn content at a specfic place. More... | |
class | Frame |
Creates a Gnome HIG style indented frame with bold label See http://developer.gnome.org/hig-book/stable/controls-frames.html.en. More... | |
struct | GLFragment |
class | GLGraphics |
class | GradientEditor |
class | GradientImage |
class | GradientSelector |
class | GradientVectorSelector |
class | GradientWithStops |
class | Graphics |
class | IconComboBox |
class | IconRenderer |
class | ImageProperties |
class | ImageToggler |
class | InkSpinButton |
class | Labelled |
Adds a label with optional icon to another widget. More... | |
class | LabelledColorPicker |
class | LabelledComboBoxEnum |
Simplified management of enumerations in the UI as combobox, plus the functionality of Labelled. More... | |
class | LayerSelector |
class | Licensor |
Widget for specifying a document's license; part of document preferences dialog. More... | |
class | MarkerComboBox |
ComboBox-like class for selecting stroke markers. More... | |
class | MathSpinButton |
A spin button for use with builders. More... | |
class | Memory |
class | Messages |
class | NotebookPage |
A tabbed notebook page for dialogs. More... | |
class | ObjectCompositeSettings |
class | OKWheel |
The color wheel used in the OKHSL picker. More... | |
class | OptGLArea |
A widget that can dynamically switch between a Gtk::DrawingArea and a Gtk::GLArea. More... | |
struct | PageInfo |
class | PageProperties |
class | PageSelector |
class | PageSizePreview |
class | PaintSelector |
Generic paint selector widget. More... | |
struct | palette_t |
class | PatternEditor |
class | PatternItem |
struct | PatternStore |
struct | PickerGeometry |
Used to represent the in RGB gamut colors polygon of the HSLuv color wheel. More... | |
class | PixelStreamer |
class | Point |
A labelled text box, with spin buttons and optional icon, for entering arbitrary coordinate values. More... | |
class | PopoverBin |
Holds a single child widget while allowing a single popover to be displayed over it. More... | |
class | PopoverMenu |
A replacement for GTK3ʼs Gtk::Menu, as removed in GTK4. More... | |
class | PopoverMenuItem |
A replacement for GTK3ʼs Gtk::MenuItem, as removed in GTK4. More... | |
class | PrefCheckButton |
class | PrefColorPicker |
class | PrefCombo |
class | PrefEditFolder |
class | PrefEntry |
class | PrefEntryButtonHBox |
class | PrefEntryFile |
class | PrefEntryFileButtonHBox |
struct | PrefItem |
class | PrefMultiEntry |
class | PrefOpenFolder |
class | PrefRadioButton |
class | PrefRadioButtons |
class | Prefs |
class | PrefSlider |
class | PrefSpinButton |
class | PrefSpinUnit |
class | PrefUnit |
struct | Program |
class | Random |
A labelled text box, with spin buttons and optional icon, for entering arbitrary number values. More... | |
class | RegisteredCheckButton |
class | RegisteredColorPicker |
class | RegisteredEnum |
Simplified management of enumerations in the UI as combobox. More... | |
class | RegisteredFontButton |
class | RegisteredInteger |
class | RegisteredRandom |
class | RegisteredScalar |
class | RegisteredScalarUnit |
class | RegisteredSwitchButton |
class | RegisteredText |
class | RegisteredToggleButton |
class | RegisteredTransformedPoint |
class | RegisteredUnitMenu |
class | RegisteredVector |
class | RegisteredWidget |
class | Registry |
class | RenderingOptions |
A container for selecting rendering options. More... | |
struct | rgb_t |
class | Rotateable |
Widget adjustable by dragging it to rotate away from a zero-change axis. More... | |
class | RotateableStrokeWidth |
class | RotateableSwatch |
class | Ruler |
class | Scalar |
A labelled text box, with spin buttons and optional icon, for entering arbitrary number values. More... | |
class | ScalarUnit |
A labelled text box, with spin buttons and optional icon, for entering the values of various unit types. More... | |
class | SelectedStyle |
Selected style indicator (fill, stroke, opacity). More... | |
struct | Shader |
class | SimpleFilterModifier |
class | SpinButton |
SpinButton widget, that allows entry of simple math expressions (also units, when linked with UnitMenu), and allows entry of both '. More... | |
class | SpinScale |
Wrap the InkSpinScale class and attach an attribute. More... | |
class | Stack |
Like Gtk::Stack, but for holding a stack of Inkscape canvases. More... | |
class | StatusBar |
class | Stores |
class | StrokeStyle |
class | StyleSubject |
class | StyleSwatch |
class | SwatchSelector |
class | Synchronizer |
class | TabStrip |
Widget that implements strip of tabs. More... | |
class | TabsWidget |
Widget that implements the document tab bar. More... | |
class | TemplateList |
class | Text |
A labelled text box, with optional icon, for entering arbitrary number values. More... | |
class | Texture |
class | TextureCache |
class | UnitMenu |
A drop down menu for choosing unit types. More... | |
class | UnitTracker |
class | Updater |
class | VAO |
class | WidgetVfuncsClassInit |
A class you can inherit to access GTK4ʼs Widget.css_changed & .focus vfuncs, missing in gtkmm4. More... | |
class | XmlTreeView |
class | ZoomCorrRuler |
class | ZoomCorrRulerSlider |
Typedefs | |
using | GShader = Shader< GL_GEOMETRY_SHADER > |
using | VShader = Shader< GL_VERTEX_SHADER > |
using | FShader = Shader< GL_FRAGMENT_SHADER > |
using | RenderNodePtr = std::unique_ptr< GskRenderNode, Util::Deleter< gsk_render_node_unref > > |
using | OverlayState = int |
Enumerations | |
enum | DefaultValueType { T_NONE , T_DOUBLE , T_VECT_DOUBLE , T_BOOL , T_UINT , T_CHARPTR } |
enum | Columns { ColID = 0 , ColName , ColIcon , ColSearch } |
enum | { COMBO_COL_LABEL = 0 , COMBO_COL_STOCK = 1 , COMBO_COL_PATTERN = 2 , COMBO_COL_MESH = COMBO_COL_PATTERN , COMBO_COL_SEP = 3 , COMBO_N_COLS = 4 } |
enum | RSU_UserUnits { RSU_none , RSU_x , RSU_y } |
enum | ui_drop_target_info { APP_OSWB_COLOR } |
enum | PaintType { SS_NA , SS_NONE , SS_UNSET , SS_MANY , SS_PATTERN , SS_HATCH , SS_LGRADIENT , SS_RGRADIENT , SS_MGRADIENT , SS_COLOR } |
enum | FillOrStroke { SS_FILL , SS_STROKE } |
enum | OverlayStates : OverlayState { OVERLAY_NONE = 0 , OVERLAY_CLIP = 1 , OVERLAY_MASK = 2 , OVERLAY_BOTH = 3 } |
Functions | |
static void | ruler_snap_new_guide (SPDesktop *desktop, Geom::Point &event_dt, Geom::Point &normal) |
static void | set_adjustment (Gtk::Adjustment *adj, double l, double u, double ps, double si, double pi) |
static Geom::Point | cap_length (Geom::Point const &pt, double max) |
static double | profile (double r) |
static Geom::Point | apply_profile (Geom::Point const &pt) |
auto | coarsen (const Cairo::RefPtr< Cairo::Region > ®ion, int min_size, int glue_size, double min_fullness) |
static std::optional< Geom::Dim2 > | bisect (Geom::IntRect const &rect, int tile_size) |
static bool | have_gltexstorage () |
static bool | have_glinvalidateteximage () |
template<> | |
std::unique_ptr< Updater > | Updater::create< Updater::Strategy::Responsive > () |
template<> | |
std::unique_ptr< Updater > | Updater::create< Updater::Strategy::FullRedraw > () |
template<> | |
std::unique_ptr< Updater > | Updater::create< Updater::Strategy::Multiscale > () |
void | region_to_path (Cairo::RefPtr< Cairo::Context > const &cr, Cairo::RefPtr< Cairo::Region > const ®) |
Turn a Cairo region into a path on a given Cairo context. | |
Cairo::RefPtr< Cairo::Region > | shrink_region (Cairo::RefPtr< Cairo::Region > const ®, int d, int t=0) |
Shrink a region by d/2 in all directions, while also translating it by (d/2 + t, d/2 + t). | |
Colors::Color | checkerboard_darken (Colors::Color color) |
auto | unioned (Cairo::RefPtr< Cairo::Region > a, Cairo::RefPtr< Cairo::Region > const &b) |
auto | rgb_to_array (uint32_t rgb) |
auto | rgba_to_array (uint32_t rgba) |
auto | premultiplied (std::array< float, 4 > arr) |
std::array< float, 3 > | checkerboard_darken (uint32_t rgba) |
static auto | make_menu () |
static Geom::Interval | get_range (Gtk::Scrollbar const &sb) |
void | circle (const Cairo::RefPtr< Cairo::Context > &ctx, const Geom::Point ¢er, double radius) |
static void | draw_point_indicator (const Cairo::RefPtr< Cairo::Context > &ctx, const Geom::Point &point, double size) |
static void | draw_color_plate (const Cairo::RefPtr< Cairo::Context > &ctx, const Geom::Rect &area, double radius, const Cairo::RefPtr< Cairo::ImageSurface > &preview, bool circular) |
static Geom::Point | get_color_coordinates (double val1, double val2, bool circular) |
static void | set_color_helper (Color &color, int channel1, int channel2, double x, double y, bool disc) |
static Cairo::RefPtr< Cairo::ImageSurface > | create_color_preview (int size, const std::function< void(std::vector< std::uint32_t > &, int width)> &draw) |
static Cairo::RefPtr< Cairo::ImageSurface > | create_color_plate (unsigned int resolution, const Color &base, int channel1, int channel2) |
static Cairo::RefPtr< Cairo::ImageSurface > | create_color_wheel (unsigned int resolution, const Color &base, int channel1, int channel2) |
static Geom::Point | screen_to_local (const Geom::Rect &active, Geom::Point point, bool circular, bool *inside=nullptr) |
static Geom::Point | local_to_screen (const Geom::Rect &active, Geom::Point point, bool circular) |
Geom::Rect | round_rect (const Cairo::RefPtr< Cairo::Context > &ctx, Geom::Rect rect, double radius) |
Cairo::RefPtr< Cairo::Pattern > | create_checkerboard_pattern (double tx, double ty) |
static Geom::OptIntRect | get_active_area (int full_width, int full_height) |
static double | get_value_at (Gtk::Widget const &self, double const x, double const y) |
Glib::RefPtr< Gdk::Pixbuf > | _make_checkerboard (uint32_t dark, uint32_t light, unsigned scale, std::vector< uint32_t > &buffer) |
Generate a checkerboard pattern with the given colors. | |
static void | draw_slider_thumb (const Cairo::RefPtr< Cairo::Context > &ctx, const Geom::Point &location, double size, const Gdk::RGBA &fill, const Gdk::RGBA &stroke, int device_scale) |
static std::pair< ColorWheel *, bool > | create_color_wheel_helper (Type type, bool create_widget) |
ColorWheel * | create_managed_color_wheel (Type type) |
bool | can_create_color_wheel (Type type) |
static void | strip_trailing (Glib::ustring &s, char const c) |
void | unset_recursive (const char *attribute, SPObject *object) |
static int | index_to_font_size (int index) |
static int | font_size_to_index (double size) |
Glib::ustring | get_full_name (const Inkscape::FontInfo &font_info) |
Glib::ustring | get_alt_name (const Glib::ustring &fontspec) |
CellFontRenderer & | get_renderer (Gtk::CellRenderer &renderer) |
Glib::ustring | get_font_name (Gtk::TreeIter< Gtk::TreeRow > &iter) |
void | get_cell_data_func (Gtk::CellRenderer *cell_renderer, Gtk::TreeModel::ConstRow row) |
const char * | get_sort_icon (Inkscape::FontOrder order) |
void | set_grid_cell_size (Gtk::CellRendererText *renderer, int font_size_percent) |
Glib::ustring | get_font_icon (const FontInfo &font, bool missing_font) |
std::pair< Glib::ustring, Glib::ustring > | get_axis_name (const std::string &tag, const Glib::ustring &abbr) |
void | set_icon (Gtk::Button &btn, char const *pixmap) |
Glib::RefPtr< Gdk::Pixbuf > | draw_circle (int size, Colors::Color color) |
Glib::RefPtr< Gdk::Pixbuf > | get_stop_pixmap (SPStop *stop) |
Glib::ustring | get_repeat_icon (SPGradientSpread mode) |
double | line_angle (const Geom::Line &line) |
std::string | get_stop_template_path (const char *filename) |
static double | lerp (double v0, double v1, double t0, double t1, double t) |
static ColorPoint | lerp (ColorPoint const &v0, ColorPoint const &v1, double t0, double t1, double t) |
static double | luminance (Color const &color) |
static Geom::Point | to_pixel_coordinate (Geom::Point const &point, double scale, double resize) |
Convert a point of the gamut color polygon (Luv) to pixel coordinates. | |
static Geom::Point | from_pixel_coordinate (Geom::Point const &point, double scale, double resize) |
Convert a point in pixels on the widget to Luv coordinates. | |
static std::vector< Geom::Point > | to_pixel_coordinate (std::vector< Geom::Point > const &points, double scale, double resize) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
static void | draw_vertical_padding (ColorPoint p0, ColorPoint p1, int padding, bool pad_upwards, guint32 *buffer, int height, int stride) |
Paints padding for an edge of the triangle, using the (vertically) closest point. | |
static Geom::IntPoint | _getMargin (Gtk::Allocation const &allocation) |
static Geom::IntPoint | _getAllocationDimensions (Gtk::Allocation const &allocation) |
static int | _getAllocationSize (Gtk::Allocation const &allocation) |
static double | safe_frac (double x) |
static void | trim_zeros (std::string &ret) |
static double | get_accel_factor (Gdk::ModifierType state) |
static char const * | get_text (Gtk::Editable const &editable) |
static cairo_surface_t * | create_separator (double alpha, int width, int height, int device_scale) |
Glib::ustring | get_attrib (SPMarker *marker, const char *attrib) |
double | get_attrib_num (SPMarker *marker, const char *attrib) |
SPMarker * | find_marker (SPDocument *document, const Glib::ustring &marker_id) |
static void | dialogLoggingCallback (char const *, GLogLevelFlags, char const *messageText, gpointer user_data) |
static std::tuple< int, Glib::ustring, std::string > | get_sorter (PaperSize const &page) |
void | rounded_rectangle (const Cairo::RefPtr< Cairo::Context > &cr, double x, double y, double w, double h, double r) |
void | set_source_rgba (const Cairo::RefPtr< Cairo::Context > &ctx, unsigned int rgba) |
static bool | isPaintModeGradient (PaintSelector::Mode mode) |
static std::vector< SPMeshGradient * > | ink_mesh_list_get (SPDocument *source) |
Returns a list of meshes in the defs of the given source document as a vector. | |
static void | sp_mesh_menu_build (GtkWidget *combo, std::vector< SPMeshGradient * > &mesh_list, SPDocument *) |
Adds menu items for mesh list. | |
static void | sp_mesh_list_from_doc (GtkWidget *combo, SPDocument *, SPDocument *source, SPDocument *) |
Pick up all meshes from source, except those that are in current_doc (if non-NULL), and add items to the mesh menu. | |
static void | ink_mesh_menu_populate_menu (GtkWidget *combo, SPDocument *doc) |
static GtkWidget * | ink_mesh_menu (GtkWidget *combo) |
static double | slider_to_gap (double index, double upper) |
static double | gap_to_slider (double gap, double upper) |
static int | slider_to_tile (double index) |
static double | tile_to_slider (int tile) |
Glib::ustring | get_attrib (SPPattern *pattern, const char *attrib) |
double | get_attrib_num (SPPattern *pattern, const char *attrib) |
void | sort_patterns (std::vector< Glib::RefPtr< PatternItem > > &list) |
Glib::RefPtr< PatternItem > | create_pattern_item (PatternManager &manager, SPPattern *pattern, int tile_size, double scale) |
std::vector< Glib::RefPtr< PatternItem > > | create_pattern_items (PatternManager &manager, const std::vector< SPPattern * > &list, int tile_size, double device_scale) |
SPPattern * | get_pattern (const PatternItem &item, SPDocument *document) |
void | regenerate_tile_images (PatternManager &manager, PatternStore &pat_store, int tile_size, double device_scale, SPDocument *current) |
static void | draw_text (cairo_t *cr, Geom::Point loc, const char *txt, bool bottom=false, double fontsize=ZoomCorrRuler::textsize, std::string fontdesc="Sans") |
static void | draw_number (cairo_t *cr, Geom::Point pos, double num) |
Gtk::Widget * | get_scrollable_ancestor (Gtk::Widget *widget) |
Get the first ancestor which is scrollable. | |
Gtk::Widget const * | get_scrollable_ancestor (Gtk::Widget const *const widget) |
Get the first ancestor which is scrollable. | |
static Dialog::FillAndStroke * | get_fill_and_stroke_panel (SPDesktop *desktop) |
template<typename Slot , typename ... Args> | |
static UI::Widget::PopoverMenuItem * | make_menu_item (Glib::ustring const &label, Slot slot, Args &&...args) |
static Gtk::Label * | spw_label (Gtk::Grid *table, const gchar *label_text, int col, int row, Gtk::Widget *target) |
Creates a label widget with the given text, at the given col, row position in the table. | |
static Gtk::Box * | spw_hbox (Gtk::Grid *table, int width, int col, int row) |
Creates a horizontal layout manager with 4-pixel spacing between children and space for 'width' columns. | |
std::vector< double > | parse_pattern (const Glib::ustring &input) |
static double | calcScaleLineWidth (const double width_typed, SPItem *const item, Inkscape::Util::Unit const *const unit) |
static void | buildGroupedItemList (SPObject *element, std::vector< SPObject * > &simple_list) |
Recursively builds a simple list from an arbitrarily complex selection of items and grouped items. | |
void | style_obs_callback (StyleSwatch &_style_swatch, Preferences::Entry const &val) |
Watches for changes in the observed style pref. | |
void | tool_obs_callback (StyleSwatch &_style_swatch, Preferences::Entry const &val) |
Watches whether the tool uses the current style. | |
static std::shared_ptr< TabWidgetDrag > | get_tab_drag (Gtk::DropTarget &droptarget) |
static std::shared_ptr< TabDrag > | get_tab_drag (Gtk::DropTarget &droptarget) |
static SPDesktop * | consume_tab_return_desktop (std::shared_ptr< Tab > tab) |
Variables | |
static const auto | grid_types |
static unsigned int | MAX_COMPONENTS = 6 |
static constexpr int | height = 2 |
static constexpr int | dx = 1 |
constexpr bool | TEST_TIMING = false |
static gchar const * | undo_F_label_1 = "fill:flatcolor:1" |
static gchar const * | undo_F_label_2 = "fill:flatcolor:2" |
static gchar const * | undo_S_label_1 = "stroke:flatcolor:1" |
static gchar const * | undo_S_label_2 = "stroke:flatcolor:2" |
static gchar const * | undo_F_label = undo_F_label_1 |
static gchar const * | undo_S_label = undo_S_label_1 |
FontListColumnModel | g_column_model |
static std::array< int, 38 > | g_font_sizes |
static constexpr int const | SIZE = 400 |
static constexpr int const | OUTER_CIRCLE_RADIUS = 190 |
static constexpr double | MAX_HUE = 360.0 |
static constexpr double | MAX_SATURATION = 100.0 |
static constexpr double | MAX_LIGHTNESS = 100.0 |
static constexpr double | MIN_HUE = 0.0 |
static constexpr double | MIN_SATURATION = 0.0 |
static constexpr double | MIN_LIGHTNESS = 0.0 |
static constexpr double | OUTER_CIRCLE_DASH_SIZE = 10.0 |
static constexpr double | VERTEX_EPSILON = 0.01 |
static constexpr double | marker_radius = 4.0 |
static constexpr double | focus_line_width = 1.0 |
static constexpr double | focus_padding = 3.0 |
static auto const | focus_dash = std::vector{1.5} |
constexpr double | half_width = 5.0 |
auto | ink_spinbutton_css |
constexpr int | timeout_click = 500 |
constexpr int | timeout_repeat = 50 |
static Glib::RefPtr< Gdk::Cursor > | g_resizing_cursor |
static Glib::RefPtr< Gdk::Cursor > | g_text_cursor |
static constexpr auto | cssName = "LayerSelector" |
const struct rdf_license_t | _proprietary_license |
const struct rdf_license_t | _other_license |
static Cairo::RefPtr< Cairo::Surface > | g_image_none |
static Cairo::RefPtr< Cairo::Surface > | g_bad_marker |
const char * | g_linked = "entries-linked-symbolic" |
const char * | g_unlinked = "entries-unlinked-symbolic" |
const char * | s_linked = "scale-linked-symbolic" |
const char * | s_unlinked = "scale-unlinked-symbolic" |
static constexpr int | ITEM_WIDTH = 45 |
const double | ANGLE_STEP = 15.0 |
static Glib::ustring | all_templates = "All templates" |
Custom widgets.
Pattern editor widget for "Fill and Stroke" dialog.
Image properties widget for "Fill and Stroke" dialog.
A simple gradient preview.
Gradient editor widget for "Fill and Stroke" dialog.
This namespace contains custom user interface widgets used thorough Inkscape.
Author: Michael Kowalski
Copyright (C) 2020-2021 Michael Kowalski
Released under GNU GPL v2+, read the file 'COPYING' for more information.
Author: Lauris Kaplinski lauri.nosp@m.s@ka.nosp@m.plins.nosp@m.ki.c.nosp@m.om
Copyright (C) 2001-2002 Lauris Kaplinski Copyright (C) 2001 Ximian, Inc.
Released under GNU GPL v2+, read the file 'COPYING' for more information.
Copyright (C) 2023 Michael Kowalski
Released under GNU GPL v2+, read the file 'COPYING' for more information.
Copyright (C) 2022 Michael Kowalski
Released under GNU GPL v2+, read the file 'COPYING' for more information.
using Inkscape::UI::Widget::FShader = typedef Shader<GL_FRAGMENT_SHADER> |
Definition at line 34 of file glgraphics.h.
using Inkscape::UI::Widget::GShader = typedef Shader<GL_GEOMETRY_SHADER> |
Definition at line 32 of file glgraphics.h.
using Inkscape::UI::Widget::OverlayState = typedef int |
Definition at line 27 of file shapeicon.h.
using Inkscape::UI::Widget::RenderNodePtr = typedef std::unique_ptr<GskRenderNode, Util::Deleter<gsk_render_node_unref> > |
Definition at line 38 of file ink-ruler.h.
using Inkscape::UI::Widget::VShader = typedef Shader<GL_VERTEX_SHADER> |
Definition at line 33 of file glgraphics.h.
anonymous enum |
Enumerator | |
---|---|
COMBO_COL_LABEL | |
COMBO_COL_STOCK | |
COMBO_COL_PATTERN | |
COMBO_COL_MESH | |
COMBO_COL_SEP | |
COMBO_N_COLS |
Definition at line 206 of file paint-selector.h.
Enumerator | |
---|---|
ColID | |
ColName | |
ColIcon | |
ColSearch |
Definition at line 18 of file completion-popup.cpp.
Enumerator | |
---|---|
T_NONE | |
T_DOUBLE | |
T_VECT_DOUBLE | |
T_BOOL | |
T_UINT | |
T_CHARPTR |
Definition at line 23 of file attr-widget.h.
Enumerator | |
---|---|
SS_FILL | |
SS_STROKE |
Definition at line 64 of file selected-style.h.
Enumerator | |
---|---|
OVERLAY_NONE | |
OVERLAY_CLIP | |
OVERLAY_MASK | |
OVERLAY_BOTH |
Definition at line 28 of file shapeicon.h.
Enumerator | |
---|---|
SS_NA | |
SS_NONE | |
SS_UNSET | |
SS_MANY | |
SS_PATTERN | |
SS_HATCH | |
SS_LGRADIENT | |
SS_RGRADIENT | |
SS_MGRADIENT | |
SS_COLOR |
Definition at line 51 of file selected-style.h.
Enumerator | |
---|---|
RSU_none | |
RSU_x | |
RSU_y |
Definition at line 226 of file registered-widget.h.
Enumerator | |
---|---|
APP_OSWB_COLOR |
Definition at line 122 of file selected-style.cpp.
|
inlinestatic |
Definition at line 827 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::_updatePolygon(), and Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw().
|
inlinestatic |
Definition at line 832 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::on_click_pressed(), and Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw().
|
static |
Definition at line 818 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::_set_from_xy(), Inkscape::UI::Widget::ColorWheelHSLuv::_updatePolygon(), Inkscape::UI::Widget::ColorWheelHSLuv::on_click_pressed(), and Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw().
Glib::RefPtr< Gdk::Pixbuf > Inkscape::UI::Widget::_make_checkerboard | ( | uint32_t | dark, |
uint32_t | light, | ||
unsigned | scale, | ||
std::vector< uint32_t > & | buffer | ||
) |
Generate a checkerboard pattern with the given colors.
Definition at line 117 of file color-slider.cpp.
References scale.
Referenced by Inkscape::UI::Widget::ColorSlider::draw_func().
|
static |
Definition at line 853 of file canvas.cpp.
References Geom::EPSILON, Geom::Point::length(), and profile().
|
static |
Definition at line 2112 of file canvas.cpp.
References Geom::GenericRect< C >::height(), tile_size, Geom::GenericRect< C >::width(), Geom::X, and Geom::Y.
|
static |
Recursively builds a simple list from an arbitrarily complex selection of items and grouped items.
Definition at line 1195 of file stroke-style.cpp.
References buildGroupedItemList(), and SPObject::firstChild().
Referenced by buildGroupedItemList(), and Inkscape::UI::Widget::StrokeStyle::updateAllMarkers().
|
inlinestatic |
Definition at line 971 of file stroke-style.cpp.
References Inkscape::Util::Unit::abbr, Inkscape::Util::Quantity::convert(), Geom::Affine::descrim(), SPItem::i2doc_affine(), item, scale, SPStyle::stroke_width, SPObject::style, Inkscape::Util::Unit::type, and Inkscape::Util::UNIT_TYPE_LINEAR.
Referenced by Inkscape::UI::Widget::StrokeStyle::setStrokeWidth().
bool Inkscape::UI::Widget::can_create_color_wheel | ( | Type | type | ) |
Definition at line 134 of file color-wheel-factory.cpp.
References create_color_wheel_helper().
Referenced by Inkscape::UI::Widget::ColorPage::ColorPage().
|
static |
Definition at line 840 of file canvas.cpp.
References Geom::Point::length().
Colors::Color Inkscape::UI::Widget::checkerboard_darken | ( | Colors::Color | color | ) |
Definition at line 45 of file util.cpp.
References Inkscape::Colors::make_contrasted_color(), and Inkscape::Colors::Color::stealOpacity().
Referenced by checkerboard_darken().
|
inline |
Definition at line 57 of file util.h.
References checkerboard_darken().
void Inkscape::UI::Widget::circle | ( | const Cairo::RefPtr< Cairo::Context > & | ctx, |
const Geom::Point & | center, | ||
double | radius | ||
) |
Definition at line 23 of file color-plate.cpp.
References Geom::Point::x(), and Geom::Point::y().
Referenced by draw_color_plate(), and draw_point_indicator().
auto Inkscape::UI::Widget::coarsen | ( | const Cairo::RefPtr< Cairo::Region > & | region, |
int | min_size, | ||
int | glue_size, | ||
double | min_fullness | ||
) |
Definition at line 2010 of file canvas.cpp.
References Geom::GenericRect< C >::area(), cairo_to_geom(), Geom::GenericRect< C >::expandBy(), Geom::GenericRect< C >::minExtent(), rects, and Geom::GenericRect< C >::unionWith().
|
static |
Definition at line 490 of file tabs-widget.cpp.
Referenced by Inkscape::UI::Widget::TabsWidget::TabsWidget().
Cairo::RefPtr< Cairo::Pattern > Inkscape::UI::Widget::create_checkerboard_pattern | ( | double | tx, |
double | ty | ||
) |
Definition at line 70 of file color-preview.cpp.
References ink_cairo_pattern_create_checkerboard().
Referenced by Inkscape::UI::Widget::ColorPreview::draw_func().
|
static |
Definition at line 143 of file color-plate.cpp.
References Inkscape::Colors::Color::addOpacity(), create_color_preview(), data, index, limit, Inkscape::size, and width.
Referenced by Inkscape::UI::Widget::ColorPlate::draw_plate().
|
static |
Definition at line 125 of file color-plate.cpp.
References data, draw(), fmt, Inkscape::size, stride, and width.
Referenced by create_color_plate(), and create_color_wheel().
|
static |
Definition at line 167 of file color-plate.cpp.
References create_color_preview(), data, index, limit, set_color_helper(), Inkscape::size, Inkscape::Colors::Color::toARGB(), and width.
Referenced by Inkscape::UI::Widget::ColorPlate::draw_plate().
|
static |
Definition at line 52 of file color-wheel-factory.cpp.
References Inkscape::Colors::Color::set(), TEST_TIMING, and w.
Referenced by can_create_color_wheel(), and create_managed_color_wheel().
ColorWheel * Inkscape::UI::Widget::create_managed_color_wheel | ( | Type | type | ) |
Definition at line 126 of file color-wheel-factory.cpp.
References create_color_wheel_helper().
Referenced by Inkscape::UI::Widget::ColorPage::ColorPage().
Glib::RefPtr< PatternItem > Inkscape::UI::Widget::create_pattern_item | ( | PatternManager & | manager, |
SPPattern * | pattern, | ||
int | tile_size, | ||
double | scale | ||
) |
Definition at line 424 of file pattern-editor.cpp.
References create_pattern_item(), Inkscape::PatternManager::get_image(), Inkscape::PatternManager::get_item(), item, scale, and tile_size.
Referenced by create_pattern_item(), create_pattern_items(), and Inkscape::UI::Widget::PatternEditor::set_selected().
std::vector< Glib::RefPtr< PatternItem > > Inkscape::UI::Widget::create_pattern_items | ( | PatternManager & | manager, |
const std::vector< SPPattern * > & | list, | ||
int | tile_size, | ||
double | device_scale | ||
) |
Definition at line 495 of file pattern-editor.cpp.
References create_pattern_item(), create_pattern_items(), item, and tile_size.
Referenced by create_pattern_items(), Inkscape::UI::Widget::PatternEditor::set_stock_patterns(), and Inkscape::UI::Widget::PatternEditor::update_doc_pattern_list().
|
static |
Definition at line 64 of file marker-combo-box.cpp.
References cairo_line_to(), cairo_move_to(), cairo_set_source_rgba(), height, surface, and width.
Referenced by Inkscape::UI::Widget::MarkerComboBox::add_separator(), and Inkscape::UI::Widget::MarkerComboBox::MarkerComboBox().
|
static |
Definition at line 79 of file messages.cpp.
References Inkscape::UI::Widget::Messages::message().
Referenced by Inkscape::UI::Widget::Messages::captureLogMessages().
Glib::RefPtr< Gdk::Pixbuf > Inkscape::UI::Widget::draw_circle | ( | int | size, |
Colors::Color | color | ||
) |
Definition at line 80 of file gradient-editor.cpp.
References Inkscape::Colors::Color::addOpacity(), cairo_line_to(), cairo_set_source_rgba(), height, ink_cairo_pattern_create_checkerboard(), ink_cairo_set_source_color(), ink_pixbuf_create_from_cairo_surface(), Inkscape::size, Inkscape::Colors::Color::stealOpacity(), and width.
Referenced by get_stop_pixmap().
|
static |
Definition at line 43 of file color-plate.cpp.
References circle(), Geom::GenericRect< C >::height(), Geom::GenericRect< C >::midpoint(), Geom::GenericRect< C >::min(), Geom::GenericRect< C >::minExtent(), offset, preview, Inkscape::Util::rounded_rectangle(), scale, Inkscape::size, and Geom::GenericRect< C >::width().
Referenced by Inkscape::UI::Widget::ColorPlate::draw_plate().
|
static |
Definition at line 379 of file preferences-widget.cpp.
References draw_text(), and num.
Referenced by Inkscape::UI::Widget::ZoomCorrRuler::draw_marks().
|
static |
Definition at line 28 of file color-plate.cpp.
References circle(), Geom::Point::round(), and Inkscape::size.
Referenced by Inkscape::UI::Widget::ColorPlate::draw_plate().
|
static |
Definition at line 132 of file color-slider.cpp.
References offset, Geom::Point::round(), and Inkscape::size.
Referenced by Inkscape::UI::Widget::ColorSlider::draw_func().
|
static |
Definition at line 359 of file preferences-widget.cpp.
References cairo_move_to(), Geom::X, and Geom::Y.
Referenced by draw_number().
|
static |
Paints padding for an edge of the triangle, using the (vertically) closest point.
p0 | A corner of the triangle. Not the same corner as p1 |
p1 | A corner of the triangle. Not the same corner as p0 |
padding | The height of the padding |
pad_upwards | True if padding is above the line |
buffer | Array that the triangle is painted to |
height | Height of buffer |
stride | Stride of buffer |
Definition at line 1199 of file ink-color-wheel.cpp.
References Inkscape::UI::Widget::ColorPoint::color, height, lerp(), offset, stride, Inkscape::Colors::Color::toARGB(), Inkscape::UI::Widget::ColorPoint::x, and Inkscape::UI::Widget::ColorPoint::y.
Referenced by Inkscape::UI::Widget::ColorWheelHSL::update_triangle_source().
SPMarker * Inkscape::UI::Widget::find_marker | ( | SPDocument * | document, |
const Glib::ustring & | marker_id | ||
) |
Definition at line 370 of file marker-combo-box.cpp.
References child, SPObject::children, and SPDocument::getDefs().
Referenced by Inkscape::UI::Widget::MarkerComboBox::get_current().
|
static |
Definition at line 95 of file font-list.cpp.
References Inkscape::UI::end, g_font_sizes, and Inkscape::size.
Referenced by Inkscape::UI::Widget::FontList::FontList(), and Inkscape::UI::Widget::FontList::set_current_size().
|
static |
Convert a point in pixels on the widget to Luv coordinates.
point | The point in pixel coordinates. |
scale | Zoom amount to fit polygon to outer circle. |
resize | Zoom amount to fit wheel in widget. |
Definition at line 1160 of file ink-color-wheel.cpp.
References resize(), scale, SIZE, Geom::X, and Geom::Y.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::_set_from_xy(), and Inkscape::UI::Widget::ColorWheelHSLuv::_updatePolygon().
|
static |
Definition at line 54 of file pattern-editor.cpp.
Referenced by Inkscape::UI::Widget::PatternEditor::update_widgets_from_pattern().
|
static |
Definition at line 544 of file ink-spin-button.cpp.
References get_accel_factor(), and scale.
Referenced by Inkscape::UI::Widget::InkSpinButton::change_value(), get_accel_factor(), and Inkscape::UI::Widget::InkSpinButton::on_drag_update_value().
|
static |
Definition at line 66 of file color-slider.cpp.
References Geom::GenericRect< C >::from_xywh(), THUMB_SPACE, and width.
Referenced by Inkscape::UI::Widget::ColorSlider::draw_func(), and get_value_at().
Glib::ustring Inkscape::UI::Widget::get_alt_name | ( | const Glib::ustring & | fontspec | ) |
Definition at line 106 of file font-list.cpp.
References Inkscape::UI::end.
Referenced by get_cell_data_func(), and get_font_name().
Glib::ustring Inkscape::UI::Widget::get_attrib | ( | SPMarker * | marker, |
const char * | attrib | ||
) |
Definition at line 84 of file marker-combo-box.cpp.
References SPObject::getAttribute().
Referenced by get_attrib_num(), get_attrib_num(), and Inkscape::UI::Widget::MarkerComboBox::update_widgets_from_marker().
Glib::ustring Inkscape::UI::Widget::get_attrib | ( | SPPattern * | pattern, |
const char * | attrib | ||
) |
Definition at line 66 of file pattern-editor.cpp.
References SPObject::getAttribute().
double Inkscape::UI::Widget::get_attrib_num | ( | SPMarker * | marker, |
const char * | attrib | ||
) |
Definition at line 89 of file marker-combo-box.cpp.
References get_attrib().
Referenced by Inkscape::UI::Widget::MarkerComboBox::MarkerComboBox(), and Inkscape::UI::Widget::MarkerComboBox::update_widgets_from_marker().
double Inkscape::UI::Widget::get_attrib_num | ( | SPPattern * | pattern, |
const char * | attrib | ||
) |
Definition at line 71 of file pattern-editor.cpp.
References get_attrib().
std::pair< Glib::ustring, Glib::ustring > Inkscape::UI::Widget::get_axis_name | ( | const std::string & | tag, |
const Glib::ustring & | abbr | ||
) |
Definition at line 46 of file font-variations.cpp.
References Inkscape::UI::end.
Referenced by Inkscape::UI::Widget::FontVariations::build_ui().
void Inkscape::UI::Widget::get_cell_data_func | ( | Gtk::CellRenderer * | cell_renderer, |
Gtk::TreeModel::ConstRow | row | ||
) |
Definition at line 146 of file font-list.cpp.
References Inkscape::FontInfo::face, Inkscape::FontInfo::ff, g_column_model, get_alt_name(), Inkscape::get_font_description(), get_full_name(), get_renderer(), and name.
Referenced by Inkscape::UI::Widget::FontList::FontList().
|
static |
Definition at line 96 of file color-plate.cpp.
Referenced by Inkscape::UI::Widget::ColorPlate::move_indicator_to().
|
static |
Definition at line 1205 of file selected-style.cpp.
References desktop, Inkscape::UI::Dialog::DialogContainer::get_dialog(), SPDesktop::getContainer(), and Inkscape::UI::Dialog::DialogContainer::new_dialog().
Referenced by Inkscape::UI::Widget::SelectedStyle::on_fill_click(), Inkscape::UI::Widget::SelectedStyle::on_fill_edit(), Inkscape::UI::Widget::SelectedStyle::on_stroke_click(), Inkscape::UI::Widget::SelectedStyle::on_stroke_edit(), and Inkscape::UI::Widget::SelectedStyle::on_sw_click().
Glib::ustring Inkscape::UI::Widget::get_font_icon | ( | const FontInfo & | font, |
bool | missing_font | ||
) |
Definition at line 729 of file font-list.cpp.
References Inkscape::FontInfo::synthetic, and Inkscape::FontInfo::variable_font.
Referenced by Inkscape::UI::Widget::FontList::add_font(), and Inkscape::UI::Widget::FontList::populate_font_store().
Glib::ustring Inkscape::UI::Widget::get_font_name | ( | Gtk::TreeIter< Gtk::TreeRow > & | iter | ) |
Definition at line 136 of file font-list.cpp.
References Inkscape::FontInfo::ff, g_column_model, get_alt_name(), get_full_name(), and name.
Referenced by Inkscape::UI::Widget::FontList::FontList().
Glib::ustring Inkscape::UI::Widget::get_full_name | ( | const Inkscape::FontInfo & | font_info | ) |
Definition at line 102 of file font-list.cpp.
References Inkscape::FontInfo::face, Inkscape::FontInfo::ff, and Inkscape::get_full_font_name().
Referenced by get_cell_data_func(), get_font_name(), and Inkscape::UI::Widget::FontList::populate_font_store().
SPPattern * Inkscape::UI::Widget::get_pattern | ( | const PatternItem & | item, |
SPDocument * | document | ||
) |
Definition at line 694 of file pattern-editor.cpp.
References get_pattern(), SPObject::id, and item.
Referenced by get_pattern(), and regenerate_tile_images().
|
static |
Definition at line 191 of file color-palette.cpp.
Referenced by Inkscape::UI::Widget::ColorPalette::scroll(), Inkscape::UI::Widget::ColorPalette::scroll_cb(), and Inkscape::UI::Widget::ColorPalette::update_scroll_arrows_sensitivity().
CellFontRenderer & Inkscape::UI::Widget::get_renderer | ( | Gtk::CellRenderer & | renderer | ) |
Definition at line 132 of file font-list.cpp.
Referenced by get_cell_data_func().
Glib::ustring Inkscape::UI::Widget::get_repeat_icon | ( | SPGradientSpread | mode | ) |
Definition at line 142 of file gradient-editor.cpp.
References mode, SP_GRADIENT_SPREAD_PAD, SP_GRADIENT_SPREAD_REFLECT, and SP_GRADIENT_SPREAD_REPEAT.
Referenced by Inkscape::UI::Widget::GradientEditor::GradientEditor(), and Inkscape::UI::Widget::GradientEditor::set_repeat_icon().
Gtk::Widget * Inkscape::UI::Widget::get_scrollable_ancestor | ( | Gtk::Widget * | widget | ) |
Get the first ancestor which is scrollable.
Definition at line 19 of file scroll-utils.cpp.
References Inkscape::UI::_break, Inkscape::UI::_continue, Inkscape::UI::for_each_parent(), and parent.
Referenced by Inkscape::UI::Widget::SpinButton::defocus(), and get_scrollable_ancestor().
Gtk::Widget const * Inkscape::UI::Widget::get_scrollable_ancestor | ( | Gtk::Widget const *const | widget | ) |
Get the first ancestor which is scrollable.
Definition at line 33 of file scroll-utils.cpp.
References get_scrollable_ancestor().
const char * Inkscape::UI::Widget::get_sort_icon | ( | Inkscape::FontOrder | order | ) |
Definition at line 211 of file font-list.cpp.
References Inkscape::by_name, Inkscape::by_weight, Inkscape::by_width, and order.
Referenced by Inkscape::UI::Widget::FontList::FontList(), and Inkscape::UI::Widget::FontList::sort_fonts().
|
static |
Definition at line 62 of file page-properties.cpp.
Glib::RefPtr< Gdk::Pixbuf > Inkscape::UI::Widget::get_stop_pixmap | ( | SPStop * | stop | ) |
Definition at line 137 of file gradient-editor.cpp.
References draw_circle(), SPStop::getColor(), and Inkscape::size.
Referenced by Inkscape::UI::Widget::GradientEditor::set_gradient(), and Inkscape::UI::Widget::GradientEditor::set_stop_color().
std::string Inkscape::UI::Widget::get_stop_template_path | ( | const char * | filename | ) |
Definition at line 46 of file gradient-with-stops.cpp.
References Inkscape::IO::Resource::get_filename(), and Inkscape::IO::Resource::UIS.
|
static |
Definition at line 508 of file tab-strip.cpp.
|
static |
Definition at line 474 of file tabs-widget.cpp.
|
static |
Definition at line 605 of file ink-spin-button.cpp.
Referenced by Inkscape::UI::Widget::ColorEntry::_onColorChanged(), Inkscape::UI::Widget::EntityLineEntry::content(), Inkscape::UI::Widget::ColorEntry::on_changed(), Inkscape::UI::Widget::EntityLineEntry::on_changed(), Inkscape::UI::Widget::PrefEntry::on_changed(), Inkscape::UI::Widget::PrefEntryFile::on_changed(), Inkscape::UI::Widget::MathSpinButton::on_input(), and Inkscape::UI::Widget::SpinButton::on_input().
|
static |
Definition at line 75 of file color-slider.cpp.
References get_active_area().
Referenced by Inkscape::UI::Widget::ColorSlider::update_component().
|
static |
Definition at line 13 of file texture.cpp.
References result.
Referenced by Inkscape::UI::Widget::Texture::invalidate().
|
static |
Definition at line 7 of file texture.cpp.
References result.
Referenced by Inkscape::UI::Widget::Texture::Texture().
|
static |
Definition at line 83 of file font-list.cpp.
References g_font_sizes, and index.
Referenced by Inkscape::UI::Widget::FontList::FontList().
|
static |
Returns a list of meshes in the defs of the given source document as a vector.
Definition at line 612 of file paint-selector.cpp.
References SPDocument::getResourceList().
Referenced by sp_mesh_list_from_doc().
|
static |
Definition at line 704 of file paint-selector.cpp.
References COMBO_COL_LABEL, COMBO_COL_MESH, COMBO_COL_SEP, COMBO_COL_STOCK, ink_mesh_menu_populate_menu(), and store.
Referenced by Inkscape::UI::Widget::PaintSelector::set_mode_mesh(), and Inkscape::UI::Widget::PaintSelector::updateMeshList().
|
static |
Definition at line 669 of file paint-selector.cpp.
References sp_mesh_list_from_doc().
Referenced by ink_mesh_menu().
|
static |
Definition at line 117 of file paint-selector.cpp.
References mode, Inkscape::UI::Widget::PaintSelector::MODE_GRADIENT_LINEAR, Inkscape::UI::Widget::PaintSelector::MODE_GRADIENT_RADIAL, and Inkscape::UI::Widget::PaintSelector::MODE_SWATCH.
Referenced by Inkscape::UI::Widget::PaintSelector::getGradientProperties(), Inkscape::UI::Widget::PaintSelector::getGradientVector(), and Inkscape::UI::Widget::PaintSelector::setGradientProperties().
|
static |
Definition at line 1116 of file ink-color-wheel.cpp.
References Inkscape::UI::Widget::ColorPoint::color, Inkscape::Colors::Color::converted(), lerp(), Inkscape::UI::Widget::ColorPoint::x, and Inkscape::UI::Widget::ColorPoint::y.
|
static |
Definition at line 1110 of file ink-color-wheel.cpp.
References Geom::lerp().
Referenced by Inkscape::UI::Widget::ColorWheelHSL::_set_from_xy(), draw_vertical_padding(), lerp(), and Inkscape::UI::Widget::ColorWheelHSL::update_triangle_source().
double Inkscape::UI::Widget::line_angle | ( | const Geom::Line & | line | ) |
Definition at line 442 of file gradient-editor.cpp.
References Geom::Line::finalPoint(), and Geom::Line::initialPoint().
Referenced by Inkscape::UI::Widget::GradientEditor::set_gradient(), and Inkscape::UI::Widget::GradientEditor::turn_gradient().
|
static |
Definition at line 221 of file color-plate.cpp.
References Geom::GenericRect< C >::dimensions(), Geom::GenericRect< C >::min(), Geom::GenericRect< C >::minExtent(), and scale.
Referenced by Inkscape::UI::Widget::ColorPlate::draw_plate().
|
static |
Definition at line 1132 of file ink-color-wheel.cpp.
References c, and Inkscape::Colors::Color::converted().
Referenced by Inkscape::UI::Widget::ColorWheelHSL::on_drawing_area_draw().
|
static |
Definition at line 44 of file color-palette.cpp.
Referenced by Inkscape::UI::Widget::ColorPalette::ColorPalette().
|
static |
Definition at line 580 of file selected-style.cpp.
Referenced by Inkscape::UI::Widget::SelectedStyle::make_popup(), Inkscape::UI::Widget::SelectedStyle::make_popup_opacity(), and Inkscape::UI::Widget::SelectedStyle::make_popup_units().
std::vector< double > Inkscape::UI::Widget::parse_pattern | ( | const Glib::ustring & | input | ) |
Definition at line 169 of file stroke-style.cpp.
Referenced by Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
|
inline |
|
static |
Definition at line 846 of file canvas.cpp.
References Geom::sqr().
Referenced by apply_profile(), Inkscape::UI::Dialog::DocumentProperties::populate_available_profiles(), and Inkscape::UI::Dialog::DocumentProperties::populate_linked_profiles_box().
void Inkscape::UI::Widget::regenerate_tile_images | ( | PatternManager & | manager, |
PatternStore & | pat_store, | ||
int | tile_size, | ||
double | device_scale, | ||
SPDocument * | current | ||
) |
Definition at line 701 of file pattern-editor.cpp.
References current, Inkscape::PatternManager::get_image(), get_pattern(), item, regenerate_tile_images(), Inkscape::UI::Widget::PatternStore::store, and tile_size.
Referenced by regenerate_tile_images(), and Inkscape::UI::Widget::PatternEditor::update_pattern_tiles().
void Inkscape::UI::Widget::region_to_path | ( | Cairo::RefPtr< Cairo::Context > const & | cr, |
Cairo::RefPtr< Cairo::Region > const & | reg | ||
) |
Turn a Cairo region into a path on a given Cairo context.
Definition at line 10 of file util.cpp.
Referenced by Inkscape::UI::Widget::CairoGraphics::fast_snapshot_combine(), Inkscape::UI::Widget::CairoGraphics::paint_widget(), Inkscape::UI::Widget::CairoGraphics::shift_store(), and Inkscape::UI::Widget::CairoGraphics::snapshot_combine().
|
inline |
Definition at line 37 of file util.h.
References rgb, SP_RGBA32_B_U(), SP_RGBA32_G_U(), and SP_RGBA32_R_U().
|
inline |
Definition at line 42 of file util.h.
References SP_RGBA32_A_U(), SP_RGBA32_B_U(), SP_RGBA32_G_U(), and SP_RGBA32_R_U().
Geom::Rect Inkscape::UI::Widget::round_rect | ( | const Cairo::RefPtr< Cairo::Context > & | ctx, |
Geom::Rect | rect, | ||
double | radius | ||
) |
Definition at line 57 of file color-preview.cpp.
References Geom::GenericRect< C >::height(), height, Geom::GenericRect< C >::left(), Geom::Rect::shrunkBy(), Geom::GenericRect< C >::top(), Geom::GenericRect< C >::width(), and width.
Referenced by Inkscape::UI::Widget::ColorPreview::draw_func().
void Inkscape::UI::Widget::rounded_rectangle | ( | const Cairo::RefPtr< Cairo::Context > & | cr, |
double | x, | ||
double | y, | ||
double | w, | ||
double | h, | ||
double | r | ||
) |
Definition at line 29 of file page-size-preview.cpp.
References w.
Referenced by Inkscape::UI::Widget::PageSizePreview::draw_func().
|
static |
Definition at line 572 of file canvas-grid.cpp.
References desktop, SPDesktop::getCanvas(), SPDesktop::getNamedView(), Geom::rot90(), SnapManager::setup(), SPNamedView::snap_manager, Inkscape::SNAPTARGET_PATH_PERPENDICULAR, and Inkscape::SNAPTARGET_PATH_TANGENTIAL.
Referenced by Inkscape::UI::Widget::CanvasGrid::_rulerButtonRelease(), and Inkscape::UI::Widget::CanvasGrid::rulerMotion().
|
static |
Definition at line 168 of file ink-ruler.cpp.
Referenced by Inkscape::UI::Widget::Ruler::draw_ruler().
|
static |
Definition at line 194 of file color-plate.cpp.
References c, Geom::GenericRect< C >::clamp(), Geom::GenericRect< C >::contains(), Geom::GenericRect< C >::dimensions(), Geom::GenericRect< C >::min(), Geom::GenericRect< C >::minExtent(), and scale.
Referenced by Inkscape::UI::Widget::ColorPlate::ColorPlate(), and Inkscape::UI::Widget::ColorPlate::on_motion().
|
static |
Definition at line 727 of file canvas-grid.cpp.
Referenced by Inkscape::UI::Widget::CanvasGrid::updateScrollbars().
|
static |
Definition at line 111 of file color-plate.cpp.
References Inkscape::Colors::Color::set().
Referenced by create_color_wheel(), and Inkscape::UI::Widget::ColorPlate::get_color_at().
void Inkscape::UI::Widget::set_grid_cell_size | ( | Gtk::CellRendererText * | renderer, |
int | font_size_percent | ||
) |
Definition at line 235 of file font-list.cpp.
References Inkscape::size.
Referenced by Inkscape::UI::Widget::FontList::FontList().
void Inkscape::UI::Widget::set_icon | ( | Gtk::Button & | btn, |
char const * | pixmap | ||
) |
Definition at line 74 of file gradient-editor.cpp.
Referenced by Inkscape::UI::Widget::GradientEditor::GradientEditor(), and Inkscape::UI::Widget::ImageToggler::ImageToggler().
void Inkscape::UI::Widget::set_source_rgba | ( | const Cairo::RefPtr< Cairo::Context > & | ctx, |
unsigned int | rgba | ||
) |
Definition at line 38 of file page-size-preview.cpp.
References SP_RGBA32_A_F(), SP_RGBA32_B_F(), SP_RGBA32_G_F(), and SP_RGBA32_R_F().
Referenced by Inkscape::UI::Widget::PageSizePreview::draw_func().
Cairo::RefPtr< Cairo::Region > Inkscape::UI::Widget::shrink_region | ( | Cairo::RefPtr< Cairo::Region > const & | reg, |
int | d, | ||
int | t | ||
) |
Shrink a region by d/2 in all directions, while also translating it by (d/2 + t, d/2 + t).
Definition at line 18 of file util.cpp.
References cairo_to_geom(), expandedBy(), and geom_to_cairo().
Referenced by Inkscape::UI::Widget::CairoGraphics::fast_snapshot_combine(), Inkscape::UI::Widget::CairoGraphics::snapshot_combine(), Inkscape::UI::Widget::Stores::snapshot_combine(), and Inkscape::UI::Widget::Stores::take_snapshot().
|
static |
Definition at line 49 of file pattern-editor.cpp.
References index.
Referenced by Inkscape::UI::Widget::PatternEditor::get_selected_gap(), and Inkscape::UI::Widget::PatternEditor::PatternEditor().
|
static |
Definition at line 59 of file pattern-editor.cpp.
References index.
Referenced by Inkscape::UI::Widget::PatternEditor::PatternEditor().
void Inkscape::UI::Widget::sort_patterns | ( | std::vector< Glib::RefPtr< PatternItem > > & | list | ) |
Definition at line 412 of file pattern-editor.cpp.
Referenced by Inkscape::UI::Widget::PatternEditor::set_stock_patterns().
|
static |
Pick up all meshes from source, except those that are in current_doc (if non-NULL), and add items to the mesh menu.
Definition at line 661 of file paint-selector.cpp.
References ink_mesh_list_get(), and sp_mesh_menu_build().
Referenced by ink_mesh_menu_populate_menu().
|
static |
Adds menu items for mesh list.
Definition at line 632 of file paint-selector.cpp.
References Inkscape::XML::Node::attribute(), COMBO_COL_LABEL, COMBO_COL_MESH, COMBO_COL_SEP, COMBO_COL_STOCK, label, and store.
Referenced by sp_mesh_list_from_doc().
|
static |
Creates a horizontal layout manager with 4-pixel spacing between children and space for 'width' columns.
Definition at line 127 of file stroke-style.cpp.
References width.
Referenced by Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
|
static |
Creates a label widget with the given text, at the given col, row position in the table.
Definition at line 100 of file stroke-style.cpp.
Referenced by Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
|
static |
Definition at line 31 of file combo-tool-item.cpp.
References c.
Referenced by Inkscape::UI::Widget::ComboToolItem::ComboToolItem().
void Inkscape::UI::Widget::style_obs_callback | ( | StyleSwatch & | _style_swatch, |
Preferences::Entry const & | val | ||
) |
Watches for changes in the observed style pref.
Definition at line 51 of file style-swatch.cpp.
References css, Inkscape::Preferences::Entry::getInheritedStyle(), Inkscape::UI::Widget::StyleSwatch::setStyle(), and sp_repr_css_attr_unref().
|
static |
Definition at line 62 of file pattern-editor.cpp.
Referenced by Inkscape::UI::Widget::PatternEditor::PatternEditor().
|
static |
Convert a point of the gamut color polygon (Luv) to pixel coordinates.
point | The point in Luv coordinates. |
scale | Zoom amount to fit polygon to outer circle. |
resize | Zoom amount to fit wheel in widget. |
Definition at line 1145 of file ink-color-wheel.cpp.
References resize(), scale, SIZE, Geom::X, and Geom::Y.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::_updatePolygon(), Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw(), and to_pixel_coordinate().
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
point | A vector of points in Luv coordinates. |
scale | Zoom amount to fit polygon to outer circle. |
resize | Zoom amount to fit wheel in widget. |
Definition at line 1174 of file ink-color-wheel.cpp.
References resize(), result, scale, and to_pixel_coordinate().
void Inkscape::UI::Widget::tool_obs_callback | ( | StyleSwatch & | _style_swatch, |
Preferences::Entry const & | val | ||
) |
Watches whether the tool uses the current style.
Definition at line 61 of file style-swatch.cpp.
|
static |
Definition at line 414 of file ink-spin-button.cpp.
References trim_zeros().
Referenced by Inkscape::UI::Widget::InkSpinButton::format(), and trim_zeros().
|
inline |
void Inkscape::UI::Widget::unset_recursive | ( | const char * | attribute, |
SPObject * | object | ||
) |
Definition at line 379 of file fill-style.cpp.
References child, and unset_recursive().
Referenced by unset_recursive(), and Inkscape::UI::Widget::FillNStroke::updateFromPaint().
std::unique_ptr< Updater > Inkscape::UI::Widget::Updater::create< Updater::Strategy::FullRedraw > | ( | ) |
Definition at line 1 of file updaters.cpp.
References Inkscape::UI::Widget::Updater::clean_region, Inkscape::UI::Widget::Updater::FullRedraw, geom_to_cairo(), Inkscape::UI::Widget::Updater::Multiscale, Inkscape::UI::Widget::Updater::Responsive, result, and scale.
std::unique_ptr< Updater > Inkscape::UI::Widget::Updater::create< Updater::Strategy::Multiscale > | ( | ) |
Definition at line 1 of file updaters.cpp.
std::unique_ptr< Updater > Inkscape::UI::Widget::Updater::create< Updater::Strategy::Responsive > | ( | ) |
Definition at line 1 of file updaters.cpp.
const struct rdf_license_t Inkscape::UI::Widget::_other_license |
Definition at line 40 of file licensor.cpp.
Referenced by Inkscape::UI::Widget::Licensor::init().
const struct rdf_license_t Inkscape::UI::Widget::_proprietary_license |
Definition at line 37 of file licensor.cpp.
Referenced by Inkscape::UI::Widget::Licensor::init().
|
static |
Definition at line 80 of file template-list.cpp.
Referenced by Inkscape::UI::Widget::TemplateList::init().
const double Inkscape::UI::Widget::ANGLE_STEP = 15.0 |
Definition at line 76 of file pattern-editor.cpp.
Referenced by Inkscape::UI::Widget::PatternEditor::PatternEditor(), and Inkscape::UI::Widget::PatternEditor::update_widgets_from_pattern().
|
staticconstexpr |
Definition at line 76 of file layer-selector.cpp.
Referenced by Inkscape::UI::Widget::LayerSelector::_layerModified(), and Inkscape::UI::Widget::LayerSelector::LayerSelector().
|
staticconstexpr |
Definition at line 24 of file color-palette-preview.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSL::_is_in_ring(), Inkscape::UI::Widget::ColorPalette::do_scroll(), Inkscape::UI::Widget::ColorPalettePreview::draw_func(), Inkscape::UI::Dialog::DialogBase::fix_inner_scroll(), Inkscape::UI::Widget::GradientWithStops::get_stop_position(), Inkscape::UI::Dialog::CloneTiler::get_transform(), Inkscape::UI::Widget::ColorWheelHSL::on_key_pressed(), Inkscape::UI::Widget::GradientWithStops::on_motion(), Inkscape::UI::Widget::Canvas::on_scroll(), Inkscape::UI::Widget::ColorPalette::scroll(), Inkscape::UI::Widget::ColorWheelHSL::set_from_xy_delta(), Inkscape::UI::Dialog::sp_icon_doc_icon(), and Inkscape::UI::Widget::ColorWheelHSL::update_ring_source().
|
static |
Definition at line 59 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw(), and Inkscape::UI::Widget::ColorWheelHSL::on_drawing_area_draw().
|
staticconstexpr |
Definition at line 57 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSL::get_radii(), and Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw().
|
staticconstexpr |
Definition at line 58 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSL::get_radii(), Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw(), and Inkscape::UI::Widget::ColorWheelHSL::on_drawing_area_draw().
|
static |
Definition at line 82 of file marker-combo-box.cpp.
Referenced by Inkscape::UI::Widget::MarkerComboBox::MarkerComboBox().
FontListColumnModel Inkscape::UI::Widget::g_column_model |
Definition at line 74 of file font-list.cpp.
Referenced by Inkscape::UI::Widget::FontList::add_font(), Inkscape::UI::Widget::FontList::filter(), Inkscape::UI::Widget::FontList::FontList(), get_cell_data_func(), get_font_name(), Inkscape::UI::Widget::FontList::get_fontspec(), Inkscape::UI::Widget::FontList::populate_font_store(), and Inkscape::UI::Widget::FontList::select_font().
|
static |
Definition at line 77 of file font-list.cpp.
Referenced by font_size_to_index(), Inkscape::UI::Widget::FontList::FontList(), and index_to_font_size().
|
static |
Definition at line 80 of file marker-combo-box.cpp.
Referenced by Inkscape::UI::Widget::MarkerComboBox::add_markers(), Inkscape::UI::Widget::MarkerComboBox::MarkerComboBox(), and Inkscape::UI::Widget::MarkerComboBox::update_menu_btn().
const char* Inkscape::UI::Widget::g_linked = "entries-linked-symbolic" |
Definition at line 57 of file page-properties.cpp.
|
static |
Definition at line 38 of file ink-spin-button.cpp.
Referenced by Inkscape::UI::Widget::InkSpinButton::on_motion_enter_value().
|
static |
Definition at line 39 of file ink-spin-button.cpp.
Referenced by Inkscape::UI::Widget::InkSpinButton::on_motion_enter_value().
const char* Inkscape::UI::Widget::g_unlinked = "entries-unlinked-symbolic" |
Definition at line 58 of file page-properties.cpp.
|
static |
Definition at line 1690 of file document-properties.cpp.
|
constexpr |
Definition at line 40 of file ink-ruler.cpp.
Referenced by Inkscape::UI::Widget::Ruler::draw_marker().
|
staticconstexpr |
Definition at line 23 of file color-palette-preview.cpp.
Referenced by Inkscape::UI::Widget::ColorPicker::_construct(), _getMargin(), Inkscape::UI::Widget::ColorWheelHSL::_is_in_ring(), Inkscape::UI::Widget::ColorWheelHSLuv::_set_from_xy(), Inkscape::UI::Widget::ColorWheelHSL::_set_from_xy(), Inkscape::UI::Widget::ColorWheelHSL::_update_ring_color(), Inkscape::UI::Widget::OKWheel::_updateDimensions(), Inkscape::UI::Dialog::add_shadow(), Inkscape::UI::Dialog::AttrDialog::adjust_popup_edit_size(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Dialog::SingleExport::areaYChange(), Inkscape::UI::Dialog::GridArrangeTab::arrange(), Inkscape::UI::Widget::PopoverMenu::attach(), Inkscape::UI::Widget::ColorPalettePreview::ColorPalettePreview(), create_separator(), Inkscape::UI::Dialog::DialogWindow::DialogWindow(), Inkscape::UI::Dialog::dm_get_window_position(), Inkscape::UI::Dialog::SingleExport::dpiChange(), draw_circle(), Inkscape::UI::Widget::ColorPreview::draw_func(), Inkscape::UI::Widget::GradientImage::draw_func(), Inkscape::UI::Widget::PageSizePreview::draw_func(), Inkscape::UI::Widget::ColorPalettePreview::draw_func(), Inkscape::UI::Widget::DashSelector::draw_pattern(), Inkscape::UI::Widget::DashSelector::draw_text(), draw_vertical_padding(), Inkscape::UI::Dialog::Export::exportRaster(), Inkscape::UI::Widget::FontSelector::FontSelector(), Inkscape::UI::Widget::GradientWithStops::get_layout(), Inkscape::UI::Widget::ColorWheelHSL::get_radii(), Inkscape::UI::Dialog::get_thumbnail_size(), Inkscape::UI::Dialog::CloneTiler::get_transform(), Inkscape::UI::Widget::ColorWheelHSL::get_triangle_corners(), Inkscape::UI::Widget::PrefMultiEntry::init(), Inkscape::UI::Dialog::DialogContainer::load_container_state(), Inkscape::UI::Widget::MarkerComboBox::MarkerComboBox(), Inkscape::UI::Widget::ColorWheelHSL::on_drawing_area_draw(), Inkscape::UI::Widget::ColorWheelHSL::on_drawing_area_size(), Inkscape::UI::Widget::Bin::on_size_allocate(), Inkscape::UI::Dialog::BatchExport::onExport(), Inkscape::UI::Dialog::SingleExport::onExport(), Inkscape::UI::Dialog::overlayPixels(), Inkscape::UI::Widget::ColorPalette::resize(), round_rect(), Inkscape::UI::Dialog::set_document_dimensions(), Inkscape::UI::Widget::GradientSelector::set_gradient_size(), Inkscape::UI::Widget::PageSizePreview::set_page_size(), Inkscape::UI::Widget::GradientVectorSelector::set_pixmap_size(), Inkscape::UI::Dialog::DocumentProperties::set_viewbox_size(), Inkscape::UI::Dialog::Print::setup_page(), Inkscape::UI::Dialog::DialogMultipaned::size_allocate_vfunc(), Inkscape::UI::Widget::Canvas::size_allocate_vfunc(), Inkscape::UI::Dialog::ColorItem::size_allocate_vfunc(), Inkscape::UI::Widget::Bin::size_allocate_vfunc(), Inkscape::UI::Widget::CanvasGrid::size_allocate_vfunc(), Inkscape::UI::Dialog::sp_icon_doc_icon(), Inkscape::UI::Dialog::FilterEffectsDialog::PrimitiveList::update(), Inkscape::UI::Widget::ImageProperties::update(), Inkscape::UI::Widget::ColorWheelHSL::update_ring_source(), Inkscape::UI::Widget::ColorWheelHSL::update_triangle_source(), Inkscape::UI::Dialog::DialogWindow::update_window_size_to_fit_children(), Inkscape::UI::Dialog::XmlTree::XmlTree(), and Inkscape::UI::Widget::ZoomCorrRuler::ZoomCorrRuler().
auto Inkscape::UI::Widget::ink_spinbutton_css |
Definition at line 20 of file ink-spin-button.cpp.
Referenced by Inkscape::UI::Widget::InkSpinButton::construct().
|
staticconstexpr |
|
staticconstexpr |
Definition at line 56 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw(), and Inkscape::UI::Widget::ColorWheelHSL::on_drawing_area_draw().
|
static |
Definition at line 30 of file color-page.cpp.
Referenced by Inkscape::UI::Widget::ColorPage::ColorPage().
|
staticconstexpr |
Definition at line 48 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSL::on_key_pressed().
|
staticconstexpr |
Definition at line 50 of file ink-color-wheel.cpp.
|
staticconstexpr |
Definition at line 49 of file ink-color-wheel.cpp.
|
staticconstexpr |
Definition at line 51 of file ink-color-wheel.cpp.
|
staticconstexpr |
Definition at line 53 of file ink-color-wheel.cpp.
|
staticconstexpr |
Definition at line 52 of file ink-color-wheel.cpp.
|
staticconstexpr |
Definition at line 54 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::on_drawing_area_draw().
|
staticconstexpr |
Definition at line 47 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::setColor().
const char* Inkscape::UI::Widget::s_linked = "scale-linked-symbolic" |
Definition at line 59 of file page-properties.cpp.
const char* Inkscape::UI::Widget::s_unlinked = "scale-unlinked-symbolic" |
Definition at line 60 of file page-properties.cpp.
|
staticconstexpr |
|
constexpr |
Definition at line 15 of file color-wheel-factory.cpp.
Referenced by create_color_wheel_helper().
|
constexpr |
Definition at line 35 of file ink-spin-button.cpp.
Referenced by Inkscape::UI::Widget::InkSpinButton::start_spinning().
|
constexpr |
Definition at line 36 of file ink-spin-button.cpp.
Referenced by Inkscape::UI::Widget::InkSpinButton::start_spinning().
|
static |
Definition at line 304 of file fill-style.cpp.
Referenced by Inkscape::UI::Widget::FillNStroke::dragFromPaint(), and Inkscape::UI::Widget::FillNStroke::updateFromPaint().
|
static |
Definition at line 298 of file fill-style.cpp.
Referenced by Inkscape::UI::Widget::FillNStroke::updateFromPaint().
|
static |
Definition at line 299 of file fill-style.cpp.
Referenced by Inkscape::UI::Widget::FillNStroke::updateFromPaint().
|
static |
Definition at line 305 of file fill-style.cpp.
Referenced by Inkscape::UI::Widget::FillNStroke::dragFromPaint(), and Inkscape::UI::Widget::FillNStroke::updateFromPaint().
|
static |
Definition at line 301 of file fill-style.cpp.
Referenced by Inkscape::UI::Widget::FillNStroke::updateFromPaint().
|
static |
Definition at line 302 of file fill-style.cpp.
Referenced by Inkscape::UI::Widget::FillNStroke::updateFromPaint().
|
staticconstexpr |
Definition at line 55 of file ink-color-wheel.cpp.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::_vertex().