【问题标题】:Is there a function in NCurses to get the location of a window?NCurses 中是否有获取窗口位置的功能?
【发布时间】:2018-03-17 10:25:48
【问题描述】:

使用 NCurses 和 newwin() 创建窗口时,前两个参数是窗口左上角的坐标。要查找窗口的大小,我可以使用getmaxyx()。我可以对窗口的(当前)左上角坐标做同样的事情吗?我在手册页中找不到类似的功能。

【问题讨论】:

    标签: c++ linux window ncurses


    【解决方案1】:

    信息在同一手册页中:

    getyx 一样,getbegyxgetmaxyx 宏存储当前开始坐标 和指定窗口的大小。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多