Changeset 4852 for branches/r9/packages/placard/canvPlacard.c
- Timestamp:
- Dec 12, 2014, 7:16:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/r9/packages/placard/canvPlacard.c
r4842 r4852 413 413 414 414 415 /*416 * ------------------------------------------------------------------------417 * RpCanvPlacard_Init --418 *419 * Invoked when the Rappture GUI library is being initialized420 * to install the "placard" item on the Tk canvas widget.421 *422 * Returns TCL_OK if successful, or TCL_ERROR (along with an error423 * message in the interp) if anything goes wrong.424 * ------------------------------------------------------------------------425 */426 int427 RpCanvPlacard_Init(interp)428 Tcl_Interp *interp; /* interpreter being initialized */429 {430 Tk_CreateItemType(&rpPlacardType);431 432 Tk_DefineBitmap(interp, Tk_GetUid("rp_ellipsis"),433 (char*)ellipsis_bits, ellipsis_width, ellipsis_height);434 435 return TCL_OK;436 }437 415 438 416 /* … … 1459 1437 return; 1460 1438 } 1439 1440 /* 1441 * ------------------------------------------------------------------------ 1442 * RapptureCanvasPlacard_Init -- 1443 * 1444 * Invoked when the Rappture GUI library is being initialized 1445 * to install the "placard" item on the Tk canvas widget. 1446 * 1447 * Returns TCL_OK if successful, or TCL_ERROR (along with an error 1448 * message in the interp) if anything goes wrong. 1449 * ------------------------------------------------------------------------ 1450 */ 1451 int 1452 RapptureCanvasPlacard_Init(interp) 1453 Tcl_Interp *interp; /* interpreter being initialized */ 1454 { 1455 Tk_CreateItemType(&rpPlacardType); 1456 1457 Tk_DefineBitmap(interp, Tk_GetUid("rp_ellipsis"), 1458 (char*)ellipsis_bits, ellipsis_width, ellipsis_height); 1459 1460 return TCL_OK; 1461 }
Note: See TracChangeset
for help on using the changeset viewer.