comparison gtk/dw.c @ 514:08d770271709

More function name changes for Rexx/DW compatibility.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 12 Mar 2004 23:47:37 +0000
parents 7755599311d4
children c3c5d8e36aa3
comparison
equal deleted inserted replaced
513:7755599311d4 514:08d770271709
1293 /* Create text */ 1293 /* Create text */
1294 text_width = 240; 1294 text_width = 240;
1295 text_height = 0; 1295 text_height = 0;
1296 stext = dw_text_new(outbuf, 0); 1296 stext = dw_text_new(outbuf, 0);
1297 dw_window_set_style(stext, DW_DT_WORDBREAK, DW_DT_WORDBREAK); 1297 dw_window_set_style(stext, DW_DT_WORDBREAK, DW_DT_WORDBREAK);
1298 dw_font_text_extents(stext, NULL, outbuf, &width, &height); 1298 dw_font_text_extents_get(stext, NULL, outbuf, &width, &height);
1299 height = height+3; 1299 height = height+3;
1300 if(width < text_width) 1300 if(width < text_width)
1301 text_height = height*2; 1301 text_height = height*2;
1302 else if(width < text_width*2) 1302 else if(width < text_width*2)
1303 text_height = height*3; 1303 text_height = height*3;
5869 * pixmap: Handle to the pixmap. (choose only one of these) 5869 * pixmap: Handle to the pixmap. (choose only one of these)
5870 * text: Text to be queried. 5870 * text: Text to be queried.
5871 * width: Pointer to a variable to be filled in with the width. 5871 * width: Pointer to a variable to be filled in with the width.
5872 * height Pointer to a variable to be filled in with the height. 5872 * height Pointer to a variable to be filled in with the height.
5873 */ 5873 */
5874 void dw_font_text_extents(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height) 5874 void dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height)
5875 { 5875 {
5876 int _locked_by_me = FALSE; 5876 int _locked_by_me = FALSE;
5877 #if GTK_MAJOR_VERSION > 1 5877 #if GTK_MAJOR_VERSION > 1
5878 PangoFontDescription *font; 5878 PangoFontDescription *font;
5879 #else 5879 #else
6657 DW_MUTEX_UNLOCK; 6657 DW_MUTEX_UNLOCK;
6658 return retval; 6658 return retval;
6659 } 6659 }
6660 6660
6661 /* This should return the current color depth */ 6661 /* This should return the current color depth */
6662 unsigned long dw_color_depth(void) 6662 unsigned long dw_color_depth_get(void)
6663 { 6663 {
6664 int retval; 6664 int retval;
6665 int _locked_by_me = FALSE; 6665 int _locked_by_me = FALSE;
6666 6666
6667 DW_MUTEX_UNLOCK; 6667 DW_MUTEX_UNLOCK;