[go: nahoru, domu]

blob: c5cda7516b69439bd20622805385691ec3801ab0 [file] [log] [blame]
/*
* Copyright 2018 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.
*/
package androidx.ui.gestures.events
import androidx.ui.core.Duration
import androidx.ui.engine.geometry.Offset
import androidx.ui.ui.pointer.PointerDeviceKind
// /// The pointer has stopped making contact with the device.
class PointerUpEvent(
timeStamp: Duration = Duration.zero,
pointer: Int = 0,
kind: PointerDeviceKind = PointerDeviceKind.touch,
device: Int = 0,
position: Offset = Offset.zero,
buttons: Int = 0,
obscured: Boolean = false,
pressureMin: Float = 1.0f,
pressureMax: Float = 1.0f,
distance: Float = 0.0f,
distanceMax: Float = 0.0f,
radiusMin: Float = 0.0f,
radiusMax: Float = 0.0f,
orientation: Float = 0.0f,
tilt: Float = 0.0f
) : PointerEvent(
timeStamp = timeStamp,
pointer = pointer,
kind = kind,
device = device,
position = position,
buttons = buttons,
down = false,
obscured = obscured,
pressureMin = pressureMin,
pressureMax = pressureMax,
distance = distance,
distanceMax = distanceMax,
radiusMin = radiusMin,
radiusMax = radiusMax,
orientation = orientation,
tilt = tilt
)