Check-in [3b901912d8]

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

Overview
Comment:Implement part of copy area.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3b901912d89092e5a13e575f71ebb9db063d0344
User & Date: stephanie.gawroriski 2019-05-20 12:10:11
Context
2019-05-20
12:35
In the list demo set some alternative fonts. check-in: 7508c51408 user: stephanie.gawroriski tags: trunk
12:10
Implement part of copy area. check-in: 3b901912d8 user: stephanie.gawroriski tags: trunk
2019-05-19
19:30
Do not search for blank resource images in the launcher. check-in: 96b2a8c43a user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/apis/midp-lcdui/cc/squirreljme/runtime/lcdui/gfx/AdvancedGraphics.java.

291
292
293
294
295
296
297



































298
299
300
301
302
303
304
	 * @since 2019/03/24
	 */
	@Override
	public void copyArea(int __sx, int __sy, int __w, int __h,
		int __dx, int __dy, int __anchor)
		throws IllegalArgumentException, IllegalStateException
	{



































		this.__unimplemented(__dx, __dy, "copyArea");
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/03/24
	 */







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
	 * @since 2019/03/24
	 */
	@Override
	public void copyArea(int __sx, int __sy, int __w, int __h,
		int __dx, int __dy, int __anchor)
		throws IllegalArgumentException, IllegalStateException
	{
		// Need translation coordinates
		int tx = this.transx,
			ty = this.transy;
		
		// Image size
		int iw = this.width,
			ih = this.height;
		
		// Translate all coordinates
		__sx += tx;
		__sy += ty;
		__dx += tx;
		__dy += ty;
		
		// Perform needed anchoring
		if ((__anchor & Graphics.HCENTER) != 0)
			__dx -= (__w >> 1);
		else if ((__anchor & Graphics.RIGHT) != 0)
			__dx -= __w;
		if ((__anchor & Graphics.VCENTER) != 0)
			__dy -= (__h >> 1);
		else if ((__anchor & Graphics.BOTTOM) != 0)
			__dy -= __h;
		
		// End coordinates for both
		int sex = __sx + __w,
			sey = __sx + __h,
			dex = __dx + __w,
			dey = __dx + __h;
		
		// {@squirreljme.error EB3f Source region for area copy is out of
		// bounds.}
		if (__sx < 0 || __sy < 0 || sex > iw || sey > ih)
			throw new IllegalArgumentException("EB3f");
		
		this.__unimplemented(__dx, __dy, "copyArea");
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/03/24
	 */

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

314
315
316
317
318
319
320
321
322
323
324
325
326
		else if (List.class.isAssignableFrom(__cl))
			return LIST;
		else if (TabbedPane.class.isAssignableFrom(__cl))
			return TABBED_PANE;
		else if (TextBox.class.isAssignableFrom(__cl))
			return TEXT_BOX;
		
		// {@squirreljme.error EB3d Could not get the drawing method of the
		// given class. (The class)}
		throw new IllegalArgumentException("EB3d " + __cl);
	}
}








|

|



314
315
316
317
318
319
320
321
322
323
324
325
326
		else if (List.class.isAssignableFrom(__cl))
			return LIST;
		else if (TabbedPane.class.isAssignableFrom(__cl))
			return TABBED_PANE;
		else if (TextBox.class.isAssignableFrom(__cl))
			return TEXT_BOX;
		
		// {@squirreljme.error EB3e Could not get the action method of the
		// given class. (The class)}
		throw new IllegalArgumentException("EB3e " + __cl);
	}
}