#include <locator.h>
Collaboration diagram for Locator:
Public Member Functions | |
Locator () | |
~Locator () | |
void | show (bool tf) |
void | configure (GtkWidget *widget) |
void | render (GdkRectangle *area=0) |
void | view_changed (unsigned char *data, int datalen) |
gint | mouse_press (GdkEventButton *event) |
gint | mouse_release (GdkEventButton *event) |
gint | mouse_motion (GdkEventMotion *event) |
Static Public Member Functions | |
static void | vscrolled (GtkAdjustment *adj, gpointer data) |
static void | hscrolled (GtkAdjustment *adj, gpointer data) |
Private Member Functions | |
void | send_location () |
void | query_location () |
void | goto_mouse (int mx, int my, bool delay_send=false) |
Static Private Member Functions | |
static gint | delayed_send_location (gpointer data) |
Private Attributes | |
GtkWidget * | win |
GtkWidget * | draw |
GdkGC * | drawgc |
GtkAdjustment * | hadj |
GtkAdjustment * | vadj |
int | tx |
int | ty |
int | txs |
int | tys |
int | scale |
GdkRectangle | viewbox |
bool | dragging |
int | drag_relx |
int | drag_rely |
int | send_location_timer |
Written: March 2, 2002 - JSF
Definition at line 31 of file locator.h.
Locator::Locator | ( | ) |
Definition at line 166 of file locator.cc.
References c_chunks_per_schunk, c_num_chunks, ExultStudio::get_instance(), and ExultStudio::get_xml().
Here is the call graph for this function:
Locator::~Locator | ( | ) |
Definition at line 200 of file locator.cc.
void Locator::send_location | ( | ) | [private] |
Definition at line 402 of file locator.cc.
References ExultStudio::get_instance(), ExultStudio::send_to_server(), Exult_server::view_pos, and Write4().
Referenced by delayed_send_location().
Here is the call graph for this function:
void Locator::query_location | ( | ) | [private] |
Definition at line 422 of file locator.cc.
References ExultStudio::get_instance(), ExultStudio::send_to_server(), Exult_server::view_pos, and Write4().
Here is the call graph for this function:
gint Locator::delayed_send_location | ( | gpointer | data | ) | [static, private] |
Definition at line 442 of file locator.cc.
References send_location(), and send_location_timer.
Here is the call graph for this function:
void Locator::goto_mouse | ( | int | mx, | |
int | my, | |||
bool | delay_send = false | |||
) | [private] |
Definition at line 457 of file locator.cc.
References c_num_chunks, c_num_tiles, and c_tiles_per_chunk.
void Locator::show | ( | bool | tf | ) |
Definition at line 213 of file locator.cc.
Referenced by on_loc_close_clicked(), and on_loc_window_delete_event().
void Locator::configure | ( | GtkWidget * | widget | ) |
void Locator::render | ( | GdkRectangle * | area = 0 |
) |
Definition at line 248 of file locator.cc.
References c_num_chunks, c_num_schunks, c_num_tiles, and c_tiles_per_chunk.
Referenced by on_loc_draw_expose_event().
void Locator::view_changed | ( | unsigned char * | data, | |
int | datalen | |||
) |
Definition at line 336 of file locator.cc.
References c_tiles_per_chunk, dragging, and Read4().
Here is the call graph for this function:
void Locator::vscrolled | ( | GtkAdjustment * | adj, | |
gpointer | data | |||
) | [static] |
void Locator::hscrolled | ( | GtkAdjustment * | adj, | |
gpointer | data | |||
) | [static] |
gint Locator::mouse_press | ( | GdkEventButton * | event | ) |
Definition at line 510 of file locator.cc.
References dragging.
Referenced by on_loc_draw_button_press_event().
gint Locator::mouse_release | ( | GdkEventButton * | event | ) |
Definition at line 543 of file locator.cc.
References dragging.
Referenced by on_loc_draw_button_release_event().
gint Locator::mouse_motion | ( | GdkEventMotion * | event | ) |
Definition at line 556 of file locator.cc.
References dragging.
Referenced by on_loc_draw_motion_notify_event().
GtkWidget* Locator::win [private] |
GtkWidget* Locator::draw [private] |
GdkGC* Locator::drawgc [private] |
GtkAdjustment* Locator::hadj [private] |
GtkAdjustment * Locator::vadj [private] |
int Locator::tx [private] |
int Locator::ty [private] |
int Locator::txs [private] |
int Locator::tys [private] |
int Locator::scale [private] |
GdkRectangle Locator::viewbox [private] |
bool Locator::dragging [private] |
int Locator::drag_relx [private] |
int Locator::drag_rely [private] |
int Locator::send_location_timer [private] |