window.h File Reference

#include <gtk/gtkwindow.h>
#include <string>
#include "debugging/debugging.h"
#include "generic/callback.h"
#include "widget.h"
Include dependency graph for window.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  WindowPosition
class  WindowPositionTracker

Defines

#define INCLUDED_GTKUTIL_WINDOW_H

Typedefs

typedef struct _GtkScrolledWindow GtkScrolledWindow
typedef ReferenceCaller1
< WindowPosition, const char
*, WindowPosition_Parse > 
WindowPositionImportStringCaller
typedef ConstReferenceCaller1
< WindowPosition, const
StringImportCallback
&, WindowPosition_Write > 
WindowPositionExportStringCaller
typedef ReferenceCaller1
< WindowPositionTracker, const
char
*, WindowPositionTracker_importString > 
WindowPositionTrackerImportStringCaller
typedef ConstReferenceCaller1
< WindowPositionTracker, const
StringImportCallback
&, WindowPositionTracker_exportString > 
WindowPositionTrackerExportStringCaller

Functions

gboolean window_focus_in_clear_focus_widget (GtkWidget *widget, GdkEventKey *event, gpointer data)
guint window_connect_focus_in_clear_focus_widget (GtkWindow *window)
unsigned int connect_floating (GtkWindow *main_window, GtkWindow *floating)
GtkWindowcreate_floating_window (const std::string &title, GtkWindow *parent)
void destroy_floating_window (GtkWindow *window)
GtkWindowcreate_persistent_floating_window (const std::string &title, GtkWindow *main_window)
gboolean persistent_floating_window_delete (GtkWindow *floating, GdkEvent *event, GtkWindow *main_window)
void window_remove_minmax (GtkWindow *window)
GtkScrolledWindowcreate_scrolled_window (GtkPolicyType hscrollbar_policy, GtkPolicyType vscrollbar_policy, int border=0)
static const WindowPosition c_default_window_pos (50, 25, 800, 600)
void window_get_position (GtkWindow *window, WindowPosition &position)
void window_set_position (GtkWindow *window, const WindowPosition &position)
void WindowPosition_Parse (WindowPosition &position, const char *value)
void WindowPosition_Write (const WindowPosition &position, const StringImportCallback &importCallback)
void WindowPositionTracker_importString (WindowPositionTracker &self, const char *value)
void WindowPositionTracker_exportString (const WindowPositionTracker &self, const StringImportCallback &importer)

Define Documentation

#define INCLUDED_GTKUTIL_WINDOW_H

Definition at line 23 of file window.h.


Typedef Documentation

typedef struct _GtkScrolledWindow GtkScrolledWindow

Definition at line 52 of file window.h.

typedef ConstReferenceCaller1<WindowPosition, const StringImportCallback&, WindowPosition_Write> WindowPositionExportStringCaller

Definition at line 109 of file window.h.

typedef ReferenceCaller1<WindowPosition, const char*, WindowPosition_Parse> WindowPositionImportStringCaller

Definition at line 100 of file window.h.

typedef ConstReferenceCaller1<WindowPositionTracker, const StringImportCallback&, WindowPositionTracker_exportString> WindowPositionTrackerExportStringCaller

Definition at line 164 of file window.h.

typedef ReferenceCaller1<WindowPositionTracker, const char*, WindowPositionTracker_importString> WindowPositionTrackerImportStringCaller

Definition at line 157 of file window.h.


Function Documentation

static const WindowPosition c_default_window_pos ( 50  ,
25  ,
800  ,
600   
) [static]

Referenced by WindowPosition_Parse().

unsigned int connect_floating ( GtkWindow main_window,
GtkWindow floating 
)
GtkWindow* create_floating_window ( const std::string title,
GtkWindow parent 
)
GtkWindow* create_persistent_floating_window ( const std::string title,
GtkWindow main_window 
)
GtkScrolledWindow* create_scrolled_window ( GtkPolicyType  hscrollbar_policy,
GtkPolicyType  vscrollbar_policy,
int  border = 0 
)
void destroy_floating_window ( GtkWindow window  ) 
gboolean persistent_floating_window_delete ( GtkWindow floating,
GdkEvent *  event,
GtkWindow main_window 
)
guint window_connect_focus_in_clear_focus_widget ( GtkWindow window  )  [inline]

Definition at line 38 of file window.h.

References window_focus_in_clear_focus_widget().

gboolean window_focus_in_clear_focus_widget ( GtkWidget widget,
GdkEventKey *  event,
gpointer  data 
) [inline]

Definition at line 32 of file window.h.

Referenced by window_connect_focus_in_clear_focus_widget().

void window_get_position ( GtkWindow window,
WindowPosition position 
) [inline]

Definition at line 71 of file window.h.

References WindowPosition::h, WindowPosition::w, WindowPosition::x, and WindowPosition::y.

void window_remove_minmax ( GtkWindow window  ) 
void window_set_position ( GtkWindow window,
const WindowPosition position 
) [inline]
void WindowPosition_Parse ( WindowPosition position,
const char *  value 
) [inline]
void WindowPosition_Write ( const WindowPosition position,
const StringImportCallback importCallback 
) [inline]
void WindowPositionTracker_exportString ( const WindowPositionTracker self,
const StringImportCallback importer 
) [inline]

Definition at line 159 of file window.h.

References WindowPosition_Write().

void WindowPositionTracker_importString ( WindowPositionTracker self,
const char *  value 
) [inline]

Definition at line 150 of file window.h.

References WindowPosition_Parse().


Generated by  doxygen 1.6.2