Searched defs:index (Results 1 - 25 of 52) sorted by relevance

123

/inkscape/src/ui/widget/
H A Danchor-selector.cpp73 void AnchorSelector::btn_activated(int index) argument
76 if(_selection == index && _buttons[index].get_active() == false)
78 _buttons[index].set_active(true);
80 else if(_selection != index && _buttons[index].get_active())
83 _selection = index;
91 int index = 3 * vertical + horizontal; local
92 if(index >= 0 && index <
[all...]
H A Dunit-tracker.cpp88 int index = 0; local
94 _setActive(index);
99 index++;
/inkscape/src/
H A Dsnap-preferences.cpp166 Inkscape::SnapTargetType index = target; local
168 _mapTargetToArrayIndex(index, always_on, group_on);
172 g_warning("Snap-preferences warning: Trying to enable/disable a snap target (#%i) that's always on by definition", index);
174 if (index == target) { // I.e. if it has not been re-mapped, then we have a primary target at hand
175 _active_snap_targets[index] = enabled;
177 g_warning("Snap-preferences warning: Trying to enable/disable a secondary snap target (#%i); only primary targets can be set", index);
186 Inkscape::SnapTargetType index = target; local
188 _mapTargetToArrayIndex(index, always_on, group_on);
194 if (_active_snap_targets[index] == -1) {
196 g_warning("Snap-preferences warning: Using an uninitialized snap target setting (#%i)", index);
227 Inkscape::SnapTargetType index = target; local
[all...]
H A Dproj_pt.h30 inline double operator[] (unsigned int index) const {
31 if (index > 2) { return Geom::infinity(); }
32 return pt[index];
34 inline double &operator[] (unsigned int index) { argument
36 //if (index > 2) { return Geom::infinity(); }
37 return pt[index];
138 inline double operator[] (unsigned int index) const {
139 if (index > 3) { return Geom::infinity(); }
140 return pt[index];
142 inline double &operator[] (unsigned int index) { argument
[all...]
H A Dattributes-test.h586 for ( unsigned int index = 1; index < n_ids; index++ ) {
587 guchar const* name = sp_attribute_name(index);
589 TSM_ASSERT_EQUALS( std::string("Enum round-trip through string {") + (char const*)name + "} failed.", index, postLookup ); local
H A Dtransf_mat_3x4.cpp68 int index = (int) axis; local
70 SysEq::SolutionKind sol = SysEq::gaussjord_solve<3,4>(tmat, x, v, index, coord, true);
H A Dsyseq.h203 /* compute the modified value that x[index] needs to assume so that in the end we have x[index]/x[T-1] = val */
206 const int index, const double val) {
208 if (index != -1) {
223 if (j == index) continue;
226 double mu = 1 - val * B[c][index];
240 * \a x[\a index] = \a val if \a index is not -1. The system is solved using Gauss-Jordan
246 * \a x[\a index]/\a x[\T - 1] = \a val insted (i.e., we want the corresponding coordinate
254 int index
205 projectify(std::vector<int> const &cols, const double B[S][T], const double x[T], const int index, const double val) argument
[all...]
H A Ddocument-subset.cpp91 unsigned index=findInsertIndex(obj); local
92 children.insert(children.begin()+index, obj);
123 unsigned index = found - children.begin(); local
127 return index;
283 unsigned index=parent_record->removeChild(obj); local
291 siblings.insert(siblings.begin()+index,
341 unsigned index=parent_record->findInsertIndex(obj); local
343 family.insert(family.begin()+index,
H A Dsp-filter.cpp521 int index; local
524 if (sscanf(result, "result%5d", &index) == 1)
526 if (index > largest)
528 largest = index;
H A Dsp-star.cpp254 // for various numbers >=3. The singular form is used as the index.
309 sp_star_get_curvepoint (SPStar *star, SPStarPoint point, gint index, bool previ) argument
312 Geom::Point o = sp_star_get_xy (star, point, index);
315 gint pi = (index > 0)? (index - 1) : (star->sides - 1);
316 gint ni = (index < star->sides - 1)? (index + 1) : 0;
322 Geom::Point prev = (star->flatsided? sp_star_get_xy (star, point, pi) : sp_star_get_xy (star, other, point == SP_STAR_POINT_KNOT2? index : pi));
323 Geom::Point next = (star->flatsided? sp_star_get_xy (star, point, ni) : sp_star_get_xy (star, other, point == SP_STAR_POINT_KNOT1? index : ni));
359 Geom::Point o_randomized = sp_star_get_xy (star, point, index, tru
573 sp_star_get_xy(SPStar const *star, SPStarPoint point, gint index, bool randomized) argument
[all...]
H A Ddevice-manager.cpp312 virtual void setAxisUse( Glib::ustring const & id, guint index, Gdk::AxisUse use );
313 virtual void setKey( Glib::ustring const & id, guint index, guint keyval, Gdk::ModifierType mods );
476 void DeviceManagerImpl::setAxisUse( Glib::ustring const & id, guint index, Gdk::AxisUse use ) argument
481 if (static_cast<gint>(index) <= (*it)->getNumAxes()) {
484 if (device->get_axis_use(index) != use) {
485 device->set_axis_use(index, use);
489 g_warning("Invalid device axis number %d on extended input device [%s]", index, (*it)->getId().c_str());
495 void DeviceManagerImpl::setKey( Glib::ustring const & id, guint index, guint keyval, Gdk::ModifierType mods ) argument
497 //static void setDeviceKey( GdkDevice* device, guint index, guint keyval, GdkModifierType modifiers )
504 device->set_key(index, keyva
[all...]
H A Dsp-shape.cpp383 unsigned int index = path_last.size_default(); local
384 if (index > 0) {
385 index--;
387 Geom::Curve const &lastcurve = path_last[index];
579 unsigned int index = path_last.size_default(); local
581 if (index > 0) {
582 index--;
585 Geom::Curve const &lastcurve = path_last[index];
723 unsigned int index = path_last.size_default(); local
725 if (index >
[all...]
/inkscape/src/trace/
H A Dimagemap.cpp335 static void iSetPixel(IndexedMap *me, int x, int y, unsigned int index) argument
338 *pix = index;
H A Dsiox.h114 * Retrieve a CieLab value via index.
116 virtual float operator()(unsigned int index) argument
118 if (index==0) return L;
119 else if (index==1) return A;
120 else if (index==2) return B;
H A Dquantize.cpp492 static void octreeIndex(Ocnode *node, RGB *rgbpal, int *index) argument
497 rgbpal[*index].r = node->rs / node->weight;
498 rgbpal[*index].g = node->gs / node->weight;
499 rgbpal[*index].b = node->bs / node->weight;
500 (*index)++;
505 octreeIndex(node->child[i], rgbpal, index);
520 * find the index of closest color in a palette
526 int index = -1, dist = 0; local
530 if (index == -1 || d < dist) { dist = d; index
587 int index = findRGB(rgbpal, ncolor, rgb); local
[all...]
/inkscape/src/extension/internal/
H A Dcairo-render-context.h50 unsigned long index; member in struct:Inkscape::Extension::Internal::CairoGlyphInfo
H A Dcairo-renderer.cpp287 unsigned int index = path_last.size_default(); local
288 if (index > 0) {
289 index--;
291 Geom::Curve const &lastcurve = path_last[index];
/inkscape/src/live_effects/parameter/
H A Dpowerstrokepointarray.cpp127 PowerStrokePointArrayParamKnotHolderEntity(PowerStrokePointArrayParam *p, unsigned int index);
134 // Checks whether the index falls within the size of the parameter's vector
135 bool valid_index(unsigned int index) const {
136 return (_pparam->_vector.size() > index);
144 PowerStrokePointArrayParamKnotHolderEntity::PowerStrokePointArrayParamKnotHolderEntity(PowerStrokePointArrayParam *p, unsigned int index) argument
146 _index(index)
209 // shift knots down one index
227 // shift knots up one index
/inkscape/src/2geom/
H A Dpathvector.cpp145 std::size_t index; member in struct:Geom::PathIntersectionSweepSet::PathRecord
150 , index(i)
186 PathVectorTime tw(ii->index, px[k].first), tow(i->index, px[k].second);
H A Dpathvector.h49 * as the curve index, we lose some precision. For instance, a path with 16 curves will
155 Path &operator[](size_type index) { argument
156 return _data[index];
158 Path const &operator[](size_type index) const {
159 return _data[index];
161 Path &at(size_type index) { argument
162 return _data.at(index);
164 Path const &at(size_type index) const {
165 return _data.at(index);
/inkscape/src/libdepixelize/priv/
H A Dhomogeneoussplines.h381 // the rotated cell must be inserted before (dst.begin() + index)
382 typename Points::difference_type index; local
388 index = dst.erase(common_edge.dst_begin,
395 index = dst.end() - dst.begin();
409 dst.insert(dst.begin() + index, common_edge.src_end, src.end());
411 dst.insert(dst.begin() + index + nfirstinserted,
419 dst.insert(dst.begin() + index,
433 // invalidated after some insertions, then the index is required
/inkscape/src/ui/tools/
H A Dlpe-tool.cpp260 * Finds the index in the list of geometric subtools corresponding to the given LPE type.
274 * Checks whether an item has a construction applied as LPE and if so returns the index in
311 int index = lpetool_mode_to_index(type); local
312 if (index != -1) {
314 lc->desktop->setToolboxSelectOneValue ("lpetool_mode_action", index);
/inkscape/src/widgets/
H A Dfont-selector.cpp321 // Create our own store of styles for selected font-family and find index of best style match
323 int index = 0; local
333 path_index = index;
335 ++index;
/inkscape/src/xml/
H A Dsimple-node.cpp262 Node *SimpleNode::nthChild(unsigned index) { argument
264 for ( ; index > 0 && child ; child = child->_next ) {
265 index--;
/inkscape/src/libcroco/
H A Dcr-sel-eng.c1343 index = 0; local
1365 (a_this, a_sheet, a_node, stmts_tab + index, &tab_len))
1376 index += tab_len;
1377 tab_len = tab_size - index;
1410 index = 0; local
1423 if (tab_size - index < 1) {
1437 tab_len = tab_size - index;
1440 (a_this, sheet, a_node, stmts_tab + index, &tab_len))
1451 index += tab_len;
1456 tab_len = tab_size - index;
[all...]

Completed in 547 milliseconds

123