RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Wimp_TextOp 2

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_TextOp
» Wimp_TextOp (Plot Text)

Wimp_TextOp (Plot Text)

(Reason Code 2)
Entry
R0 2 + bits (See below)
Bits
30 Verically justify, so baseline of characters is at same height as when using system font
31 Right justify (as per R4, R5)
R1 Pointer to string
R2 -1
R3 -1
R4 X co-ordinate
R5 Y co-ordinate
Exit
R0 String width in OS units
R1 Preserved
R2 Preserved

Use

With a reason code of 2, this call plots text on screen using the current desktop font.

Notes

Bits 30 & 31 is used to specifiy the justification of the text.

This call should be used from within a redraw loop.

Because an outline font may be used, the background colour of the font must be specified, so that the anti-aliasing colours can be set-up.

See also

  • Wimp_SetFontColours
  • Wimp_TextOp
  • Wimp_TextOp 0
  • Wimp_TextOp 1
  • Wimp_TextOp 3
  • Wimp_TextOp 4
Created on June 15, 2009 21:35:23 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: Wimp_TextOp, Wimp_TextOp 0, Wimp_TextOp 1, Wimp_TextOp 3, Wimp_TextOp 4

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys