|
| Window (int width, int height, bool resiseable=true) |
| default constructor More...
|
|
| Window () |
|
void | init (int width=0, int height=0, bool resiseable=true) |
| the initialisation of the window (common to both constructors) More...
|
|
void | setBackgroundColour (GdkColor *colour, GtkStateType state=GTK_STATE_NORMAL) |
|
void | setBackgroundColour (const char *colourName, GtkStateType state=GTK_STATE_NORMAL) |
|
void | setBorder (unsigned int size) |
|
unsigned int | getBorder (void) |
|
Container & | operator<< (Container &c) |
|
Container & | operator<< (Container *c) |
|
Container & | operator<< (Widget &w) |
|
Container & | operator<< (Widget *w) |
|
virtual Container & | operator<< (GtkWidget *w) |
|
Container & | operator<< (LinkList< GtkWidget *> &ll) |
|
Container & | operator>> (GtkWidget *w) |
|
Container & | operator>> (Container *c) |
|
Container & | operator>> (Container &c) |
|
Container & | operator>> (LinkList< GtkWidget *> &ll) |
|
void | setChildrensSensitivity (bool sens) |
|
bool | areAnyChildrensSensitive (void) |
|
unsigned int | size () |
|
| Widget () |
| Construcotr. More...
|
|
| Widget (GtkWidget *w) |
|
virtual | ~Widget () |
| Destructor. More...
|
|
GtkWidget * | ref (void) |
|
void | unref (void) |
|
GtkWidget * | show (void) |
|
GtkWidget * | hide (void) |
|
bool | getVisible (void) |
|
GtkWidget * | getWidget (void) |
|
bool | getSensitive (void) |
|
void | setSensitive (bool sens) |
|
void | getSize (int &width, int &height) |
|
virtual void | setSize (int width, int height) |
|
void | getLocationSize (int &x, int &y, int &width, int &height) |
|
void | queueDraw () |
|
GdkWindow * | getWindow () |
|
void | connect (const char *event, GCallback callback, gpointer data) |
|
void | connectAfter (const char *event, GCallback callback, gpointer data) |
|
void | connectExposeEventCallback (GCallback callback, void *data) |
|
void | connectExposeEventCallback (GtkWidget *w, GCallback callback, void *data) |
|
void | connectConfigureEventCallback (GCallback callback, void *data) |
|
void | connectConfigureEventCallback (GtkWidget *w, GCallback callback, void *data) |
|
Widget & | operator<< (DragNDrop &dnd) |
|
Widget & | operator>> (DragNDrop &dnd) |
|
|
virtual void | pack (GtkWidget *obj) |
|
virtual bool | checkDropValidity (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData) |
|
virtual bool | dragDataReceived (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData, int length) |
|
virtual void | dragLeave (GtkWidget *w, GtkWidget *sourceWidget) |
|
virtual bool | dragMotion (GtkWidget *w, GtkWidget *sourceWidget, int x, int y) |
|
virtual int | chooseTheTargetToUse (GtkWidget *w, GtkWidget *sourceWidget, DragNDrop &dnd) |
|
virtual void | dragDataGet (GtkWidget *w, GtkSelectionData *selectionData, guint info) |
|
virtual void | dragDataDelete (GtkWidget *w) |
|
virtual void | dragBegin (GtkWidget *w) |
|
virtual void | dragEnd (GtkWidget *w) |
|
GtkWidget * | widget |
| The container based widget. More...
|
|
static bool Window::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 186 of file Window.H.