编码 GTK+没有窗口管理器的应用程序?

发布于 2024-09-02 04:06:03 字数 300 浏览 4 评论 0原文

我想编码某事。基本上就像 TiVo 一样工作。打开它,您只能看到菜单或输出,因此用户无法直接看到底层操作系统或其他任何内容。

所以我想使用Linux作为基础。你能建议一个好的基础分布吗?

  1. 我可以在没有启动和运行窗口管理器的情况下编写前端代码吗?
  2. 如果是,您建议使用 java-gnome 或哪种语言/gui 框架组合可以实现这一点吗?
  3. 如果不是,那么可以处理精美菜单等的最小窗口管理器是什么?
  4. 在高清流上创建视频叠加需要什么?有一些我应该看的图书馆吗?

谢谢

I want to code sth. that basically works like TiVo. Switch it on, you only see the menu or an output, so no underlying OS or anything else is directly visible to the user.

So I want to use Linux as base. Can you suggest a good base distribution?

  1. Can I code a frontend without having a window-manager up and running?
  2. If yes, is that possible with java-gnome or what language/gui-framework combination would you suggest?
  3. If no, what's the minimal window manager that can handle fancy menus, etc?
  4. What does it take to create video-overlays over a HD-stream? Are there some libraries I should take a look at?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

滥情哥ㄟ 2024-09-09 04:06:03
  1. 是的。如果您只有一个窗口,则不需要窗口管理器。使用 X,您可以启动某些应用程序并从命令行设置其位置和大小(使其全屏显示)。如果这是您想要的,您可能想看看 xinit。这可能是让某些东西发挥作用的最简单的原因。但另一种选择是跳过 X 并使用 DirectFB。另一方面,如果您想显示多个窗口,则需要某种窗口管理器来管理它们。

  2. 只要你运行 X,使用 java-gnome 作为框架就没有问题,如果你愿意的话。我猜你并不是想运行普通的 gnome 应用程序,而是自己编写用户可见的所有内容。

  3. 这很大程度上取决于您对精美菜单的理解。如果您指的是透明度等,您需要一个复合管理器(如果您不只是在应用程序窗口中自己渲染所有内容)。我对此不确定,但我认为如果您认为合适,您可以运行独立于窗口管理器的复合管理器。同样,这是如果您运行 X。使用 DirectFB 透明度等可以以更简单的方式完成。

  4. 如果您打算编写自己的媒体播放器,您应该看看GStreamer。它可以流式传输、解码和显示视频,还可以添加视频叠加(除其他外),并且非常易于使用。

  1. Yes. If you only have one window you don't need a window manager. Using X you can start some application and set it's position and size from the commandline (making it fullscreen). You might want to take a look at xinit if this is what you want. This is likely the easiest why to get something working. But another option is skip X and use DirectFB. If you want to display several windows, on the other hand, you need some sort of window manager to manage them.

  2. As long as you run X there is no problem using java-gnome as framework if that's what you are confortable with. I guess you didn't mean to run the stock gnome applications, but code everything visible to the user yourself.

  3. This very much depends on what you mean with fancy menus. If you mean transparancy and such you need a composite manager (if you don't just render everything yourself inside your application window). I'm not sure about this but I think you can run a composite manager independent from a window manager if you find that suitable. Again, this is if you run X. Using DirectFB transparency and such are done in a more simple way.

  4. If you intend to write your own media player you should take a look at GStreamer. It can stream, decode and display video and also add video-overlays (among other things) and is extremly easy to use.

黑凤梨 2024-09-09 04:06:03

简约的平铺窗口管理方式类似于 AwesomeRatpoisonXMonad 可能可以作为基础,否则你会必须自己管理焦点和窗口大小。通常很容易使这些对用户不可见。

Minimalistic tiling window manages like Awesome, Ratpoison or XMonad may be useful as a base, otherwise you'll have to manage focus and window sizing yourself. It is normally fairly easy to make these invisible to the user.

著墨染雨君画夕 2024-09-09 04:06:03
  1. 绝对
  2. 如果没有窗口管理器,我不会指望 Gnome 本身能够工作。除此之外...语言并不重要。
  3. 窗口管理器只进行窗口管理。菜单等是小部件工具包的工作。无论如何,Metacity。
  4. ……这个我一无所知。
  1. Absolutely.
  2. I wouldn't count on Gnome itself working without a window manager. Other than that... language doesn't matter.
  3. Window managers only do window management. Menus and the like are the job of the widget toolkit. Anyways, Metacity.
  4. ... This one I have no clue about.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文