| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| minWidth="40" minHeight="20" |
| xmlns:handlers="com.flexcapacitor.handlers.*" |
| xmlns:debugging="com.flexcapacitor.effects.debugging.*" |
| xmlns:core="com.flexcapacitor.effects.core.*"> |
| |
| <!-- |
| |
| Sortof a marquee type of tool. Select this tool and |
| then you can draw a box around something and it shows the dimensions |
| |
| --> |
| |
| <fx:Declarations> |
| <handlers:EventHandler eventName="click" target="{redrawButton}"> |
| <core:ToggleProperty target="{redrawButton}" |
| targetPropertyName="selected" |
| updateTargetProperty="false" |
| toggleValues="{[true, false]}"> |
| <core:effects> |
| <debugging:ShowRedrawRegions /> |
| <debugging:HideRedrawRegions /> |
| </core:effects> |
| </core:ToggleProperty> |
| </handlers:EventHandler> |
| </fx:Declarations> |
| |
| <s:ToggleButton id="redrawButton" label="Show Redraw Regions" /> |
| </s:Group> |