auto myFrameView = new FrameView(); // set up contents view within myFrameView auto contentsView = new View(); // calculate height of contentsView int contentsHeight = calculateContentsHeight(); myFrameView->setContents(contentsView); myFrameView->setContentsHeight(contentsHeight);
auto myFrameView = new FrameView(); // set up contents view within myFrameView auto contentsView = new View(); myFrameView->setContents(contentsView); // get height of contents view int contentsHeight = myFrameView->getContentsHeight();This example creates a new FrameView and a contents view within it. It then retrieves the contentsHeight property of the FrameView and stores it in the contentsHeight variable. Package/Library: JUCE C++ Framework Overall, the FrameView contentsHeight property is a helpful tool for managing the contents within a view and ensuring that they fit properly. JUCE C++ Framework provides this functionality as part of its library.