Check-in [b75815213e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Capability get of pointer events.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b75815213e17268d8feb444026194e304310a034
User & Date: stephanie.gawroriski 2019-05-17 16:20:55
Context
2019-05-17
19:44
Initialize some item types. check-in: 6fded67d37 user: stephanie.gawroriski tags: trunk
16:20
Capability get of pointer events. check-in: b75815213e user: stephanie.gawroriski tags: trunk
16:17
Realize the content area when it is set as well as during painting. check-in: 31ff0ed16b user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/apis/midp-lcdui/cc/squirreljme/runtime/lcdui/phoneui/NativeUIBackend.java.

266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
	/**
	 * {@inheritDoc}
	 * @since 2019/05/16
	 */
	@Override
	public final PixelFormat pixelFormat()
	{
		return this.pixelFormat();
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/16
	 */
	@Override







|







266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
	/**
	 * {@inheritDoc}
	 * @since 2019/05/16
	 */
	@Override
	public final PixelFormat pixelFormat()
	{
		return this.pixelformat;
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/16
	 */
	@Override

Changes to runt/apis/midp-lcdui/javax/microedition/lcdui/Canvas.java.

267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
	 *
	 * @return {@code true} if pointer events are available.
	 * @since 2017/02/12
	 */
	@Deprecated
	public boolean hasPointerEvents()
	{
		throw new todo.TODO();
		/*
		Display d = __currentDisplay();
		return (d != null ? d : Display.getDisplays(0)[0]).hasPointerEvents();
		*/
	}
	
	/**
	 * This checks whether the display has the capability to handle pointer
	 * motion events.
	 *
	 * @return {@code true} if pointer motion events are available.
	 * @since 2017/02/12
	 */
	@Deprecated
	public boolean hasPointerMotionEvents()
	{
		throw new todo.TODO();
		/*
		Display d = __currentDisplay();
		return (d != null ? d : Display.getDisplays(0)[0]).
			hasPointerMotionEvents();
		*/
	}
	
	/**
	 * Always returns {@code true} because all implementations must support
	 * repeat events.
	 *
	 * @return Always {@code true}.







<
<
|

<












<
<
|


<







267
268
269
270
271
272
273


274
275

276
277
278
279
280
281
282
283
284
285
286
287


288
289
290

291
292
293
294
295
296
297
	 *
	 * @return {@code true} if pointer events are available.
	 * @since 2017/02/12
	 */
	@Deprecated
	public boolean hasPointerEvents()
	{


		Display d = this._display;
		return (d != null ? d : Display.getDisplays(0)[0]).hasPointerEvents();

	}
	
	/**
	 * This checks whether the display has the capability to handle pointer
	 * motion events.
	 *
	 * @return {@code true} if pointer motion events are available.
	 * @since 2017/02/12
	 */
	@Deprecated
	public boolean hasPointerMotionEvents()
	{


		Display d = this._display;
		return (d != null ? d : Display.getDisplays(0)[0]).
			hasPointerMotionEvents();

	}
	
	/**
	 * Always returns {@code true} because all implementations must support
	 * repeat events.
	 *
	 * @return Always {@code true}.

Changes to runt/apis/midp-lcdui/javax/microedition/lcdui/Display.java.

540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
	 * Are mouse/stylus press and release events supported?
	 *
	 * @return {@code true} if they are supported.
	 * @since 2016/10/14
	 */
	public boolean hasPointerEvents()
	{
		throw new todo.TODO();
		/*
		// Only the first display supports this
		if (this._nid != 0)
			return false;
		
		return 0 != (this.getCapabilities() &
			ExtendedCapabilities.SUPPORTS_POINTER_EVENTS);
		*/
	}
	
	/**
	 * Are mouse/stylus move/drag events supported?
	 *
	 * @return {@code true} if they are supported.
	 * @since 2016/10/14
	 */
	public boolean hasPointerMotionEvents()
	{
		throw new todo.TODO();
		/*
		// Only the first display supports this
		if (this._nid != 0)
			return false;
		
		return 0 != (this.getCapabilities() &
			ExtendedCapabilities.SUPPORTS_POINTER_EVENTS);
		*/
	}
	
	/**
	 * Is this display built into the device or is it an auxiliary display?
	 *
	 * @return {@code true} if it is built-in.
	 * @since 2016/10/14







<
<
<
<
<
<


<










<
<
<
<
<
<


<







540
541
542
543
544
545
546






547
548

549
550
551
552
553
554
555
556
557
558






559
560

561
562
563
564
565
566
567
	 * Are mouse/stylus press and release events supported?
	 *
	 * @return {@code true} if they are supported.
	 * @since 2016/10/14
	 */
	public boolean hasPointerEvents()
	{






		return 0 != (this.getCapabilities() &
			ExtendedCapabilities.SUPPORTS_POINTER_EVENTS);

	}
	
	/**
	 * Are mouse/stylus move/drag events supported?
	 *
	 * @return {@code true} if they are supported.
	 * @since 2016/10/14
	 */
	public boolean hasPointerMotionEvents()
	{






		return 0 != (this.getCapabilities() &
			ExtendedCapabilities.SUPPORTS_POINTER_EVENTS);

	}
	
	/**
	 * Is this display built into the device or is it an auxiliary display?
	 *
	 * @return {@code true} if it is built-in.
	 * @since 2016/10/14