Panda3D
config_pgui.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file config_pgui.cxx
10  * @author drose
11  * @date 2001-07-02
12  */
13 
14 #include "config_pgui.h"
15 #include "pgButton.h"
16 #include "pgCullTraverser.h"
17 #include "pgEntry.h"
19 #include "pgMouseWatcherGroup.h"
20 #include "pgItem.h"
22 #include "pgMouseWatcherRegion.h"
23 #include "pgScrollFrame.h"
24 #include "pgSliderBar.h"
25 #include "pgTop.h"
26 #include "pgVirtualFrame.h"
27 #include "pgWaitBar.h"
28 
29 #include "dconfig.h"
30 
31 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_PGUI)
32  #error Buildsystem error: BUILDING_PANDA_PGUI not defined
33 #endif
34 
35 Configure(config_pgui);
36 NotifyCategoryDef(pgui, "");
37 
38 ConfigureFn(config_pgui) {
39  init_libpgui();
40 }
41 
42 ConfigVariableDouble scroll_initial_delay
43 ("scroll-initial-delay", 0.3,
44  PRC_DESC("This is the amount of time, in seconds, to delay after the user "
45  "first clicks and holds on a scrollbar button before the scrolling "
46  "continues automatically."));
47 
48 ConfigVariableDouble scroll_continued_delay
49 ("scroll-continued-delay", 0.1,
50  PRC_DESC("This is the amount of time, in seconds, to delay between lines "
51  "scrolled while the user is continuing to hold down the scrollbar "
52  "button."));
53 
54 /**
55  * Initializes the library. This must be called at least once before any of
56  * the functions or classes in this library can be used. Normally it will be
57  * called by the static initializers and need not be called explicitly, but
58  * special cases exist.
59  */
60 void
62  static bool initialized = false;
63  if (initialized) {
64  return;
65  }
66  initialized = true;
67 
68  PGButton::init_type();
69  PGCullTraverser::init_type();
70  PGEntry::init_type();
71  PGMouseWatcherParameter::init_type();
72  PGMouseWatcherGroup::init_type();
73  PGItem::init_type();
74  PGMouseWatcherBackground::init_type();
75  PGMouseWatcherRegion::init_type();
76  PGScrollFrame::init_type();
77  PGSliderBar::init_type();
78  PGTop::init_type();
79  PGVirtualFrame::init_type();
80  PGWaitBar::init_type();
81 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libpgui()
Initializes the library.
Definition: config_pgui.cxx:61
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as a floating- point type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.