Cinder 无法在应用程序运行时更新窗口的标题

Cinder can't update window's title when the application is running

本文关键字:更新 窗口 标题 运行时 应用程序 Cinder      更新时间:2023-10-16

我尝试将设置 *settings 复制到类变量并使用

sets->setTitle("new title");

但是在 setup() 方法之外它不起作用。有没有解决方法?

应用中包含煤渣应用标头的所有位置

#include "cinder/app/AppNative.h"

可以调用此函数来更改标题和其他 Window 属性。

ci::app::getWindow()->setTitle("Respoducir Video");

更新 - 15/12/2018

煤渣 v0.9.1

包含路径已更改为:

#include "cinder/app/Window.h"