HISE Logo Forum
    • Categories
    • Register
    • Login

    setPosition() doesn't accept arrays?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 95 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • toxonicT
      toxonic
      last edited by toxonic

      Maybe a silly question, since the API says, the setPosition() function needs 4 integers for x,y,width, and height but nevertheless my question:
      Is there a way to make it accept an array with 4 ints in it? i'm afraid, the answer is no, but iI just wanted to ask, because i use some sets of values a couple of times, and this would make the code a bit cleaner an more readable using arrays instead....

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @toxonic
        last edited by

        @toxonic Why can't you do .setPosition(array[0], array[1], array[2], array[3]);?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        23

        Online

        1.7k

        Users

        11.8k

        Topics

        102.5k

        Posts