<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MouseDown Observer detailed info]]></title><description><![CDATA[<p dir="auto">Hey Frederik,</p>
<p dir="auto">Is there anyway to find out what has been selected by mouse using any observer. I want to be able to show mark glyphs only on selected anchor simply because it's faster to render.</p>
<p dir="auto">Thank you as always :)<br />
Bahman</p>
]]></description><link>https://forum.robofont.com/topic/395/mousedown-observer-detailed-info</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 04:39:13 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/395.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Feb 2016 00:28:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MouseDown Observer detailed info on Wed, 03 Jan 2018 18:01:52 GMT]]></title><description><![CDATA[<p dir="auto">Hey Frederik,</p>
<p dir="auto">Is there anyway to find out what has been selected by mouse using any observer. I want to be able to show mark glyphs only on selected anchor simply because it's faster to render.</p>
<p dir="auto">Thank you as always :)<br />
Bahman</p>
]]></description><link>https://forum.robofont.com/post/394</link><guid isPermaLink="true">https://forum.robofont.com/post/394</guid><dc:creator><![CDATA[bahman]]></dc:creator><pubDate>Wed, 03 Jan 2018 18:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to MouseDown Observer detailed info on Wed, 03 Jan 2018 18:01:31 GMT]]></title><description><![CDATA[<p dir="auto">there is <code>Glyph.selection.Changed</code> notification</p>
<p dir="auto">small example<br />
also don't forget to remove the observer when your are done...</p>
<pre><code class="language-python">class SelectionObsever(object):
    
    def __init__(self):
        self.g = CurrentGlyph()
        self.g.addObserver(self, "selectionChanged", "Glyph.selectionChanged")
    
    def selectionChanged(self, notification):
        glyph = notification.object
        for anchor in glyph.anchors:
            print anchor.selected
        
SelectionObsever()
</code></pre>
]]></description><link>https://forum.robofont.com/post/1408</link><guid isPermaLink="true">https://forum.robofont.com/post/1408</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Wed, 03 Jan 2018 18:01:31 GMT</pubDate></item></channel></rss>