Example #1
0
 void resized()
 {
     Font font = csPlayerLabel->getFont();
     int width = font.getStringWidth(csPlayerLabel->getText());
     const int offset = 5, fontOffset = 2;
     csPlayerLabel->setBounds(proportionOfWidth(0.17f), proportionOfWidth(0.04f), width, (int)font.getHeight() );
     font.setHeight(16.0000f);
     csPlayerSite->setBounds(0, csPlayerLabel->getHeight() + 20, getWidth(), font.getHeight() + fontOffset);
     csPlayerSource->setBounds(0, csPlayerLabel->getHeight() + 20 + csPlayerSite->getHeight(), getWidth(), font.getHeight() + fontOffset);
     int height = csPlayerLabel->getHeight() + 25 + csPlayerSite->getHeight() + (offset*2);
     csPlayerGroupComponent->setBounds(0, height, getWidth(), 90);
     csPlayerDetailTE->setBounds(fontOffset, height + offset + fontOffset, getWidth() - offset, 80);
     csTeamgroupComponent->setBounds(0, height + 90, getWidth(), 90);
     csTeamTE->setBounds(fontOffset, height + 90 + offset + fontOffset, getWidth() - offset, 80);
     csLicencegroupComponent->setBounds(0, height + 180, getWidth(), 90);
     csLicenceTE->setBounds(fontOffset, height + 180 + offset + fontOffset, getWidth() - offset, 80);
 }
 /** inline method for getting serverIP address */
 inline String getServerIPAddress() { return serverIPTextEditor->getText(); }
 /**  inline method for getting clientname */
 inline String getClientName() { return clientNameTextEditor->getText(); }
 /**  inline method for getting portnumber */
 inline int getPortNumber(){ return portNumberTextEditor->getText().getIntValue(); }