Skip to content
Hyomoto edited this page Dec 12, 2020 · 13 revisions
Jump To Go Back Arguments Methods Variables

String( string )

Implements: None

Provides a wrapper for the basic string data type, as well as an interface for implementing extended String types.

var _string = new String( "Hello World!" );

Arguments

Name Type Purpose
string string Sets the initial contents of this String

Methods

Jump To top size set draw draw_ext width height is toArray toString

size()

Returns: N/A undefined

Name Type Purpose
None

returns the number of characters in the String


set( string )

Returns: N/A undefined

Name Type Purpose
string string Sets the contents of this String

draw( _x, _y, _font, _color )

Returns: N/A undefined

Name Type Purpose
_x undef none provided
_y undef none provided
_font undef none provided
_color undef none provided

draw_ext( _x, _y, _font, _color, _halign, _valign )

Returns: N/A undefined

Name Type Purpose
_x undef none provided
_y undef none provided
_font undef none provided
_color undef none provided
_halign undef none provided
_valign undef none provided

width( _font )

Returns: N/A undefined

Name Type Purpose
_font undef none provided

height( _font )

Returns: N/A undefined

Name Type Purpose
_font undef none provided

is( type )

Returns: boolean (true or false)

Name Type Purpose
type Constructor The Constructor to compare this against.

Returns true if the provided type is String.


toArray()

Returns: array ([values...])

Name Type Purpose
None

Returns the structure as a array.


toString()

Returns: string ("string")

Name Type Purpose
None

Returns the structure as a string.


Variables

Jump To top
  • content - none provided
Clone this wiki locally