geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
Go to the source code of this file.
Classes | |
struct | _GeanyPong |
struct | _GeanyPongClass |
Macros | |
#define | AREA_SIZE 300 |
#define | BALL_SIZE 4 |
#define | BORDER_THIKNESS 4 |
#define | HANDLE_THIKNESS 4 |
#define | HANDLE_SHRINK 3 |
#define | GEANY_TYPE_PONG (geany_pong_get_type()) |
#define | GEANY_PONG(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GEANY_TYPE_PONG, GeanyPong)) |
#define | GEANY_IS_PONG(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GEANY_TYPE_PONG)) |
Typedefs | |
typedef struct _GeanyPong | GeanyPong |
typedef struct _GeanyPongClass | GeanyPongClass |
Functions | |
static void | geany_pong_finalize (GObject *obj) |
static void | geany_pong_response (GtkDialog *self, gint response) |
static GType | geany_pong_get_type (void) |
static gboolean | geany_pong_area_draw (GtkWidget *area, cairo_t *cr, GeanyPong *self) |
static void | geany_pong_reset_ball (GeanyPong *self) |
static void | geany_pong_update_score (GeanyPong *self) |
static gboolean | geany_pong_area_timeout (gpointer data) |
static gboolean | geany_pong_area_button_press (GtkWidget *area, GdkEventButton *event, GeanyPong *self) |
static gboolean | geany_pong_area_motion_notify (GtkWidget *area, GdkEventMotion *event, GeanyPong *self) |
static void | geany_pong_class_init (GeanyPongClass *klass) |
static void | geany_pong_init (GeanyPong *self) |
static void | geany_pong_help (GeanyPong *self) |
static GtkWidget * | geany_pong_new (GtkWindow *parent) |
static gboolean | gb_on_key_pressed (GtkWidget *widget, GdkEventKey *event, gpointer user_data) |
#define GEANY_IS_PONG | ( | o | ) | (G_TYPE_CHECK_INSTANCE_TYPE((o), GEANY_TYPE_PONG)) |
#define GEANY_PONG | ( | o | ) | (G_TYPE_CHECK_INSTANCE_CAST((o), GEANY_TYPE_PONG, GeanyPong)) |
#define GEANY_TYPE_PONG (geany_pong_get_type()) |
typedef struct _GeanyPong GeanyPong |
typedef struct _GeanyPongClass GeanyPongClass |
|
static |
Definition at line 436 of file gb.c.
References geany_pong_new(), if(), text, and utils_str_equal().
Referenced by create_dialog().
|
static |
Definition at line 259 of file gb.c.
References geany_pong_area_timeout(), _GeanyPong::handle_width, and _GeanyPong::source_id.
Referenced by geany_pong_init().
|
static |
Definition at line 87 of file gb.c.
References _GeanyPong::area_height, _GeanyPong::area_width, _GeanyPong::ball_pos, BALL_SIZE, BORDER_THIKNESS, _GeanyPong::handle_pos, HANDLE_THIKNESS, _GeanyPong::handle_width, NULL, and _GeanyPong::source_id.
Referenced by geany_pong_init().
|
static |
Definition at line 279 of file gb.c.
References _GeanyPong::area_width, BORDER_THIKNESS, _GeanyPong::handle_pos, _GeanyPong::handle_width, and if().
Referenced by geany_pong_init().
|
static |
Definition at line 180 of file gb.c.
References _GeanyPong::area, _GeanyPong::area_height, _GeanyPong::area_width, _GeanyPong::ball_pos, BALL_SIZE, _GeanyPong::ball_speed, _GeanyPong::ball_vec, BORDER_THIKNESS, geany_pong_reset_ball(), geany_pong_update_score(), _GeanyPong::handle_pos, HANDLE_SHRINK, HANDLE_THIKNESS, _GeanyPong::handle_width, MAX, _GeanyPong::score, and _GeanyPong::source_id.
Referenced by geany_pong_area_button_press().
|
static |
Definition at line 292 of file gb.c.
References geany_pong_finalize(), and geany_pong_response().
|
static |
Definition at line 356 of file gb.c.
References GEANY_PONG, and _GeanyPong::source_id.
Referenced by geany_pong_class_init().
|
static |
Definition at line 367 of file gb.c.
References dialog, gtk_container_add(), gtk_widget_show_all(), and NULL.
Referenced by geany_pong_response().
|
static |
Definition at line 302 of file gb.c.
References _GeanyPong::area, _GeanyPong::area_height, AREA_SIZE, _GeanyPong::area_width, geany_pong_area_button_press(), geany_pong_area_draw(), geany_pong_area_motion_notify(), geany_pong_reset_ball(), gtk_widget_show_all(), _GeanyPong::handle_pos, _GeanyPong::handle_width, label, NULL, _GeanyPong::score, _GeanyPong::score_label, and _GeanyPong::source_id.
|
static |
Definition at line 430 of file gb.c.
References GEANY_TYPE_PONG, and NULL.
Referenced by gb_on_key_pressed().
|
static |
Definition at line 159 of file gb.c.
References _GeanyPong::area_height, _GeanyPong::area_width, _GeanyPong::ball_pos, _GeanyPong::ball_speed, and _GeanyPong::ball_vec.
Referenced by geany_pong_area_timeout(), and geany_pong_init().
|
static |
Definition at line 414 of file gb.c.
References GEANY_IS_PONG, GEANY_PONG, and geany_pong_help().
Referenced by geany_pong_class_init().
|
static |
Definition at line 171 of file gb.c.
References _GeanyPong::score, and _GeanyPong::score_label.
Referenced by geany_pong_area_timeout().