The OpenD Programming Language

OperatingSystemFont.stringWidth

Returns the width of the string as drawn on the specified window, or the default screen if the window is null.

  1. int stringWidth(const(char)[] s, SimpleWindow window)
  2. int stringWidth(const(wchar)[] s, SimpleWindow window)
    class OperatingSystemFont
    version(Windows)
    int
    stringWidth
    (
    scope const(wchar)[] s
    ,)

Meta

History

Added January 16, 2021