资源简介
tk8.6.8-src.tar.gz
tk8.6.8-src.tar.gz
tk8.6.8-src.tar.gz
tk8.6.8-src.tar.gz
tk8.6.8-src.tar.gz
代码片段和文件信息
/*
* tk3d.c --
*
* This module provides procedures to draw borders in the
* three-dimensional Motif style.
*
* Copyright (c) 1990-1994 The Regents of the University of California.
* Copyright (c) 1994-1997 Sun Microsystems Inc.
*
* See the file “license.terms“ for information on usage and redistribution of
* this file and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include “tkInt.h“
#include “tk3d.h“
/*
* The following table defines the string values for reliefs which are used
* by Tk_GetReliefFromObj.
*/
static const char *const reliefStrings[] = {
“flat“ “groove“ “raised“ “ridge“ “solid“ “sunken“ NULL
};
/*
* Forward declarations for functions defined in this file:
*/
static void BorderInit(TkDisplay *dispPtr);
static void DupBorderObjProc(Tcl_Obj *srcObjPtr
Tcl_Obj *dupObjPtr);
static void FreeBorderObj(Tcl_Obj *objPtr);
static void FreeBorderObjProc(Tcl_Obj *objPtr);
static int Intersect(XPoint *a1Ptr XPoint *a2Ptr
XPoint *b1Ptr XPoint *b2Ptr XPoint *iPtr);
static void InitBorderObj(Tcl_Obj *objPtr);
static void ShiftLine(XPoint *p1Ptr XPoint *p2Ptr
int distance XPoint *p3Ptr);
/*
* The following structure defines the implementation of the “border“ Tcl
* object used for drawing. The border object remembers the hash table entry
* associated with a border. The actual allocation and deallocation of the
* border should be done by the configuration package when the border option
* is set.
*/
const Tcl_ObjType tkBorderObjType = {
“border“ /* name */
FreeBorderObjProc /* freeIntRepProc */
DupBorderObjProc /* dupIntRepProc */
NULL /* updateStringProc */
NULL /* setFromAnyProc */
};
/*
*----------------------------------------------------------------------
*
* Tk_Alloc3DBorderFromObj --
*
* Given a Tcl_Obj * map the value to a corresponding Tk_3DBorder
* structure based on the tkwin given.
*
* Results:
* The return value is a token for a data structure describing a 3-D
* border. This token may be passed to functions such as
* Tk_Draw3DRectangle and Tk_Free3DBorder. If an error prevented the
* border from being created then NULL is returned and an error message
* will be left in the interp‘s result.
*
* Side effects:
* The border is added to an internal database with a reference count.
* For each call to this function there should eventually be a call to
* FreeBorderObj so that the database is cleaned up when borders aren‘t
* in use anymore.
*
*----------------------------------------------------------------------
*/
Tk_3DBorder
Tk_Alloc3DBorderFromObj(
Tcl_Interp *interp /* Interp for error results. */
Tk_Window tkwin /* Need the screen the border is used on.*/
Tcl_Obj *objPtr) /* object giving name of color for window
* background. */
{
TkBorder *borderPtr;
if (objPtr->typePtr != &tkBorderObjType) {
InitBorderObj(objPtr);
}
borderPtr = objPtr->internalRep.twoPtrValue.ptr1;
/
- 上一篇:二师老版本可开WiFi的dr。com
- 下一篇:蚂蚁金服文本匹配竞赛训练数据
相关资源
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- Python中Numpy库最新教程
- 用python编写的移动彩信的发送程序
- Python全栈学习笔记面向对象大作业:
- python实现的ftp自动上传、下载脚本
- Python版的A*寻路算法
- IronPython IDE
- pip-10.0.1.tar.gz
- Data Science from Scratch 2nd Edition
- shape_predictor_68_face_landmarks.dat.bz2 68个标
- 爬取豆瓣电影TOP250程序,包含非常详
- 中文维基百科语料库百度网盘网址.
- MSCNN_dehaze.rar
- 爬取豆瓣排行榜电影数据(含GUI界面
- 字典文本资源
- Brainfuck / OoK 解码脚本
- 案例实战信用卡欺诈检测数据集
- 招商策略_抱团启示录那些年我们一起
- sip-4.19.zip
- 树莓派3b+学习使用教程
- numpy 中文学习手册
- pytorch-1.4.0-py3.7_cpu_0.tar.bz2
- 机器学习实战 高清完整版PDF
- 泰坦尼克号0.81准确率实验报告.docx
-
abaqus sc
ripting reference manual.pdf - 网页版聊天程序--网络程序设计课程大
- Give Me Some Credit
-
ba
semap安装出错时,正确得pyproj文件 - 微信头像拼接工具
- 统计思维:程序员数学之概率统计第
评论
共有 条评论