How do I programmatically access the widgets encapsulated in a C++ class created by RapidApp?
In general, you should not. A class is (or should be) a class because it represents an abstraction. The details are encapsulated in the class. A class is not merely a collection of widgets. Think of the class as an entity in its own right and design the API of the class independent of its implementation. For example, assume you would like to change a label in a class to “red” to indicate an error condition has occurred. You can write an access function for the label element and use XtSetValues(), and so on, to change the color, but this would be a flagrant violation of encapsulation and object-oriented design. Specifically, the internal details of your implementation (that you have a specific label widget whose color can be set directly) have now become part of your public API.