Classes | Macros | Enumerations | Functions | Variables
callbacks.cpp File Reference
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <list>
#include "callbacks.h"
#include "interface.h"
#include "../../svm.h"
Include dependency graph for callbacks.cpp:

Go to the source code of this file.

Classes

struct  point
 

Macros

#define DEFAULT_PARAM   "-t 2 -c 100"
 
#define XLEN   500
 
#define YLEN   500
 

Enumerations

enum  { SAVE, LOAD }
 

Functions

void clear_all ()
 
void draw_all_points ()
 
void draw_point (const point &p)
 
void on_button_change_clicked (GtkButton *button, gpointer user_data)
 
void on_button_clear_clicked (GtkButton *button, gpointer user_data)
 
void on_button_load_clicked (GtkButton *button, gpointer user_data)
 
void on_button_run_clicked (GtkButton *button, gpointer user_data)
 
void on_button_save_clicked (GtkButton *button, gpointer user_data)
 
gboolean on_draw_main_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
 
gboolean on_draw_main_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
 
void on_filesel_cancel_clicked (GtkButton *button, gpointer user_data)
 
void on_filesel_ok_clicked (GtkButton *button, gpointer user_data)
 
void on_fileselection_destroy (GtkObject *object, gpointer user_data)
 
void on_window1_destroy (GtkObject *object, gpointer user_data)
 
void redraw_area (GtkWidget *widget, int x, int y, int w, int h)
 
void show_fileselection ()
 
void svm_toy_initialize ()
 

Variables

GdkColor colors []
 
int current_value = 1
 
GtkWidget * draw_main
 
GtkWidget * entry_option
 
GtkWidget * fileselection
 
static enum { ... }  fileselection_flag
 
GdkGC * gc
 
GdkPixmap * pixmap
 
list< pointpoint_list
 

Macro Definition Documentation

◆ DEFAULT_PARAM

#define DEFAULT_PARAM   "-t 2 -c 100"

Definition at line 12 of file callbacks.cpp.

◆ XLEN

#define XLEN   500

Definition at line 13 of file callbacks.cpp.

◆ YLEN

#define YLEN   500

Definition at line 14 of file callbacks.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SAVE 
LOAD 

Definition at line 343 of file callbacks.cpp.

Function Documentation

◆ clear_all()

void clear_all ( )

Definition at line 83 of file callbacks.cpp.

◆ draw_all_points()

void draw_all_points ( )

Definition at line 77 of file callbacks.cpp.

◆ draw_point()

void draw_point ( const point p)

Definition at line 70 of file callbacks.cpp.

◆ on_button_change_clicked()

void on_button_change_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 92 of file callbacks.cpp.

◆ on_button_clear_clicked()

void on_button_clear_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 307 of file callbacks.cpp.

◆ on_button_load_clicked()

void on_button_load_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 371 of file callbacks.cpp.

◆ on_button_run_clicked()

void on_button_run_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 100 of file callbacks.cpp.

◆ on_button_save_clicked()

void on_button_save_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 362 of file callbacks.cpp.

◆ on_draw_main_button_press_event()

gboolean on_draw_main_button_press_event ( GtkWidget *  widget,
GdkEventButton *  event,
gpointer  user_data 
)

Definition at line 321 of file callbacks.cpp.

◆ on_draw_main_expose_event()

gboolean on_draw_main_expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  user_data 
)

Definition at line 332 of file callbacks.cpp.

◆ on_filesel_cancel_clicked()

void on_filesel_cancel_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 448 of file callbacks.cpp.

◆ on_filesel_ok_clicked()

void on_filesel_ok_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 379 of file callbacks.cpp.

◆ on_fileselection_destroy()

void on_fileselection_destroy ( GtkObject *  object,
gpointer  user_data 
)

Definition at line 442 of file callbacks.cpp.

◆ on_window1_destroy()

void on_window1_destroy ( GtkObject *  object,
gpointer  user_data 
)

Definition at line 314 of file callbacks.cpp.

◆ redraw_area()

void redraw_area ( GtkWidget *  widget,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 62 of file callbacks.cpp.

◆ show_fileselection()

void show_fileselection ( )

Definition at line 345 of file callbacks.cpp.

◆ svm_toy_initialize()

void svm_toy_initialize ( )

Definition at line 43 of file callbacks.cpp.

Variable Documentation

◆ colors

GdkColor colors[]
Initial value:
=
{
{0, 0, 0, 0},
{0, 0, 120 << 8, 120 << 8},
{0, 120 << 8, 120 << 8, 0},
{0, 120 << 8, 0, 120 << 8},
{0, 0, 200 << 8, 200 << 8},
{0, 200 << 8, 200 << 8, 0},
{0, 200 << 8, 0, 200 << 8},
}

Definition at line 16 of file callbacks.cpp.

◆ current_value

int current_value = 1

Definition at line 41 of file callbacks.cpp.

◆ draw_main

GtkWidget * draw_main

Definition at line 29 of file callbacks.cpp.

◆ entry_option

GtkWidget * entry_option

Definition at line 31 of file callbacks.cpp.

◆ fileselection

GtkWidget* fileselection

Definition at line 342 of file callbacks.cpp.

◆ fileselection_flag

enum { ... } fileselection_flag

◆ gc

GdkGC* gc

Definition at line 27 of file callbacks.cpp.

◆ pixmap

GdkPixmap* pixmap

Definition at line 28 of file callbacks.cpp.

◆ point_list

list<point> point_list

Definition at line 40 of file callbacks.cpp.



ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Mon Feb 28 2022 22:46:49