![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum GtkInteractiveActionId; GtkWidget * (*GtkInteractiveBuild) (VisuUiMain *main
,gchar **label
,gchar **help
,GtkWidget **radio
); void (*GtkInteractiveStartStop) (VisuRenderingWindow *window
); guint gtkInteractiveAdd_action (GtkInteractiveBuild build
,GtkInteractiveStartStop start
,GtkInteractiveStartStop stop
); void gtkInteractiveInit (); void gtkInteractiveToggle (); void gtkInteractiveBuild_window (VisuUiMain *main
); void gtkInteractiveInit_session (VisuRenderingWindow *window
); void gtkInteractive_setMessage (const gchar *message
,GtkMessageType type
); void gtkInteractive_unsetMessage ();
typedef enum { action_observe, action_pick, action_move, /*< private >*/ n_preset_actions } GtkInteractiveActionId;
Possibe actions.
GtkWidget * (*GtkInteractiveBuild) (VisuUiMain *main
,gchar **label
,gchar **help
,GtkWidget **radio
);
One can create new tab in the interactive dialog window by providing routines with this prototype.
|
the main interface. |
|
a location to store the name of the tab ; |
|
a location to store the help message to be shown at the bottom of the window ; |
|
a location on the radio button that will be toggled when the desired action is used. |
Returns : |
a new container to be include as a tab in the interactive dialog window. |
void (*GtkInteractiveStartStop) (VisuRenderingWindow *window
);
Routines of this prototype are called each time the interactive mode should be changed.
|
the rendering window that starts or stops the interaction defined in the tab. |
guint gtkInteractiveAdd_action (GtkInteractiveBuild build
,GtkInteractiveStartStop start
,GtkInteractiveStartStop stop
);
One can add new interactive mode with specific tab in the interactive dialog.
|
a routine to build a tab. |
|
a routine to run when session is selected. |
|
a routine to run when session is stopped. |
Returns : |
an id for this new action. |
Since 3.6
void gtkInteractiveInit ();
Initialise the observe/pick window, connect the signals, give names to widgets...
void gtkInteractiveToggle ();
The user can switch between a current specific interactive action and the observe mode. This routine is used to do this.*
Since 3.6
void gtkInteractiveBuild_window (VisuUiMain *main
);
create the window.
|
the command panel the about dialog is associated to. |
void gtkInteractiveInit_session (VisuRenderingWindow *window
);
Start the observe & pick session.
|
the current rendering widget. |
void gtkInteractive_setMessage (const gchar *message
,GtkMessageType type
);
Show a message in the interactive dialog.
|
a string. |
|
the type of message. |
Since 3.6
void gtkInteractive_unsetMessage ();
Hide any message from the interactive dialog. See also
gtkInteractive_setMessage()
.
Since 3.6