UIFontDescription.cpp 537 B

12345678910111213141516171819202122232425262728293031323334
  1. #include <TurboBadger/tb_widgets.h>
  2. #include <TurboBadger/tb_widgets_common.h>
  3. #include <TurboBadger/tb_layout.h>
  4. #include "UI.h"
  5. #include "UIEvents.h"
  6. #include "UIWidget.h"
  7. #include "UIFontDescription.h"
  8. using namespace tb;
  9. namespace Atomic
  10. {
  11. UIFontDescription::UIFontDescription(Context* context) : Object(context)
  12. {
  13. }
  14. UIFontDescription::~UIFontDescription()
  15. {
  16. }
  17. void UIFontDescription::SetId(const String& id)
  18. {
  19. desc_.SetID(TBIDC(id.CString()));
  20. }
  21. void UIFontDescription::SetSize(int size)
  22. {
  23. desc_.SetSize(size);
  24. }
  25. }