当应用程序 运行 时,Cinder 无法更新 window 的标题
Cinder can't update window's title when the application is running
我尝试将设置 *settings 复制到 class 变量并使用
sets->setTitle("new title");
但在 setup() 方法之外它不起作用。有解决办法吗?
应用中包含 cinder 应用的所有地方 header
#include "cinder/app/AppNative.h"
您可以调用它来更改标题和其他 Window 属性。
ci::app::getWindow()->setTitle("Respoducir Video");
更新 - 2018 年 12 月 15 日
Cinder v0.9.1
包含路径已更改为:
#include "cinder/app/Window.h"
我尝试将设置 *settings 复制到 class 变量并使用
sets->setTitle("new title");
但在 setup() 方法之外它不起作用。有解决办法吗?
应用中包含 cinder 应用的所有地方 header
#include "cinder/app/AppNative.h"
您可以调用它来更改标题和其他 Window 属性。
ci::app::getWindow()->setTitle("Respoducir Video");
更新 - 2018 年 12 月 15 日
Cinder v0.9.1
包含路径已更改为:
#include "cinder/app/Window.h"