module ui.FontButton; import ui.Control; class FontButton : Control { protected uiFontButton * _fontButton; mixin EventListenerMixin!("OnChanged", FontButton); this() { _fontButton = uiNewFontButton(); super(cast(uiControl *) _fontButton); uiFontButtonOnChanged(_fontButton, &OnChangedCallback, cast(void *) this); } // TODO: replace uiDrawTextFont to DrawTextFont uiDrawTextFont * font() { return uiFontButtonFont(_fontButton); } }