资源简介
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
- 下一篇:蚂蚁金服文本匹配竞赛训练数据
相关资源
- 数据科学入门 带目录高清版 解压成
- 推荐系统基于用户和Item的协同过滤算
- tesseract-ocr/tessdata 语言包
- pyinstaller安装所需文件及其依赖.rar
- 简单手写字符识别简单web界面手写
- ulipad.4.1 for linux
- ClassMate.zip
- 互联网各厂运维方向面试题汇总附答
- 分布式爬虫
- mozilla-geckodriver-v0.19.1-win64
- 基于社交网络的情绪化分析
- 淘宝数据挖掘和数据分析
- 《城市公交站点设置的优化分析》项
- PyQt5类继承图
- keras程序
- Mastering Machine Learning With Scikit-learn S
- 2019年华中杯B题数学建模数据处理
- 微信公众号文章器
- 豆瓣电影分析代码
- pywin32-220.win-amd64-py3.6.exe
- Sublime Text 3绿色破解版
- scrapy爬虫完整案例.zip
- torchvision-0.7.0-py37_cu102.tar.bz2
- flask源码 架构图 基于flask0.1
- pywin32-219.win32-py2.7
- 七月在线-爬虫项目班课件全集
- 参考文献生成器1.0
- JENKINS入门培训ppt
- 微博情感分析,文本分类,毕业设计
- centos6.9重装yum软件包及步骤
评论
共有 条评论