#include <gtkInterface.H>
|
static gint | quit (GtkWidget *widget, GdkEvent *event, gpointer data) |
|
static bool | fillBorder (GtkWidget *widget, GdkEventExpose *event, gpointer data) |
|
static bool | fillBannerTop (GtkWidget *widget, GdkEventExpose *event, gpointer data) |
|
static bool | fillBannerMiddle (GtkWidget *widget, GdkEventExpose *event, gpointer data) |
|
static bool | fillBannerBottom (GtkWidget *widget, GdkEventExpose *event, gpointer data) |
|
Definition at line 181 of file gtkInterface.H.
Enumerator |
---|
BORDER_LEFT |
|
BORDER_RIGHT |
|
BORDER_TOP |
|
BORDER_BOTTOM |
|
Definition at line 226 of file gtkInterface.H.
GtkInterface::GtkInterface |
( |
void |
| ) |
|
|
inline |
GtkInterface::GtkInterface |
( |
int |
width, |
|
|
int |
height, |
|
|
bool |
resiseable = true |
|
) |
| |
|
inline |
constructor specifying window size and resideable options
- Parameters
-
width | the width of the window |
height | the height of the window |
resiseable | whether the window can be resised. |
Definition at line 250 of file gtkInterface.H.
GtkInterface::~GtkInterface |
( |
void |
| ) |
|
|
inline |
static bool GtkInterface::fillBannerBottom |
( |
GtkWidget * |
widget, |
|
|
GdkEventExpose * |
event, |
|
|
gpointer |
data |
|
) |
| |
|
inlinestatic |
Callback method to fill the boarder as if a bottom banner were present
- Parameters
-
widget | The widget which triggered the event |
event | The event which was triggered |
data | A pointer to this instance |
- Returns
- false to keep propagating the event
Definition at line 385 of file gtkInterface.H.
static bool GtkInterface::fillBannerMiddle |
( |
GtkWidget * |
widget, |
|
|
GdkEventExpose * |
event, |
|
|
gpointer |
data |
|
) |
| |
|
inlinestatic |
Callback method to fill the boarder as if a middle banner were present
- Parameters
-
widget | The widget which triggered the event |
event | The event which was triggered |
data | A pointer to this instance |
- Returns
- false to keep propagating the event
Definition at line 374 of file gtkInterface.H.
static bool GtkInterface::fillBannerTop |
( |
GtkWidget * |
widget, |
|
|
GdkEventExpose * |
event, |
|
|
gpointer |
data |
|
) |
| |
|
inlinestatic |
Callback method to fill the boarder as if a top banner were present
- Parameters
-
widget | The widget which triggered the event |
event | The event which was triggered |
data | A pointer to this instance |
- Returns
- false to keep propagating the event
Definition at line 363 of file gtkInterface.H.
static bool GtkInterface::fillBorder |
( |
GtkWidget * |
widget, |
|
|
GdkEventExpose * |
event, |
|
|
gpointer |
data |
|
) |
| |
|
inlinestatic |
Callback method to fill the boarder from the edge of the widget to the edge of this window.
this->borderFill = BORDER_LEFT|BORDER_RIGHT will fill both left and right borders The fill colour is made to be the same as the widget backround colour. The following example is for a HBox, but could also be a VBox or any other widget.
HBox.
connectAfter(
"expose-event", G_CALLBACK(GTKWindow.fillBorder), (gpointer)>KWindow);
HBox.
connectAfter(
"visibility-notify-event", G_CALLBACK(GTKWindow.fillBorder), (gpointer)>KWindow);
In this example, the border between the widget and the GTKWindow is filled with the widget's background colour.
- Parameters
-
widget | The widget which triggered the event |
event | The event which was triggered |
data | A pointer to this instance |
- Returns
- false to keep propagating the event
Definition at line 352 of file gtkInterface.H.
bool GtkInterface::fillBorderImplementation |
( |
GtkWidget * |
widget, |
|
|
int |
borderFillVar = -1 |
|
) |
| |
|
inlineprivate |
GtkWidget* GtkInterface::getWidget |
( |
void |
| ) |
|
|
inline |
Get the window widget
- Returns
- the GtkWidget win
Definition at line 234 of file gtkInterface.H.
void GtkInterface::init |
( |
int |
width = 0 , |
|
|
int |
height = 0 , |
|
|
bool |
resiseable = true |
|
) |
| |
|
inline |
the initialisation of the window (common to both constructors)
- Parameters
-
width | the width of the window |
height | the height of the window |
resiseable | whether the window can be resised. |
Definition at line 262 of file gtkInterface.H.
static gint GtkInterface::quit |
( |
GtkWidget * |
widget, |
|
|
GdkEvent * |
event, |
|
|
gpointer |
data |
|
) |
| |
|
inlinestatic |
void GtkInterface::setBackgroundColour |
( |
GdkColor * |
colour, |
|
|
GtkStateType |
state = GTK_STATE_NORMAL |
|
) |
| |
|
inline |
set the background colour of the top window
- Parameters
-
colour | The GdkColour to change the background to |
state | The colour for a particular state. Defaults to GTK_STATE_NORMAL |
Definition at line 325 of file gtkInterface.H.
void GtkInterface::setBackgroundColour |
( |
const char * |
colourName, |
|
|
GtkStateType |
state = GTK_STATE_NORMAL |
|
) |
| |
|
inline |
set the background colour of the top window
- Parameters
-
colourName | The name of the colour to use. e.g. "white" |
state | The colour for a particular state. Defaults to GTK_STATE_NORMAL |
Definition at line 333 of file gtkInterface.H.
int GtkInterface::borderFill |
Used if the fillBorder callback is in use.
Definition at line 227 of file gtkInterface.H.
GtkWidget* GtkInterface::win |
The documentation for this class was generated from the following file: