ObjectHighlighting

Webs: Faemalia -:- Greatprawn -:- Playground -:- Technical -:- Tweak
Technical Web Sections: Register -:- Users -:- Changes -:- Index -:- Search -:- Statistics

It would help when connecting lines if the object that's being connected to could highlight itself. It shouldn't be too hard to make a generic highlight function in a renderer, e.g. by rendering everything in wider lines with a specific color. Shouldn't be hard, though there could be some issues with getting it integrated.

-- LarsClausen - 19 Mar 2004

Can't be done the same way as the selection rendering, which is done after the normal rendering. Can't really be done before normal rendering, so it must be integrated in the renderer somehow. Question is, how can the app part tell the renderer to (un)highlight an object? It doesn't know of its renderer. Instead it will have to tell the diagram, which in turn can tell the renderer.

-- LarsClausen - 22 Mar 2004

Ended up with the app telling the object, and then draw_object in the renderer can handle the highlighting. Highlighting is now done by rendering the object in that one color and with wider lines. Seems to work. Text objects have a colored box behind them. Added to connpoint snapping. Nice.

-- LarsClausen - 23 Mar 2004

Really cool feature, small bug spoils it. Reported it at: http://bugzilla.gnome.org/show_bug.cgi?id=148527

-- ToniPrug - 26 Jul 2004


Edit -:- Attach -:- Ref-By -:- Printable -:- More