Table of Contents

Utilities

Helper routines


  • func lookup_class( atom this )   
  • func lookup_class_name( sequence name )   
  • func wx_alloc( integer bytes )   
  • func wx_alloc_string( sequence string )   
  • func wx_free( atom ptr )   
  • func wx_or_all( sequence a )   
  • func wx_peek_string( atom string )   


    Table of Contents

    [func]
    lookup_class
    ( atom this )

    Category: Utilities

    Returns the class name for the object, as long as it was either created by new_instance() or registered by register_instance().

    See Also: lookup_class_name, wx_alloc, wx_alloc_string, wx_free, wx_or_all, wx_peek_string



    Table of Contents

    [func]
    lookup_class_name
    ( sequence name )

    Category: Utilities

    Returns the value of the associated class.

    See Also: lookup_class, wx_alloc, wx_alloc_string, wx_free, wx_or_all, wx_peek_string



    Table of Contents

    [func]
    wx_alloc
    ( integer bytes )

    Category: Utilities

    Allocates a bytes long chunk of memory and sets it to all zeroes.

    See Also: lookup_class, lookup_class_name, wx_alloc_string, wx_free, wx_or_all, wx_peek_string



    Table of Contents

    [func]
    wx_alloc_string
    ( sequence string )

    Category: Utilities

    Allocates a sequence as a C-style string. This function currently calls Euphoria's built-in allocate_string() To create a wxString, you should use the create() function.

    See Also: lookup_class, lookup_class_name, wx_alloc, wx_free, wx_or_all, wx_peek_string



    Table of Contents

    [func]
    wx_free
    ( atom ptr )

    Category: Utilities

    Frees an allocated chunk of memory.

    See Also: lookup_class, lookup_class_name, wx_alloc, wx_alloc_string, wx_or_all, wx_peek_string



    Table of Contents

    [func]
    wx_or_all
    ( sequence a )

    Category: Utilities

    Executes a bitwise or operation on a sequence of atoms. Use this to convert from a C/C++ style:

        THING1|THING2|THING3
    

    wx_or_all( THING1 & THING2 & THING3 )

    See Also: lookup_class, lookup_class_name, wx_alloc, wx_alloc_string, wx_free, wx_peek_string



    Table of Contents

    [func]
    wx_peek_string
    ( atom string )

    Category: Utilities

    Returns a sequence of the string stored in a wxString object. Do not pass the pointer to a string allocated by wx_alloc_string().

    See Also: lookup_class, lookup_class_name, wx_alloc, wx_alloc_string, wx_free, wx_or_all