Méthodes fréquemment utilisées
Méthodes fréquemment utilisées
Méthodes fréquemment utilisées
Méthodes fréquemment utilisées
void CheckBox::AlignSizeToContent() { TextureManager *dc = GetManager()->GetTextureManager(); float th = dc->GetFrameHeight(_fontTexture, 0); float tw = dc->GetFrameWidth(_fontTexture, 0); float bh = dc->GetFrameHeight(_boxTexture, GetFrame()); float bw = dc->GetFrameWidth(_boxTexture, GetFrame()); Resize(bw + (tw - 1) * (float) GetText().length(), std::max(th + 1, bh)); }