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 1

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_TextOp
» Wimp_TextOp (Calculate Width of String)

Wimp_TextOp (Calculate Width of String)

(Reason Code 1)
Entry
R0 1
R1 Pointer to string
R2 Number of Characters to scan, or
0 for whole string
Exit
R0 String width in OS units
R1 Preserved
R2 Preserved

Use

With a reason code of 1, this call returns the width of a specified string using the current desktop font.

Notes

This is often used prior to plotting a string to an icon, in case the icon needs to be resized.

The value returned is in OS units.

See also

  • Wimp_ResizeIcon
  • Wimp_SetFontColours
  • Wimp_TextOp
  • Wimp_TextOp 0
  • Wimp_TextOp 2
  • Wimp_TextOp 3
  • Wimp_TextOp 4
Created on June 15, 2009 21:35:57 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: Wimp_TextOp, Wimp_TextOp 0, Wimp_TextOp 2, Wimp_TextOp 3, Wimp_TextOp 4, Validation String X

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