LSlider:setValue() does not have NotificationType exposed

Home Forums General Programming LSlider:setValue() does not have NotificationType exposed

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29510
    synth
    Participant
      • Topics: 13
      • Replies: 35
      • Total: 48

      If I create a slider and try to call :
      mySlider:getOwnedSlider():setValue(10, 0)

      ERROR: No matching overload found, candidates:
      void setValue(Slider&,custom [double],custom [enum juce::NotificationType])

      How do I expose [enum juce::NotificationType] to Lua ?

      #29512
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        I think this should be enough somewhere:

        class_<NotificationType>("NotificationType")

        i just added this to LSlider.cpp and i’ll commit that code today.

        #29516
        synth
        Participant
          • Topics: 13
          • Replies: 35
          • Total: 48

          Thanks so much.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The forum ‘Programming’ is closed to new topics and replies.
        There is currently 0 users and 135 guests online
        No users are currently active
        Forum Statistics
        Threads: 2,495, Posts: 17,374, Members: 77,605
        Most users ever online was 12 on January 22, 2019 3:47 pm
        Ctrlr