浏览代码

win-fixed-size

David Rose 16 年之前
父节点
当前提交
53274c354a
共有 3 个文件被更改,包括 12 次插入1 次删除
  1. 10 1
      panda/src/display/config_display.cxx
  2. 1 0
      panda/src/display/config_display.h
  3. 1 0
      panda/src/display/windowProperties.cxx

+ 10 - 1
panda/src/display/config_display.cxx

@@ -278,7 +278,16 @@ ConfigVariableBool fullscreen
 ("fullscreen", false);
 ("fullscreen", false);
 
 
 ConfigVariableBool undecorated
 ConfigVariableBool undecorated
-("undecorated", false);
+("undecorated", false,
+ PRC_DESC("This specifies the default value of the 'undecorated' window "
+          "property.  When this is true, the default window is created "
+          "without a title bar or resizable border."));
+
+ConfigVariableBool win_fixed_size
+("win-fixed-size", false,
+ PRC_DESC("This specifies the default value of the 'fixed_size' window "
+          "property.  When this is true, the default window is created "
+          "without a resizable border."));
 
 
 ConfigVariableBool cursor_hidden
 ConfigVariableBool cursor_hidden
 ("cursor-hidden", false);
 ("cursor-hidden", false);

+ 1 - 0
panda/src/display/config_display.h

@@ -68,6 +68,7 @@ extern EXPCL_PANDA_DISPLAY ConfigVariableInt win_size;
 extern EXPCL_PANDA_DISPLAY ConfigVariableInt win_origin;
 extern EXPCL_PANDA_DISPLAY ConfigVariableInt win_origin;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool fullscreen;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool fullscreen;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool undecorated;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool undecorated;
+extern EXPCL_PANDA_DISPLAY ConfigVariableBool win_fixed_size;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool cursor_hidden;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool cursor_hidden;
 extern EXPCL_PANDA_DISPLAY ConfigVariableFilename icon_filename;
 extern EXPCL_PANDA_DISPLAY ConfigVariableFilename icon_filename;
 extern EXPCL_PANDA_DISPLAY ConfigVariableFilename cursor_filename;
 extern EXPCL_PANDA_DISPLAY ConfigVariableFilename cursor_filename;

+ 1 - 0
panda/src/display/windowProperties.cxx

@@ -74,6 +74,7 @@ get_config_properties() {
 
 
   props.set_fullscreen(fullscreen);
   props.set_fullscreen(fullscreen);
   props.set_undecorated(undecorated);
   props.set_undecorated(undecorated);
+  props.set_fixed_size(win_fixed_size);
   props.set_cursor_hidden(cursor_hidden);
   props.set_cursor_hidden(cursor_hidden);
   if (!icon_filename.empty()) {
   if (!icon_filename.empty()) {
     props.set_icon_filename(icon_filename);
     props.set_icon_filename(icon_filename);