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__ 58 typedef void SoWinComponentCB(
void * user,
SoWinComponent * component);
59 typedef void SoWinComponentVisibilityCB(
void * user, SbBool visible);
69 virtual void show(
void);
70 virtual void hide(
void);
72 virtual void setComponentCursor(
const SoWinCursor & cursor);
73 static void setWidgetCursor(HWND w,
const SoWinCursor & cursor);
75 SbBool isFullScreen(
void)
const;
76 SbBool setFullScreen(
const SbBool onoff);
78 SbBool isVisible(
void);
79 SbBool isTopLevelShell(
void)
const;
81 HWND getWidget(
void)
const;
82 HWND getBaseWidget(
void)
const;
83 HWND getShellWidget(
void)
const;
84 HWND getParentWidget(
void)
const;
86 void setSize(
const SbVec2s size);
89 void setTitle(
const char *
const title);
90 const char * getTitle(
void)
const;
91 void setIconTitle(
const char *
const title);
92 const char * getIconTitle(
void)
const;
94 const char * getWidgetName(
void)
const;
95 const char * getClassName(
void)
const;
97 void setWindowCloseCallback(SoWinComponentCB *
const func,
98 void *
const user = NULL);
101 static void initClasses(
void);
105 const char *
const name = NULL,
106 const SbBool embed = TRUE);
108 virtual void afterRealizeHook(
void);
114 #ifndef __COIN_SOQT__ 116 #endif // __COIN_SOQT__ 118 void setClassName(
const char *
const name);
119 void setBaseWidget(HWND widget);
121 void registerWidget(HWND widget);
122 void unregisterWidget(HWND widget);
124 virtual const char * getDefaultWidgetName(
void)
const;
125 virtual const char * getDefaultTitle(
void)
const;
126 virtual const char * getDefaultIconTitle(
void)
const;
128 virtual void sizeChanged(
const SbVec2s & size);
130 void addVisibilityChangeCallback(SoWinComponentVisibilityCB *
const func,
131 void *
const user = NULL);
132 void removeVisibilityChangeCallback(SoWinComponentVisibilityCB *
const func,
133 void *
const user = NULL);
136 class SoWinComponentP * pimpl;
137 friend class SoGuiComponentP;
138 friend class SoWinComponentP;
145 Display * getDisplay(
void);
146 void fitSize(
const SbVec2s size);
149 void addWindowCloseCallback(SoXtComponentCB * callback,
void * closure = NULL);
150 void removeWindowCloseCallback(SoXtComponentCB * callback,
void * closure = NULL);
155 void invokeVisibilityChangeCallbacks(
const SbBool enable)
const;
156 void invokeWindowCloseCallbacks(
void)
const;
157 virtual void windowCloseAction(
void);
161 static void event_handler(Widget, XtPointer, XEvent *, Boolean *);
162 #endif // __COIN_SOXT__ 164 #ifdef __COIN_SOGTK__ 166 virtual SbBool eventFilter(GtkWidget *
object, GdkEvent * event);
168 static gint eventHandler(GtkWidget *
object, GdkEvent * event, gpointer closure);
169 #endif // __COIN_SOGTK__ 174 #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:63