gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
EventBox Class Reference

#include <EventBox.H>

Inheritance diagram for EventBox:
[legend]
Collaboration diagram for EventBox:
[legend]

Public Member Functions

 EventBox (void)
 
void setBackgroundColour (GdkColor *colour, GtkStateType state=GTK_STATE_NORMAL)
 
void setBackgroundColour (const char *colourName, GtkStateType state=GTK_STATE_NORMAL)
 
void setAboveChild (bool aboveChild)
 
void setVisibleWindow (bool visible)
 
- Public Member Functions inherited from Box
 Box (void)
 constructor More...
 
Boxoperator<< (BoxIS bis)
 destructor destroys the widget to neatly cleanup. More...
 
Boxoperator<< (Box &b)
 
Boxoperator<< (int val)
 
Boxoperator<< (Box *b)
 
Boxoperator<< (Container &b)
 
Boxoperator<< (Container *b)
 
Boxoperator<< (GtkWidget *b)
 
Boxoperator<< (Widget *w)
 
Boxoperator<< (Widget &w)
 
Boxoperator<< (LinkList< GtkWidget *> &ll)
 
Boxoperator>> (GtkWidget *b)
 
Boxoperator>> (Container *b)
 
Boxoperator>> (Container &b)
 
Boxoperator= (const Box b)
 
- Public Member Functions inherited from BoxIS
 BoxIS (void)
 
 BoxIS (bool expandIn, bool fillIn)
 
 BoxIS (bool expandIn, bool fillIn, bool startIn)
 
void reset (void)
 
void setDefaultStart (bool startIn)
 
void setDefaultExpand (bool expandIn)
 
void setDefaultFill (bool fillIn)
 
BoxISoperator= (BoxIS &bis)
 
BoxISoperator= (const BoxIS bis)
 
void dump (void)
 
- Public Member Functions inherited from Container
void setBorder (unsigned int size)
 
unsigned int getBorder (void)
 
Containeroperator<< (Container &c)
 
Containeroperator<< (Container *c)
 
Containeroperator<< (Widget &w)
 
Containeroperator<< (Widget *w)
 
Containeroperator<< (LinkList< GtkWidget *> &ll)
 
Containeroperator>> (GtkWidget *w)
 
Containeroperator>> (Container *c)
 
Containeroperator>> (Container &c)
 
Containeroperator>> (LinkList< GtkWidget *> &ll)
 
void setChildrensSensitivity (bool sens)
 
bool areAnyChildrensSensitive (void)
 
unsigned int size ()
 
- Public Member Functions inherited from Widget
 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)
 
Widgetoperator<< (DragNDrop &dnd)
 
Widgetoperator>> (DragNDrop &dnd)
 

Private Member Functions

virtual void pack (GtkWidget *obj)
 

Additional Inherited Members

- Public Types inherited from Box
enum  {
  EXPAND =1, FILL =2, START =4, RESET =8,
  END =16, NOFILL =32, NOEXPAND =64
}
 
- Public Attributes inherited from BoxIS
bool expand
 Set to expand the box contents. More...
 
bool fill
 Set to fill the box. More...
 
bool start
 Set to pack the start. More...
 
- Protected Member Functions inherited from Widget
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)
 
- Protected Attributes inherited from Widget
GtkWidget * widget
 The container based widget. More...
 

Detailed Description

Examples:
DragNDropNowindowTest.C.

Definition at line 23 of file EventBox.H.

Constructor & Destructor Documentation

◆ EventBox()

EventBox::EventBox ( void  )
inline

Constructor defaults to children below with a visible window

Definition at line 36 of file EventBox.H.

Here is the call graph for this function:

Member Function Documentation

◆ pack()

virtual void EventBox::pack ( GtkWidget *  obj)
inlineprivatevirtual

The function called to pack GTK widgets into the event box. Overloads Box::pack

Parameters
objThe GtkWidget to add to the container

Reimplemented from Box.

Definition at line 28 of file EventBox.H.

◆ setAboveChild()

void EventBox::setAboveChild ( bool  aboveChild)
inline

Whether to set the event box above it's children

Parameters
aboveChildif true, then set above the children, false will set it below.

Definition at line 63 of file EventBox.H.

Here is the caller graph for this function:

◆ setBackgroundColour() [1/2]

void EventBox::setBackgroundColour ( GdkColor *  colour,
GtkStateType  state = GTK_STATE_NORMAL 
)
inline

set the background colour of the top window

Parameters
colourThe GdkColour to change the background to
stateThe colour for a particular state. Defaults to GTK_STATE_NORMAL

Definition at line 46 of file EventBox.H.

Here is the caller graph for this function:

◆ setBackgroundColour() [2/2]

void EventBox::setBackgroundColour ( const char *  colourName,
GtkStateType  state = GTK_STATE_NORMAL 
)
inline

set the background colour of the top window

Parameters
colourNameThe name of the colour to use. e.g. "white"
stateThe colour for a particular state. Defaults to GTK_STATE_NORMAL

Definition at line 54 of file EventBox.H.

Here is the call graph for this function:

◆ setVisibleWindow()

void EventBox::setVisibleWindow ( bool  visible)
inline

Whether the event box is visible (can change background and so on)

Parameters
visibletrue to show, false to hide

Definition at line 70 of file EventBox.H.

Here is the caller graph for this function:

The documentation for this class was generated from the following file:
gtkIOStream: EventBox Class Reference
GTK+ IOStream  Beta