I'm not very good at C++ so prepare for improper use of terms.
Basically I want to gather a bunch of functions inside a sub class of another class, so I would interface with it kinda like this:
mainWindow.add.menubar();
            ^- this is the part I don't know how to do
My class looks something like this at the moment:
namespace GUI {
    class Window {
    public:
        std::string title = "Empty Title";
        int show();
        // Using a struct didn't work but it's what I have at the moment.
        struct add {
            int menubar();
        };
    };
}
Obviously I could simply use mainWindow.addMenubar() but it would be much nicer to add it to a subclass (sub object? I don't know, I'm more used to Javascript programming).
And yes, I'm basically creating my own GUI framework with insufficient C++ expertise, I know it's a bad idea, but it didn't stop me from modifying the Linux kernel to allow me to install Nethunter on my Samsung S4 and it's not gonna stop me now.
 
     
    