From bcd4d5ab12df062500a4df90ec90d0f2d7649318 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Wed, 17 Dec 2008 15:59:43 +0000 Subject: grab from latest android git-svn-id: http://skia.googlecode.com/svn/trunk/src@27 2bbb7eff-a529-9590-31e7-b0007b416f81 --- animator/SkHitTest.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 animator/SkHitTest.h (limited to 'animator/SkHitTest.h') diff --git a/animator/SkHitTest.h b/animator/SkHitTest.h new file mode 100644 index 00000000..b3a9d85c --- /dev/null +++ b/animator/SkHitTest.h @@ -0,0 +1,38 @@ +/* libs/graphics/animator/SkHitTest.h +** +** Copyright 2006, The Android Open Source Project +** +** Licensed 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. +*/ + +#ifndef SkHitTest_DEFINED +#define SkHitTest_DEFINED + +#include "SkDrawable.h" +#include "SkTypedArray.h" + +class SkHitTest : public SkDrawable { + DECLARE_MEMBER_INFO(HitTest); + SkHitTest(); + virtual bool draw(SkAnimateMaker& ); + virtual bool enable(SkAnimateMaker& ); + virtual bool hasEnable() const; + virtual const SkMemberInfo* preferredChild(SkDisplayTypes type); +private: + SkTDDisplayableArray bullets; + SkTDIntArray hits; + SkTDDisplayableArray targets; + SkBool value; +}; + +#endif // SkHitTest_DEFINED -- cgit v1.2.3 From 685cfc0ee13d7c355ae2f4f3d225ad45e945763f Mon Sep 17 00:00:00 2001 From: "epoger@google.com" Date: Thu, 28 Jul 2011 14:26:00 +0000 Subject: Automatic update of all copyright notices to reflect new license terms. I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk/src@1982 2bbb7eff-a529-9590-31e7-b0007b416f81 --- animator/SkHitTest.h | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'animator/SkHitTest.h') diff --git a/animator/SkHitTest.h b/animator/SkHitTest.h index b3a9d85c..68d5cc5e 100644 --- a/animator/SkHitTest.h +++ b/animator/SkHitTest.h @@ -1,19 +1,11 @@ -/* libs/graphics/animator/SkHitTest.h -** -** Copyright 2006, The Android Open Source Project -** -** Licensed 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. -*/ + +/* + * Copyright 2006 The Android Open Source Project + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + #ifndef SkHitTest_DEFINED #define SkHitTest_DEFINED -- cgit v1.2.3