1 #ifndef SOWIN_COMPONENT_H 2 #define SOWIN_COMPONENT_H 38 #include <Inventor/SbLinear.h> 39 #include <Inventor/Win/SoWinObject.h> 43 #endif // __COIN_SOQT__ 45 #include <X11/Intrinsic.h> 46 #endif // __COIN_SOXT__ 49 #endif // __COIN_SOGTK__ 52 #endif // __COIN_SOWIN__ 55 #endif // __COIN_SOWX__ 61 typedef void SoWinComponentCB(
void * user,
SoWinComponent * component);
62 typedef void SoWinComponentVisibilityCB(
void * user, SbBool visible);
72 virtual void show(
void);
73 virtual void hide(
void);
75 virtual void setComponentCursor(
const SoWinCursor & cursor);
76 static void setWidgetCursor(HWND w,
const SoWinCursor & cursor);
78 SbBool isFullScreen(
void)
const;
79 SbBool setFullScreen(
const SbBool onoff);
81 SbBool isVisible(
void);
82 SbBool isTopLevelShell(
void)
const;
84 HWND getWidget(
void)
const;
85 HWND getBaseWidget(
void)
const;
86 HWND getShellWidget(
void)
const;
87 HWND getParentWidget(
void)
const;
89 void setSize(
const SbVec2s size);
92 void setTitle(
const char *
const title);
93 const char * getTitle(
void)
const;
94 void setIconTitle(
const char *
const title);
95 const char * getIconTitle(
void)
const;
97 const char * getWidgetName(
void)
const;
98 const char * getClassName(
void)
const;
100 void setWindowCloseCallback(SoWinComponentCB *
const func,
101 void *
const user = NULL);
104 static void initClasses(
void);
108 const char *
const name = NULL,
109 const SbBool embed = TRUE);
111 virtual void afterRealizeHook(
void);
117 #ifndef __COIN_SOQT__ 119 #endif // __COIN_SOQT__ 121 void setClassName(
const char *
const name);
122 void setBaseWidget(HWND widget);
124 void registerWidget(HWND widget);
125 void unregisterWidget(HWND widget);
127 virtual const char * getDefaultWidgetName(
void)
const;
128 virtual const char * getDefaultTitle(
void)
const;
129 virtual const char * getDefaultIconTitle(
void)
const;
131 virtual void sizeChanged(
const SbVec2s & size);
133 void addVisibilityChangeCallback(SoWinComponentVisibilityCB *
const func,
134 void *
const user = NULL);
135 void removeVisibilityChangeCallback(SoWinComponentVisibilityCB *
const func,
136 void *
const user = NULL);
139 class SoWinComponentP * pimpl;
140 friend class SoGuiComponentP;
141 friend class SoWinComponentP;
148 Display * getDisplay(
void);
149 void fitSize(
const SbVec2s size);
152 void addWindowCloseCallback(SoXtComponentCB * callback,
void * closure = NULL);
153 void removeWindowCloseCallback(SoXtComponentCB * callback,
void * closure = NULL);
158 void invokeVisibilityChangeCallbacks(
const SbBool enable)
const;
159 void invokeWindowCloseCallbacks(
void)
const;
160 virtual void windowCloseAction(
void);
164 static void event_handler(Widget, XtPointer, XEvent *, Boolean *);
165 #endif // __COIN_SOXT__ 167 #ifdef __COIN_SOGTK__ 169 virtual SbBool eventFilter(GtkWidget *
object, GdkEvent * event);
171 static gint eventHandler(GtkWidget *
object, GdkEvent * event, gpointer closure);
172 #endif // __COIN_SOGTK__ 177 #endif // ! SOWIN_COMPONENT_H The SoWinCursor class is used to set cursors for GUI components.
Definition: SoWinCursor.h:41
The SoWinObject class is the common superclass for all SoWin component classes.
Definition: SoWinObject.h:48
The SoWinComponent class is the base class for all GUI components.
Definition: SoWinComponent.h:66