Crossfire Client, Branches  R11627
gtkproto.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void addsmooth (uint16 face, uint16 smooth_face)
 
int associate_cache_entry (Cache_Entry *ce, int pixnum)
 
void bind_callback (GtkWidget *gtklist, GdkEventButton *event)
 
void bind_key (const char *params)
 
void cclist_button_event (GtkWidget *gtklist, gint row, gint column, GdkEventButton *event)
 
void chelpdialog (GtkWidget *widget)
 
void ckeyclear (void)
 
void ckeyentry_callback (GtkWidget *widget, GdkEventKey *event, GtkWidget *window)
 
void ckeyunbind (GtkWidget *gtklist, GdkEventButton *event)
 
void cleanup_connection (void)
 
void cleanup_textmanagers (void)
 
void client_exit (void)
 
void client_pickup (uint32 pickup)
 
void client_tick (uint32 tick)
 
void close_container (item *op)
 
void command_show (const char *params)
 
void configdialog (GtkWidget *widget)
 
int create_and_rescale_image_from_data (Cache_Entry *ce, int pixmap_num, uint8 *rgba_data, int width, int height)
 
void create_windows (void)
 
void disconnect (GtkWidget *widget)
 
void display_map_doneupdate (int redraw, int notice)
 
void display_map_newmap (void)
 
void display_map_startupdate (void)
 
int display_mapscroll (int dx, int dy)
 
void do_clearlock (void)
 
int do_timeout (void)
 
void draw_color_info (int colr, const char *buf)
 
void draw_info (const char *str, int color)
 
void draw_info_windows (void)
 
void draw_keybindings (GtkWidget *keylist)
 
void draw_magic_map (void)
 
void draw_message_window (int redraw)
 
void draw_prompt (const char *str)
 
void draw_stats (int redraw)
 
void drawsmooth (int mx, int my, int layer, int picx, int picy)
 
int get_info_width (void)
 
void get_inv_display (GtkWidget *frame)
 
void get_look_display (GtkWidget *frame)
 
void get_map_image_size (int face, uint8 *w, uint8 *h)
 
char * get_metaserver (void)
 
news_entryget_news (void)
 
const char * get_rules (void)
 
void get_window_coord (GtkWidget *win, int *x, int *y, int *wx, int *wy, int *w, int *h)
 
const char * getMOTD (void)
 
void gLogHandler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)
 
int gtk_checkchilds (void)
 
void gtk_command_history (int direction)
 
void gtk_complete_command (void)
 
void gtk_draw_map (int redraw)
 
void gtkLogListener (LogEntry *le)
 
void image_update_download_status (int start, int end, int total)
 
void init_keys (void)
 
void init_SDL (GtkWidget *sdl_window, int just_lightmap)
 
int init_sounds (void)
 
void init_text_callbacks (void)
 
int init_windows (int argc, char **argv)
 
void inventory_splitwin_toggling (void)
 
void inventory_tick (void)
 
void item_event_container_clearing (item *op)
 
void item_event_item_changed (item *op)
 
void item_event_item_deleting (item *op)
 
void itemlist_set_show_icon (itemlist *l, int new_setting)
 
void keyfunc (GtkWidget *widget, GdkEventKey *event, GtkWidget *window)
 
void keyrelfunc (GtkWidget *widget, GdkEventKey *event, GtkWidget *window)
 
void load_defaults (void)
 
void magic_map_flash_pos (void)
 
int main (int argc, char *argv[])
 
void main_window_destroyed (void)
 
void menu_clear (void)
 
void MusicCmd (const char *data, int len)
 
void open_container (item *op)
 
uint8png_to_data (uint8 *data, int len, uint32 *width, uint32 *height)
 
uint8rescale_rgba_data (uint8 *data, int *width, int *height, int scale)
 
void reset_image_data (void)
 
void reset_map (void)
 
void reset_stat_bars (void)
 
void resize_map_window (int x, int y)
 
void resize_resistance_table (int resists_show)
 
int rgba_to_gdkpixmap (GdkWindow *window, uint8 *data, int width, int height, GdkPixmap **pix, GdkBitmap **mask, GdkColormap *colormap)
 
void save_defaults (void)
 
void save_winpos (void)
 
void sdl_gen_map (int redraw)
 
int sdl_mapscroll (int dx, int dy)
 
void set_autorepeat (const char *s)
 
void set_look_list_env (item *op)
 
void set_scroll (const char *s)
 
void set_show_icon (const char *s)
 
void set_show_weight (const char *s)
 
void set_weight_limit (uint32 wlim)
 
void set_window_pos (void)
 
void Sound2Cmd (unsigned char *data, int len)
 
void SoundCmd (unsigned char *data, int len)
 
void unbind_key (const char *params)
 
void update_list_labels (itemlist *l)
 
media_state write_media (GtkText *textarea, const char *message)
 
media_state write_media_with_state (GtkText *textarea, const char *message, media_state current_state)
 
void x_set_echo (void)
 

Function Documentation

void addsmooth ( uint16  face,
uint16  smooth_face 
)

Referenced from common/commands.c

Parameters
face
smooth_face

Definition at line 360 of file image.c.

int associate_cache_entry ( Cache_Entry ce,
int  pixnum 
)

This functions associates image_data in the cache entry with the specific pixmap number. Currently, there is no failure condition, but there is the potential that in the future, we want to more closely look at the data and if it isn't valid, return the failure code.

Returns
0 on success, -1 on failure.

Definition at line 372 of file image.c.

void bind_callback ( GtkWidget *  gtklist,
GdkEventButton *  event 
)

Definition at line 1181 of file keys.c.

References bind_flags, cclist, ckentrytext, ckeyentrytext, cmodentrytext, draw_info(), draw_keybindings(), insert_key(), KEYF_FIRE, KEYF_MODIFIERS, KEYF_RUN, Keys::keysym, MAX_BUF, NDI_BLACK, and save_keys().

Referenced by configdialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void bind_key ( const char *  params)

Definition at line 648 of file keys.c.

void cclist_button_event ( GtkWidget *  gtklist,
gint  row,
gint  column,
GdkEventButton *  event 
)

Definition at line 2758 of file gx11.c.

References cclist, ckentrytext, ckeyentrytext, cmodentrytext, and cnumentrytext.

Referenced by configdialog().

+ Here is the caller graph for this function:

void chelpdialog ( GtkWidget *  widget)

Definition at line 182 of file help.c.

References chelp_entry_callback(), chelptext, FALSE, gtkwin_chelp, set_default_text(), and TRUE.

Referenced by get_menu_display().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ckeyclear ( void  )

Definition at line 1251 of file keys.c.

References ckentrytext, ckeyentrytext, cmodentrytext, and cnumentrytext.

Referenced by configdialog().

+ Here is the caller graph for this function:

void ckeyentry_callback ( GtkWidget *  widget,
GdkEventKey *  event,
GtkWidget *  window 
)

Definition at line 1233 of file keys.c.

References ckeyentrytext, and cmodentrytext.

Referenced by configdialog().

+ Here is the caller graph for this function:

void ckeyunbind ( GtkWidget *  gtklist,
GdkEventButton *  event 
)

Definition at line 1214 of file keys.c.

References cclist, draw_keybindings(), and unbind_key().

Referenced by configdialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cleanup_connection ( void  )

Called from disconnect command - that closes the socket - we just need to do the gtk cleanup.

Definition at line 329 of file gx11.c.

void cleanup_textmanagers ( void  )

Definition at line 522 of file text.c.

References news_entry::content, first_news, last_motd, news_entry::next, rules, and news_entry::title.

Referenced by cleanup_connection(), disconnect(), and event_loop().

+ Here is the caller graph for this function:

void client_exit ( void  )

Definition at line 3269 of file gx11.c.

References LOG(), and LOG_INFO.

Referenced by get_menu_display(), and main_window_destroyed().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void client_pickup ( uint32  pickup)

We get pickup information from server, update our status.

Definition at line 4524 of file gx11.c.

void client_tick ( uint32  tick)

X11 client doesn't care about this

Definition at line 4510 of file gx11.c.

void close_container ( item op)

Open and close_container are now no-ops - since these are now drawn inline as treestores, we don't need to update what we are drawing were. and since the activation of a container will cause the list to be redrawn, don't need to worry about making an explicit call here.

Parameters
op

Definition at line 1342 of file inventory.c.

void command_show ( const char *  params)
Parameters
params

Definition at line 1153 of file inventory.c.

int create_and_rescale_image_from_data ( Cache_Entry ce,
int  pixmap_num,
uint8 rgba_data,
int  width,
int  height 
)

Takes the pixmap to put the data into, as well as the rgba data (ie, already loaded with png_to_data). Scales and stores the relevant data into the pixmap structure.

Parameters
cecan be NULL
pixmap_num
rgba_data
width
height
Returns
1 on failure.

Definition at line 252 of file image.c.

void disconnect ( GtkWidget *  widget)

Definition at line 2773 of file gx11.c.

void display_map_doneupdate ( int  redraw,
int  notice 
)

Do the map drawing

If redraw is set, force redraw of all tiles.

If notice is set, another call will follow soon.

This is called after the map has been all digested. this should perhaps be removed, and left to being done from from the main event loop.

Parameters
redrawIf set, force redraw of all tiles.
noticeIf set, another call will follow soon.

If redraw is set, force redraw of all tiles.

If notice is set, another call will follow soon.

Definition at line 5300 of file gx11.c.

void display_map_newmap ( void  )

The player has changed maps, so any info we have (for fog of war) is bogus, so clear out all that old info.

Definition at line 5319 of file gx11.c.

void display_map_startupdate ( void  )

This isn't used - it is basically a prequel - we know we got a map command from the server, but have digested it all yet. This can be useful if there is info we know we need to store away or the like before it is destroyed, but there isn't anything like that for the gtk client.

Definition at line 5428 of file gx11.c.

int display_mapscroll ( int  dx,
int  dy 
)
Parameters
dx
dy

Definition at line 88 of file map.c.

void do_clearlock ( void  )

Definition at line 4485 of file gx11.c.

int do_timeout ( void  )

Map, spell, and inventory maintenance.

Returns
TRUE

Definition at line 4535 of file gx11.c.

void draw_color_info ( int  colr,
const char *  buf 
)

Display information in color. This function simply calls draw_info() with the parameter order swapped, and it provides no unique features. Since it is called from common, it is likely a legacy function that should probably be considered deprecated. Important: This function calls draw_info(), so if a color other than black is specified, the text is routed to both the primary and secondary (critical) message panes.

Parameters
colrThe color to use when displaying text.
bufThe text to display.

Definition at line 1851 of file gx11.c.

void draw_info ( const char *  str,
int  color 
)

Add text to the informational message windows. Colored text implies some level of importance, and results in the messge being auto-routed to the critical message panel. Note that with the textbufs, it seems you need to manually set it to the bottom of the screen - otherwise, the scrollbar just stays at the top. However, this does not seem ideal if you are trying to scroll back while new stuff comes in. Question: Is there a good reason for draw_info() and draw_color_info() to write directly to the message panel when add_to_textbuf() does this? Does it really make sense to use color to determine if a message is critical?.

Parameters
strPointer to displayable text.
colorColor of the text.

Definition at line 1773 of file gx11.c.

void draw_info_windows ( void  )

Definition at line 4492 of file gx11.c.

References draw_info_freeze1, draw_info_freeze2, FALSE, gtkwin_info_text, gtkwin_info_text2, text_hadj, text_hadj2, text_vadj, and text_vadj2.

Referenced by do_timeout(), and main().

+ Here is the caller graph for this function:

void draw_magic_map ( void  )

Draws the magic map - basically, it is just a simple encoding of space X is color C.

Definition at line 4571 of file gx11.c.

void draw_message_window ( int  redraw)

Updates the stats pain - hp, sp, etc labels

Parameters
redraw

Definition at line 2458 of file gx11.c.

void draw_stats ( int  redraw)

Draws the stats window. If redraw is true, it means we need to redraw the entire thing, and not just do an updated

Definition at line 2015 of file gx11.c.

void drawsmooth ( int  mx,
int  my,
int  layer,
int  picx,
int  picy 
)

Draw anything in adjacent squares that could smooth on given square

Parameters
mx
mySquare to smooth on. You should not call this function to smooth on a 'completely black' square.
layerLayer to examine (we smooth only one layer at a time)
picx
picyPlace on the map_drawing_area->window to draw

Definition at line 104 of file map.c.

int get_info_width ( void  )

This is used by the common help system to determine when to wrap. Should be able to get width of window, and divide by character width - however, still not perfect if we are using a variable width font. Actually, gtk can do word wrapping for us, so maybe the real fix is to have it to the word wrapping and just run a sufficiently large value. FIXME: should be better than hardcoded value.

Returns
The width of the info window in characters.

Definition at line 4453 of file gx11.c.

void get_inv_display ( GtkWidget *  frame)
void get_look_display ( GtkWidget *  frame)
void get_map_image_size ( int  face,
uint8 w,
uint8 h 
)
Parameters
face
w
h

Definition at line 459 of file image.c.

char* get_metaserver ( void  )

Constructs the metaserver dialog and handles metaserver selection.

Definition at line 5432 of file gx11.c.

Referenced by main().

+ Here is the caller graph for this function:

news_entry* get_news ( void  )

Definition at line 462 of file text.c.

References first_news.

Referenced by buildLoginDialog().

+ Here is the caller graph for this function:

const char* get_rules ( void  )

Definition at line 459 of file text.c.

References rules.

Referenced by buildLoginDialog().

+ Here is the caller graph for this function:

void get_window_coord ( GtkWidget *  win,
int *  x,
int *  y,
int *  wx,
int *  wy,
int *  w,
int *  h 
)

Gets the coordinates of a specified window.

Parameters
winPass in a GtkWidget pointer to get its coordinates.
xParent-relative window x coordinate
yParent-relative window y coordinate
wx?
wy?
wWindow width
hWindow height

Definition at line 4789 of file gx11.c.

Referenced by configdialog(), image_update_download_status(), and save_winpos().

+ Here is the caller graph for this function:

const char* getMOTD ( void  )

Definition at line 454 of file text.c.

References last_motd.

Referenced by buildLoginDialog().

+ Here is the caller graph for this function:

void gLogHandler ( const gchar *  log_domain,
GLogLevelFlags  log_level,
const gchar *  message,
gpointer  user_data 
)

Definition at line 5471 of file gx11.c.

References LOG(), LOG_CRITICAL, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING, and MAX_RECURSE.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gtk_checkchilds ( void  )

Definition at line 4553 of file gx11.c.

References FALSE, and monitorChilds().

Referenced by init_windows().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gtk_draw_map ( int  redraw)
Parameters
redraw

Definition at line 337 of file map.c.

Referenced by client_tick(), and display_map_doneupdate().

+ Here is the caller graph for this function:

void gtkLogListener ( LogEntry le)

Definition at line 5450 of file gx11.c.

References bugtrack, getLogText(), and MAX_LOG_CHARACTERS.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void image_update_download_status ( int  start,
int  end,
int  total 
)

Draws a status bar showing where we our in terms of downloading all the image data. A few hacks: If start is 1, this is the first batch, so it means we need to create the appropriate status window. If start = end = total, it means were finished, so destroy the gui element.

Parameters
startThe start value just sent to the server.
end
totalThe total number of images.

Definition at line 419 of file image.c.

void init_keys ( void  )

Definition at line 302 of file keys.c.

Referenced by init_windows(), and setUserPass().

+ Here is the caller graph for this function:

void init_SDL ( GtkWidget *  sdl_window,
int  just_lightmap 
)

Referenced by applyconfig(), create_windows(), map_init(), read_config_window(), and resize_map_window().

+ Here is the caller graph for this function:

int init_sounds ( void  )

Opens the audio device, and reads relevant configuration files.

Returns
Returns 0 on success. On failure, the calling function will likely disable sound support/requests from the server.

Definition at line 60 of file sound.c.

Referenced by applyconfig(), main(), and read_config_window().

+ Here is the caller graph for this function:

void init_text_callbacks ( void  )

Definition at line 515 of file text.c.

References admin_callback(), book_callback(), motd_callback(), MSG_TYPE_ADMIN, MSG_TYPE_BOOK, MSG_TYPE_MOTD, MSG_TYPE_SIGN, setTextManager(), and sign_callback().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int init_windows ( int  argc,
char **  argv 
)

Definition at line 4997 of file gx11.c.

void inventory_splitwin_toggling ( void  )

Definition at line 790 of file inventory.c.

References add_removal_victim(), highlit_inv_viewers, inv_notebook, inv_viewers, look_widget, and nuke_view().

Referenced by toggle_splitwin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void inventory_tick ( void  )

This is called periodically from main.c - basically a timeout, used to animate the inventory.

Definition at line 1374 of file inventory.c.

Referenced by client_tick(), and do_timeout().

+ Here is the caller graph for this function:

void item_event_container_clearing ( item op)

Definition at line 525 of file inventory.c.

void item_event_item_changed ( item op)

Definition at line 489 of file inventory.c.

void item_event_item_deleting ( item op)

Definition at line 596 of file inventory.c.

void itemlist_set_show_icon ( itemlist l,
int  new_setting 
)

Definition at line 1288 of file inventory.c.

References set_inv_flags(), set_look_flags(), and itemlist::show_icon.

Referenced by applyconfig(), init_windows(), load_defaults(), and set_show_icon().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void load_defaults ( void  )

This function processes the user saved settings file and establishes the configuration of the client.

Definition at line 710 of file config.c.

void magic_map_flash_pos ( void  )

Flash the player position on the magic map

Definition at line 4766 of file gx11.c.

Referenced by do_timeout().

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

The client entry point.

Parameters
argc
argv
Returns

Definition at line 5546 of file gx11.c.

void main_window_destroyed ( void  )

Definition at line 219 of file config.c.

References client_exit(), and splitwin_toggling.

Referenced by create_windows().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void menu_clear ( void  )

Clears all the message panels. It is not clear why someone would use it, but is called from the common area, and so is supported here.

Definition at line 3241 of file gx11.c.

void MusicCmd ( const char *  data,
int  len 
)

Definition at line 199 of file sound.c.

void open_container ( item op)
Parameters
op

Definition at line 1334 of file inventory.c.

uint8* png_to_data ( uint8 data,
int  len,
uint32 width,
uint32 height 
)
Parameters
*data
len
*width
*height

Definition at line 63 of file png.c.

uint8* rescale_rgba_data ( uint8 data,
int *  width,
int *  height,
int  scale 
)

Takes png data and scales it accordingly. This function is based on pnmscale, but has been modified to support alpha channel - instead of blending the alpha channel, it takes the most opaque value - blending it is not likely to give sane results IMO - for any image that has transparent information, if we blended the alpha, the result would be the edges of that region being partially transparent. This function has also been re-written to use more static data - in the case of the client, it will be called thousands of times, so it doesn't make sense to free the data and then re-allocate it.

For pixels that are fully transparent, the end result after scaling is they will be tranparent black. This is a needed effect for blending to work properly.

This function returns a new pointer to the scaled image data. This is malloc'd data, so should be freed at some point to prevent leaks. This function does not modify the data passed to it - the caller is responsible for freeing it if it is no longer needed.

function arguments:

Parameters
*dataPNG data - this is any 4 byte per pixel data, in RGBA format.
*widthSource width modified to contain the new image size.
*heightSource height modified to contain the new image size.
scalePercentage size that new image should be. 100 is a same size image - values larger than 100 will result in zoom, values less than 100 will result in a shrinkage.

Definition at line 244 of file png.c.

Referenced by create_and_rescale_image_from_data().

+ Here is the caller graph for this function:

void reset_image_data ( void  )

Connecting to different servers, try to clear out any old images. Try to free the data to prevent memory leaks. This could be more clever, ie, if we're caching images and go to a new server and get a name, we should try to re-arrange our cache or the like.

Definition at line 387 of file image.c.

Referenced by main().

+ Here is the caller graph for this function:

void reset_map ( void  )

Request a map update from the server. This is to circumvent a bug in some server versions.

Todo:
remove

Request a map update from the server. This is to circumvent a bug in some server versions.

Todo:
remove

Request a map update from the server. This is to circumvent a bug in some server versions.

Todo:
remove

Definition at line 76 of file map.c.

Referenced by display_map_newmap(), and keyfunc().

+ Here is the caller graph for this function:

void reset_stat_bars ( void  )

Definition at line 2264 of file gx11.c.

References draw_message_window(), gdk_green, gdk_red, Vitals::state, and Vitals::style.

Referenced by applyconfig().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void resize_map_window ( int  x,
int  y 
)

Resize_map_window is a NOOP for the time being - not sure if it will in fact need to do something, since there are scrollbars for the map window now. Note - this is note a window resize request, but rather process the size (in spaces) of the map - is received from server.

Definition at line 5324 of file gx11.c.

void resize_resistance_table ( int  resists_show)

Definition at line 2350 of file gx11.c.

References fire_label, NUM_RESISTS, res_scrolled_window, resists, restable, and run_label.

Referenced by applyconfig(), and get_message_display().

+ Here is the caller graph for this function:

int rgba_to_gdkpixmap ( GdkWindow *  window,
uint8 data,
int  width,
int  height,
GdkPixmap **  pix,
GdkBitmap **  mask,
GdkColormap *  colormap 
)

Takes data that has already been converted into RGBA format (via png_to_data above perhaps) and creates a GdkPixmap and GdkBitmap out of it.

Parameters
*window
*data
width
height
**pix
**mask
*colormap
Returns
Non-zero on error (currently, no checks for error conditions is done

Definition at line 407 of file png.c.

Referenced by create_icon_image(), and create_map_image().

+ Here is the caller graph for this function:

void save_defaults ( void  )

This function saves user settings chosen using the configuration popup dialog.

Definition at line 848 of file config.c.

void save_winpos ( void  )

Handles saving of the window positions when the Client | Save Window Position menu item is executed. All hpaned and vpaned widget settings have the information required, and the code automatically works for Glade XML layouts that follow the glade-2's default widget naming convention.

Definition at line 4804 of file gx11.c.

void sdl_gen_map ( int  redraw)

Referenced by client_tick(), display_map_doneupdate(), do_network(), and draw_map().

+ Here is the caller graph for this function:

int sdl_mapscroll ( int  dx,
int  dy 
)

Referenced by display_mapscroll().

+ Here is the caller graph for this function:

void set_autorepeat ( const char *  s)

A stub function that does nothing. These are callbacks used by the common code, but they are not implemented in GTK, either because it makes no sense (set_scroll for example), or because it may not be technically possible to do so if we limit ourselves to proper GTK2 code (Eg, don't mess with the internals of X or platform specific issues)

Parameters
s

Definition at line 4448 of file gx11.c.

void set_look_list_env ( item op)

Definition at line 1323 of file inventory.c.

References itemlist::env, inv_viewers, inventory_viewer_set_container(), and set_look_list_env_one().

Referenced by close_container(), close_container_callback(), main(), and open_container().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void set_scroll ( const char *  s)

A stub function that does nothing. These are callbacks used by the common code, but they are not implemented in GTK, either because it makes no sense (set_scroll for example), or because it may not be technically possible to do so if we limit ourselves to proper GTK2 code (Eg, don't mess with the internals of X or platform specific issues)

Parameters
s

Definition at line 4443 of file gx11.c.

void set_show_icon ( const char *  s)
Parameters
s

Definition at line 1303 of file inventory.c.

void set_show_weight ( const char *  s)
Parameters
s

Definition at line 1258 of file inventory.c.

void set_weight_limit ( uint32  wlim)

No reason to divide by 1000 everytime we do the display, so do it once and store it here.

Parameters
wlim

Definition at line 1245 of file inventory.c.

void set_window_pos ( void  )

Definition at line 4865 of file gx11.c.

void Sound2Cmd ( unsigned char *  data,
int  len 
)

Definition at line 151 of file sound.c.

void SoundCmd ( unsigned char *  data,
int  len 
)

?

Parameters
data
len

Definition at line 130 of file sound.c.

media_state write_media ( GtkText *  textarea,
const char *  message 
)

Definition at line 282 of file text.c.

References media_state::flavor, media_state::has_color, media_state::style, style_print, and write_media_with_state().

Referenced by add_book(), admin_callback(), book_callback(), buildLoginDialog(), create_text_picture_window(), fill_news(), motd_callback(), show_media_message(), and sign_callback().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

media_state write_media_with_state ( GtkText *  textarea,
const char *  message,
media_state  current_state 
)

Definition at line 289 of file text.c.

References media_state::flavor, media_state::fore, media_state::has_color, init_fonts(), LOG(), LOG_ERROR, LOG_INFO, media_state::style, style_arcane, STYLE_BOLD, style_fixed, style_hand, STYLE_ITALIC, style_print, and style_strange.

Referenced by fill_news(), and write_media().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: