![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
GTK dialog and status windowing functions. More...
#include <sys/types.h>#include <stdarg.h>#include <libgen.h>#include <stdlib.h>#include <unistd.h>#include <cstring>#include <iostream>#include <fstream>#include <cmath>#include "rnr/rnrconfig.h"#include "rnr/log.h"#include "opencv2/core/core.hpp"#include "opencv/highgui/highgui.hpp"#include <gtk/gtk.h>#include "rnr/appkit/Win.h"Go to the source code of this file.
Functions | |
| static gboolean | SBTimerAlarm (gpointer user_data) |
| static void | SBTimerStart (uint_t uMSec) |
| Start the Status Bar timer. More... | |
| static void | SBTimerStop () |
| Stop the Status Bar timer. | |
| void | SBFrameEvent (GtkWindow *window, GdkEvent *event, gpointer data) |
| Capture frame event for status bar. More... | |
| gboolean | SBOnWindowState (GtkWidget *w, GdkEventKey *event, gpointer *user_data) |
| Window state change event handler. More... | |
| static void | CreateStatusBar (rnrWindow *pWin) |
| Create status bar. More... | |
Variables | |
| static GtkWidget * | SBWidget = NULL |
| status bar gtk widget | |
| static bool | SBIsVisible = false |
| status bar is [not] visible | |
| static GtkWindow * | SBWindow = NULL |
| status bar gtk window | |
| static GtkWidget * | SBLabelWidget = NULL |
| status bar label gtk widget | |
| static CvRect | SBWinGeom = {0, } |
| status bar window geometry | |
| guint | SBTimerId = 0 |
| statue bar timer | |
GTK dialog and status windowing functions.
Definition in file WinGtkMsg.cxx.
|
static |
Create status bar.
| pWin | Application window. |
Definition at line 281 of file WinGtkMsg.cxx.
References SBIsVisible, SBLabelWidget, SBOnWindowState(), SBTimerId, SBTimerStart(), SBTimerStop(), SBWidget, SBWindow, and SBWinGeom.
| void SBFrameEvent | ( | GtkWindow * | window, |
| GdkEvent * | event, | ||
| gpointer | data | ||
| ) |
Capture frame event for status bar.
| window | GTK window. |
| event | The event (e.g. mouse click) |
| data | Application data. |
Definition at line 254 of file WinGtkMsg.cxx.
| gboolean SBOnWindowState | ( | GtkWidget * | w, |
| GdkEventKey * | event, | ||
| gpointer * | user_data | ||
| ) |
Window state change event handler.
| w | Widget where keyboard event occurred. |
| event | State change event. |
| user_data | Supplied user data. |
Definition at line 269 of file WinGtkMsg.cxx.
Referenced by CreateStatusBar().
|
static |
Start the Status Bar timer.
| uMSec | Timeout in milliseconds. |
Definition at line 226 of file WinGtkMsg.cxx.
References SBTimerId.
Referenced by CreateStatusBar().