📄 htstyle.h
字号:
/* W3C Sample Code Library libwww Stylesheet Manager! Stylesheet Manager!*//*** (c) COPYRIGHT MIT 1995.** Please first read the full copyright statement in the file COPYRIGH.*//*Styles allow the translation between a logical property of a piece of textand its physical representation. A StyleSheet is a collection of styles,defining the translation necessary to represent a document. It is a linkedlist of styles.A stylesheet is a collection of styles - these styles can either come fromover the net or they can be provided by the application as needed.The manager doesn't contain any styles - it only provides a mechanism forregistering styles, looking them up and deleting them. That is, it doesn'thave any idea of what a style actually looks like - as this is highly applicationdependent, it is not a good idea to provide this as common library code.This module is implemented by HTStyle.c, and it isa part of the W3C Sample CodeLibrary.*/#ifndef HTSTYLE_H#define HTSTYLE_H/*. Creating and Deleting a StyleSheet.A Stylesheet is a container containing multiple individual styles. You musttherefore first create a stylesheet before you can create individual styles.*/typedef struct _HTStyleSheet HTStyleSheet;extern HTStyleSheet * HTStyleSheet_new (const char * name);extern BOOL HTStyleSheet_delete (HTStyleSheet * me);/*. Creating and Deleting Individual Styles.*/typedef struct _HTStyle HTStyle;extern HTStyle * HTStyle_new (const char * name, int element, void * context);extern BOOL HTStyle_delete (HTStyle * me);/*. Adding and Deleting Individual styles from Stylesheet.*/extern BOOL HTStyleSheet_addStyle (HTStyleSheet * me, HTStyle * style);extern BOOL HTStyleSheet_deleteStyle (HTStyleSheet * me, HTStyle * style);/*. Searching for a Specific Style.*/extern HTStyle * HTStyleSheet_findStyleWithName (HTStyleSheet * me, const char * name);extern HTStyle * HTStyleSheet_findStyleForElement (HTStyleSheet * me, int element);/**/#endif /* HTSTYLE_H *//* @(#) $Id: HTStyle.html,v 2.29 1999/01/06 15:38:48 frystyk Exp $*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -