#include <shapedraw.h>
Inheritance diagram for Shape_draw:
Public Member Functions | |
Shape_draw (Vga_file *i, unsigned char *palbuf, GtkWidget *drw) | |
virtual | ~Shape_draw () |
void | show (GdkDrawable *drawable, int x, int y, int w, int h) |
void | show (int x, int y, int w, int h) |
void | show () |
guint32 | get_color (int i) |
void | draw_shape (Shape_frame *shape, int x, int y) |
void | draw_shape (int shapenum, int framenum, int x, int y) |
void | draw_shape_outline (int shapenum, int framenum, int x, int y, unsigned char color) |
void | draw_shape_centered (int shapenum, int framenum) |
virtual void | render () |
void | set_background_color (guint32 c) |
void | configure () |
void | enable_drop (Drop_callback callback, void *udata) |
void | set_drag_icon (GdkDragContext *context, Shape_frame *shape) |
void | start_drag (char *target, int id, GdkEvent *event) |
void | mouse_up () |
Static Public Member Functions | |
static void | drag_data_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info, guint time, gpointer udata) |
Protected Attributes | |
Vga_file * | ifile |
GtkWidget * | draw |
GdkGC * | drawgc |
Image_buffer8 * | iwin |
GdkRgbCmap * | palette |
Drop_callback | drop_callback |
void * | drop_user_data |
bool | dragging |
Definition at line 41 of file shapedraw.h.
Shape_draw::Shape_draw | ( | Vga_file * | i, | |
unsigned char * | palbuf, | |||
GtkWidget * | drw | |||
) |
Definition at line 141 of file shapedraw.cc.
Shape_draw::~Shape_draw | ( | ) | [virtual] |
Definition at line 161 of file shapedraw.cc.
void Shape_draw::show | ( | GdkDrawable * | drawable, | |
int | x, | |||
int | y, | |||
int | w, | |||
int | h | |||
) |
void Shape_draw::show | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [inline] |
Reimplemented in Chunk_chooser, Combo_chooser, and Shape_chooser.
Definition at line 57 of file shapedraw.h.
Here is the call graph for this function:
void Shape_draw::show | ( | ) | [inline] |
Reimplemented in Chunk_chooser, Combo_chooser, and Shape_chooser.
Definition at line 59 of file shapedraw.h.
References draw.
Referenced by Combo_editor::render(), Shape_chooser::show(), show(), Combo_chooser::show(), and Chunk_chooser::show().
guint32 Shape_draw::get_color | ( | int | i | ) | [inline] |
Definition at line 61 of file shapedraw.h.
References palette.
Referenced by on_new_shape_font_color_draw_expose_event().
void Shape_draw::draw_shape | ( | Shape_frame * | shape, | |
int | x, | |||
int | y | |||
) |
Definition at line 59 of file shapedraw.cc.
References Shape_frame::get_xleft(), Shape_frame::get_yabove(), and Shape_frame::paint().
Referenced by Combo::draw().
Here is the call graph for this function:
void Shape_draw::draw_shape | ( | int | shapenum, | |
int | framenum, | |||
int | x, | |||
int | y | |||
) |
Definition at line 72 of file shapedraw.cc.
void Shape_draw::draw_shape_outline | ( | int | shapenum, | |
int | framenum, | |||
int | x, | |||
int | y, | |||
unsigned char | color | |||
) |
Definition at line 89 of file shapedraw.cc.
References Shape_frame::get_height(), Shape_frame::get_width(), Shape_frame::get_xleft(), Shape_frame::get_yabove(), Shape_frame::is_rle(), and Shape_frame::paint_rle_outline().
Referenced by Combo::draw().
Here is the call graph for this function:
void Shape_draw::draw_shape_centered | ( | int | shapenum, | |
int | framenum | |||
) |
Definition at line 119 of file shapedraw.cc.
References Shape_frame::get_height(), and Shape_frame::get_width().
Referenced by ExultStudio::show_equip_shape().
Here is the call graph for this function:
void Shape_draw::render | ( | ) | [virtual] |
Reimplemented in Chunk_chooser, Combo_chooser, and Shape_chooser.
Definition at line 173 of file shapedraw.cc.
void Shape_draw::set_background_color | ( | guint32 | c | ) |
Reimplemented in Chunk_chooser, Combo_chooser, and Shape_chooser.
Definition at line 183 of file shapedraw.cc.
Referenced by Shape_chooser::set_background_color(), Combo_chooser::set_background_color(), and Chunk_chooser::set_background_color().
void Shape_draw::configure | ( | ) |
Definition at line 197 of file shapedraw.cc.
Referenced by Shape_chooser::configure(), Combo_editor::render(), and ExultStudio::show_equip_shape().
void Shape_draw::drag_data_received | ( | GtkWidget * | widget, | |
GdkDragContext * | context, | |||
gint | x, | |||
gint | y, | |||
GtkSelectionData * | selection_data, | |||
guint | info, | |||
guint | time, | |||
gpointer | udata | |||
) | [static] |
Reimplemented in Chunk_chooser.
Definition at line 224 of file shapedraw.cc.
References drop_callback, drop_user_data, file, Ucscript::frame, Get_u7_shapeid(), and U7_TARGET_SHAPEID_NAME.
Here is the call graph for this function:
void Shape_draw::enable_drop | ( | Drop_callback | callback, | |
void * | udata | |||
) |
Definition at line 253 of file shapedraw.cc.
References U7_TARGET_SHAPEID, and U7_TARGET_SHAPEID_NAME.
Referenced by Shape_chooser::configure(), Combo_chooser::configure(), and Setup_equip().
void Shape_draw::set_drag_icon | ( | GdkDragContext * | context, | |
Shape_frame * | shape | |||
) |
Definition at line 279 of file shapedraw.cc.
References Image_buffer8::fill8(), Image_buffer::get_bits(), Shape_frame::get_height(), Image_buffer::get_line_width(), Shape_frame::get_width(), Shape_frame::get_xright(), Shape_frame::get_ybelow(), and Shape_frame::paint().
Referenced by Shape_chooser::drag_begin(), and Combo_chooser::drag_begin().
Here is the call graph for this function:
void Shape_draw::start_drag | ( | char * | target, | |
int | id, | |||
GdkEvent * | event | |||
) |
Definition at line 326 of file shapedraw.cc.
References dragging.
Referenced by Shape_chooser::drag_motion(), Combo_chooser::drag_motion(), and Chunk_chooser::drag_motion().
void Shape_draw::mouse_up | ( | ) | [inline] |
Vga_file* Shape_draw::ifile [protected] |
Definition at line 44 of file shapedraw.h.
Referenced by Shape_chooser::drag_begin(), Chunk_chooser::drag_begin(), Shape_chooser::drag_data_get(), Shape_chooser::export_png(), Shape_chooser::frame_changed(), Shape_chooser::next_row(), Shape_chooser::render(), Shape_chooser::render_frames(), Shape_chooser::scroll_to_frame(), and Shape_chooser::select().
GtkWidget* Shape_draw::draw [protected] |
Definition at line 45 of file shapedraw.h.
Referenced by Shape_chooser::next_row(), Shape_chooser::render(), Shape_chooser::render_frames(), Shape_chooser::scroll_to_frame(), Shape_chooser::show(), show(), Combo_chooser::show(), and Chunk_chooser::show().
GdkGC* Shape_draw::drawgc [protected] |
Definition at line 46 of file shapedraw.h.
Referenced by Chunk_chooser::drag_begin(), and Shape_chooser::show().
Image_buffer8* Shape_draw::iwin [protected] |
Definition at line 47 of file shapedraw.h.
Referenced by Shape_chooser::render(), and Shape_chooser::render_frames().
GdkRgbCmap* Shape_draw::palette [protected] |
Definition at line 48 of file shapedraw.h.
Referenced by Chunk_chooser::drag_begin(), get_color(), and Shape_chooser::import_frame().
Drop_callback Shape_draw::drop_callback [protected] |
Definition at line 49 of file shapedraw.h.
Referenced by Shape_chooser::configure(), and drag_data_received().
void* Shape_draw::drop_user_data [protected] |
bool Shape_draw::dragging [protected] |
Definition at line 51 of file shapedraw.h.
Referenced by Shape_chooser::drag_motion(), Combo_chooser::drag_motion(), Chunk_chooser::drag_motion(), and mouse_up().