如何删除Linux上FLTK中的标题栏 /未加工的窗口?
最近,我最近在Linux上使用FLTK做了一些事情,现在我想知道如何删除标题栏 /未修复的窗口。目标操作系统是Linux,但是如果它在Wayland和Xorg上运行,则可以优选。
I have been doing some things with FLTK on Linux lately, and now I've wondered how I can remove the title bar / undecorate the window. The target Operating System is Linux, but it would be preferrable if it runs on wayland as well as on xorg.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以使用两个功能:
border(int b)
和clear_border()
。border(int b)
函数告诉窗口管理器是否显示边框:请参见在这里文档。这可以在执行过程中使用。另一个有用的功能是
clear_border()
:在fl_window :: show()
函数之前调用它,使窗口管理器隐藏了边框。参见下面的(简单)代码显示了如何使用这些功能。
There are two functions that can be used:
border(int b)
andclear_border()
.The
border(int b)
function tells to the window manager to show or not the border: see here the documentation. This can be used during the execution.The other useful function is
clear_border()
: calling it before theFl_Window::show()
function makes the window manager hide the border. See here the documentation.The (simple) code below shows how to use these functions.