<?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[Aligned Text with the LAF Arc Knob]]></title><description><![CDATA[<p dir="auto">This is a little LAF slider.  I couldn't find a way to center the arc knob below the Text Label.</p>
<p dir="auto"><img src="https://i.imgur.com/QPnFZfw.jpg" alt="swew.jpg" class=" img-fluid img-markdown" /></p>
<pre><code>HiseSnippet 1556.3ocsWssaaaCFVJMps1qcXEn6lcEguxo0w0xwYKCYE0NNwcA4jWbV1.BJBnkns4hDoFEURbO.rK2avtduF6psmg8hzmf08ScvRxwMM0.MnP07+D+9OQ9ytBtEw2mKzzKbzXOhl98L5MlIG0dDlxz1dSM8GZzpFZYT6.eI2E0ygZSDZaL1C66Sr0z0u0yURpWXQsv+d6y1.6fYVjTRZZGyoVjcotTYJ0tM2g53zAaSNh5lQ5FM21hyZyc3A.ptkQMMOr0Y3gj8wJwVvPS+1aYSkbQOIVR7AY1faOt2H9ErH4Ol5S66PTKL05AFJhrV6QTG6tIdrull9hcS8+aE4+OzXOpMcB8z3vWDx.kpQ1Xf9BWGjL+HfjdFHsXDjdfQOKA0SlxQgmOyXaljHFfgPcVnDIq1B+4cLZyAIXxpt3yHcDvhIZT1b0ZUP0qUao0KVrHDu8knywBjCd.5onsXCoLRUKAA7lm6v6ichr5tb9YsX1cHDmxJMAwqJHCo9fY6DvrjTNqbIaA9hC4RrXbT0RoJnAILGVAw6+KKU7UEKhPzAnxvppRxkRzSeJpTKWd.SVZIfGB8pvugeTPaG.XINTDx5hkiTvHQBOyOnHBLaHAjRsqt3Kg55veQYqmey7AzKOXv.eB.LT8pqlZBrv5nQTqyXPp.3UqZs0xw7mn1xQ.Cypp1l5v2GkSmHgg8J7+8LqZ4PvhvvYwBJaPX1S14kyBjGGasrzdTnCbN1IfrOW3hcnujXOky.bASUpTJLgDdBLq+sqWLE9wgF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ACfi5SA3hFc9448URefsGtZQRYC2CKEgUw6G31CphrHvtyfSO7UsNKn5QiVWSsVEA5A2zEt3cvewLMUq0iYZlvTyEaI3mZEc.o5oY2MjBfIVXoWAi8TqQlIGIZX.WJo5knmZYob+kg5sYqS84PmUlCcZLG5r5bnyWOG57MygNqcs5ndfdq.I2Mpc.Hzcqvqlz02hggJqvpPs+GfFDn9O
</code></pre>
]]></description><link>https://forum.hise.audio/topic/6003/aligned-text-with-the-laf-arc-knob</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 16:19:05 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/6003.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Jun 2022 20:41:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Aligned Text with the LAF Arc Knob on Wed, 29 Jun 2022 21:50:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@Christoph-Hart</a> Fantastic! Thank you so much! <img src="https://forum.hise.audio/assets/plugins/nodebb-plugin-emoji/emoji/android/2665.png?v=fba14f4754a" class="not-responsive emoji emoji-android emoji--hearts" style="height:23px;width:auto;vertical-align:middle" title=":hearts:" alt="♥" /></p>
]]></description><link>https://forum.hise.audio/post/52402</link><guid isPermaLink="true">https://forum.hise.audio/post/52402</guid><dc:creator><![CDATA[Fortune]]></dc:creator><pubDate>Wed, 29 Jun 2022 21:50:26 GMT</pubDate></item><item><title><![CDATA[Reply to Aligned Text with the LAF Arc Knob on Wed, 29 Jun 2022 21:20:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/471">@Fortune</a> I'm using a bunch of helper functions that mimic the juce::Rectangle methods and allow super easy rectangle layout:</p>
<pre><code>namespace Rect
{
	inline function reduced(area, amount)
	{
		return [ area[0] + amount, 
				 area[1] + amount, 
				 area[2] - 2 * amount, 
				 area[3] - 2 * amount];
	}
	
	inline function copy(area)
	{
		return [ area[0], area[1], area[2], area[3&rsqb;&rsqb;;
	}
	
	inline function contains(area, point)
	{
		return point[0] &gt;= area[0] &amp;&amp; 
			   point[0] &lt; area[0] + area[2] &amp;&amp;
			   point[1] &gt;= area[1] &amp;&amp; 
			   point[1] &lt; area[1] + area[3];
	}
	
	inline function withSizeKeepingCentre(area, width, height)
	{
		return [ area[0] + (area[2] - width) / 2, 
				 area[1] + (area[3] - height) / 2, 
				 width, 
				 height];
	}
	
	inline function removeFromLeft(area, amount)
	{
		area[0] += amount;
		area[2] -= amount;
		return [area[0] - amount, area[1], amount, area[3&rsqb;&rsqb;;
	}
	
	inline function removeFromRight(area, amount)
	{
		area[2] -= amount;
		return [area[0] + area[2], area[1], amount, area[3&rsqb;&rsqb;;
	}
	
	inline function removeFromTop(area, amount)
	{
		area[1] += amount;
		area[3] -= amount;
		return [area[0], area[1] - amount, area[2], amount];
	}
	
	inline function scale(area, scaleFactor)
	{
		local newArea = [];
		newArea.reserve(4);
		
		for(a in area)
			newArea.push(a * scaleFactor);
			
		return newArea;
	}
	
	inline function removeFromBottom(area, amount)
	{
		
	

		area[3] -= amount;

		return [area[0], area[1] + area[3], area[2], amount];
	
	}
	
	inline function translated(area, xDelta, yDelta)
	{
		return [area[0] + xDelta, area[1] + yDelta, area[2], area[3&rsqb;&rsqb;;
	}
}
</code></pre>
<p dir="auto">Those should get you started.</p>
]]></description><link>https://forum.hise.audio/post/52398</link><guid isPermaLink="true">https://forum.hise.audio/post/52398</guid><dc:creator><![CDATA[Christoph Hart]]></dc:creator><pubDate>Wed, 29 Jun 2022 21:20:34 GMT</pubDate></item><item><title><![CDATA[Reply to Aligned Text with the LAF Arc Knob on Wed, 29 Jun 2022 21:07:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@Christoph-Hart</a> Thanks.</p>
<p dir="auto">I will try to center all path bounds but I think it is beyond my knowledge :/</p>
]]></description><link>https://forum.hise.audio/post/52397</link><guid isPermaLink="true">https://forum.hise.audio/post/52397</guid><dc:creator><![CDATA[Fortune]]></dc:creator><pubDate>Wed, 29 Jun 2022 21:07:13 GMT</pubDate></item><item><title><![CDATA[Reply to Aligned Text with the LAF Arc Knob on Wed, 29 Jun 2022 20:54:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/471">@Fortune</a> Your knob is completely left aligned, this will not work (Amount is wider than the knob). You need to center all path bounds, then you can use <code>centredTop</code> as alignment.</p>
]]></description><link>https://forum.hise.audio/post/52394</link><guid isPermaLink="true">https://forum.hise.audio/post/52394</guid><dc:creator><![CDATA[Christoph Hart]]></dc:creator><pubDate>Wed, 29 Jun 2022 20:54:54 GMT</pubDate></item></channel></rss>