亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dwstyle.txt

?? 瀏覽器的源代碼,可移植到嵌入式設備.
?? TXT
字號:
Apr 2001, S.Geerken@ping.deLast update: Nov 2001=======DwStyle=======Styles of Dillo WidgetsNote====DwStyle has derived from DwPageAttr, and its current structure is verysimilar to it. In future, there will be some changes and extensions,namely:   - image maps will be handled differently (done),   - margins, borders, paddings (done),   - background colors/images, and   - cursors and tooltips will perhaps move into DwStyle.Furthermore, widgets will probably refer to different styles fordifferent states.Overview========DwStyle provides some resources and attributes for drawing widgets, aswell as for parts of a widget (e.g. DwPage uses DwStyle's for itswords). Creating a style is done by filling a DwStyle with theattributes (except the ref_count), and calling Dw_style_new:   DwStyle style_attrs, *style;   style_attrs.foo = bar;   // etc.   style = a_Dw_style_new (&style_attrs, random_window);   // do something with styleAfter this, the attributes of style should not be changed anymore,since styles are often shared between different widgets etc. (seebelow). Most times, you simply copy the attributes of another style,and modify them:   style_attrs = *another_style;   style_attrs.foo = bar;   style = a_Dw_style_new (&style_attrs, random_window);The font structure can be created by Dw_style_font_new, in a similarway (the GdkFont in font_attrs will be ignored), and colors byDw_style_color_new, passing 0xrrggbb as an argument. Note that fontsand colors are only intended to be used in conjunction with DwStyle.Lengths and Percentages=======================DwStyleLength is a simple data type for lengths and percentages:   - A length refers to an absolute measurement. It is used to     represent the HTML type %Pixels; and the CSS type <lenght>.     For CSS lenghts, there are two units: (i) pixels and absolute     units, which have to be converted to pixels (a pixels is, unlike     in the CSS specification, treated as absolute unit), and (ii) the     relative units "em" and "ex" (see below).   - A percentage refers to a value relative to another value. It is     used for the HTML type %Lenght; (except %Pixels;), and the CSS     type <percentage>.   - A relative length can be used in lists of HTML MultiLengths.Since many values in CSS may be either lenghts or percentages, asingle type is very useful.Useful macros and functions---------------------------Macros for creating lenghts:   DW_STYLE_CREATE_LENGTH (n)      Returns a lenght of n pixels.   DW_STYLE_CREATE_EX_LENGTH (n)   Returns a length of n times the                                   'x-height'   DW_STYLE_CREATE_EM_LENGTH (n)   Returns a length of n times the                                   'font-size'   DW_STYLE_CREATE_PERCENTAGE (n)  Returns a percentage, n is relative                                   to 1, not to 100.   DW_STYLE_CREATE_RELATIVE (n)    Returns a relative length.   DW_STYLE_UNDEF_LENGTH           Used to indicate unspecified sizes,                                   errors, and the end of a list of                                   lengths.Furthermore, there are some functions in html.c:   DwStyleLength Html_parse_length (gchar *attr);      Returns a length or a percentage, or DW_STYLE_UNDEF_LENGTH in      case of an error.   DwStyleLength* Html_parse_multi_length (gchar *attr);      Returns a vector of lenghts/percentages. The caller has to free      the result when it is not longer used.Macros for examining lengths:   DW_STYLE_IS_LENGTH (l)          Returns TRUE if l is a length.   DW_STYLE_IS_PERCENTAGE (l)      Returns TRUE if l is a percentage.   DW_STYLE_IS_RELATIVE (l)        Returns TRUE if l is a relative                                   length.   DW_STYLE_GET_LENGTH (l, f)      Returns the value of a length in                                   pixels, as an integer. f is the                                   font, this is used if l is based on                                   font sizes.   DW_STYLE_GET_PERCENTAGE (l)     Returns the value of a percentage,                                   relative to 1, as a float.   DW_STYLE_GET_RELATIVE (l)       Returns the value of a relative                                   length, as a float.Representation--------------Notes:   1. This is not part of the interface, and may change! Use the      macros described above.   2. Negative numbers may not work yet.DwStyleLenght is represented by an integer (n is the number of bits ofan integer):   - Undefined lengths are represented by 0.   - Lenghts in pixel:      +---+ - - - +---+---+---+---+      |     int value     | 0 | 1 |      +---+ - - - +---+---+---+---+       n-1          3   2   1   0   - Lenghts in in x-height:      +---+ - - - +---+---+---+---+      |  real value   | 0 | 1 | 1 |      +---+ - - - +---+---+---+---+       n-1          3    2   1   0   - Lenghts in in font-size:      +---+ - - - +---+---+---+---+      |  real value   | 1 | 1 | 1 |      +---+ - - - +---+---+---+---+       n-1          3   2   1   0   - Percentages:      +---+ - - - +---+---+---+---+      |  real value   | 0 | 1 | 0 |      +---+ - - - +---+---+---+---+       n-1          3   2   1   0   - Relative lengths:      +---+ - - - +---+---+---+---+      |  real value   | 1 | 1 | 0 |      +---+ - - - +---+---+---+---+       n-1          3   2   1   0A "real value" is a fixed point number consisting of (m is the numberof bits of the value, not the whole integer):   +---+ - - - +---+---+ - - - +---+   | integer part  |     rest      |   +---+ - - - +---+---+ - - - +---+     m           16  15          0For *internal* use, there are two converting macros,DW_STYLE_REAL_TO_FLOAT and DW_STYLE_FLOAT_TO_REAL.DwStyle Boxes=============The CSS Box Model-----------------For borders, margins etc., DwStyle uses the box model defined byCSS2. DwStyle contains some members defining these attributes. Awidget must use these values for any calculation of sizes, there aresome helper functions (see dw_style.h). A DwStyle box looks quitesimilar to a CSS box:                                    ,-- margin.left                 |   ,-- border.left                 |   |   ,-- padding.left                 |---+---+---|                 +---------------------------------------+ ---                 |                                       |  |  margin.top                 |   +-------------------------------+   | -+-                 |   |          Border               |   |  |  border.top                 |   |   +-----------------------+   |   | -+-                 |   |   |        Padding        |   |   |  |  padding.top   new widget    |   |   |   +---------------+   |   |   | ---   allocation -->|   |   |   |               |   |   |   |                 |   |   |   |    Content    |   |   |   |  former widget ------------>|               |   |   |   |   allocation    |   |   |   +---------------+   |   |   | ---                 |   |   |                       |   |   |  |  margin.bottom                 |   |   +-----------------------+   |   | -+-                 |   |                               |   |  |  border.bottom                 |   +-------------------------------+   | -+-                 |                                       |  |  padding.bottom                 +---------------------------------------+ ---                                             |---+---+---|                              padding.right  --'   |   |                                    border.right --'   |                                        margin.right --'Background colors-----------------The background color is stored in style->background_color, which beNULL (the background color of the parent widget is shining through).For toplevel widgets, this color is set as the background color of theviewport, for other widgets, a filled rectangle is drawn, covering thecontent and padding. (This is compliant with CSS2, the backgroundcolor of the toplevel element covers the whole canvas.)Drawing-------There is a new function Dw_widget_draw_widget_box, which should becalled at the beginning of Dw_foo_draw. For parts referring to styles(e.g. words in a page), Dw_widget_draw_box should be used.Notes on Memory Management==========================Memory management is done by reference counting, a_Dw_style_newreturns a pointer to DwStyle with an increased reference counter, soyou should care about calling Dw_style_unref if it is not usedanymore. You do *not* need to care about the reference counters offonts and styles.In detail:   - a_Dw_style_ref is called in        * a_Dw_widget_set_style, to assign a style to a widget,        * a_Dw_page_add_text, a_Dw_page_add_widget,          a_Dw_page_add_anchor, to assign a style to a word,        * and Html_push_tag (often the reference counter is again          decreased shortly after this).   - a_Dw_unref_style is called in:        * Dw_page_destroy, Dw_widget_destroy, Html_cleanup_tag,          Html_pop_tag, Html_close,        * a_Dw_widget_set_style, Html_set_top_font (and several          Html_tag_open_... functions), these functions overwrite an          existing style.HTML Stack==========(This is not DwStyle specific, but may be useful if you are working onthe HTML parser.)The topmost element of the HTML stack contains a (reference to a)style which will be used to add the text to the current page. If youuse a style only for a short while (see Html_tag_open_frame for anexample), you may use it this way:   style_attrs = *html->stack[html->stack_top].style;   style_attrs.foo = bar;   style = a_Dw_style_new (&style_attrs, random_window);Do not forget to unref it afterwards. A good choice for random_windowis html->bw->main_window->window.In many cases, you want to set the style for the content of an element(e.g. <A>), then you must store it in the stack:   DwStyle style_attrs, *old_style;   old_style = html->stack[html->stack_top].style;   style_attrs = *old_style;   style_attrs.foo = bar;   html->stack[html->stack_top].style =      a_Dw_style_new (&style_attrs, random_window);   a_Dw_style_unref (old_style);The macro HTML_SET_TOP_ATTR can be used for single attributes, forchanging more attributes, this code should be copied for efficiency.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区成人在线视频| xnxx国产精品| 欧美色中文字幕| 日韩限制级电影在线观看| 国产日韩在线不卡| 中文字幕在线一区| 日韩久久一区二区| 激情av综合网| 欧美性视频一区二区三区| 洋洋av久久久久久久一区| 欧美色老头old∨ideo| 欧美国产一区在线| 激情综合色播五月| 欧美在线免费视屏| 国产精品久久夜| 色综合久久久久网| 国产欧美一区在线| 91美女片黄在线| 国产欧美一区二区精品忘忧草| 国产精品自在欧美一区| 欧美一区二区三区系列电影| 亚洲综合在线电影| 风间由美一区二区三区在线观看 | 国产伦理精品不卡| 欧美精品日韩精品| 悠悠色在线精品| www.综合网.com| 久久久国产精华| 国产真实乱偷精品视频免| 国产精品私人影院| 成人精品视频一区二区三区尤物| 日韩欧美不卡一区| 日本成人在线电影网| 成人国产精品免费观看动漫| 久久精品视频在线看| 精品一区二区久久| 亚洲欧洲日韩一区二区三区| 欧美二区三区91| 不卡一区二区在线| 蜜臀av一区二区在线免费观看 | 在线区一区二视频| 激情综合色综合久久| 亚洲欧美成aⅴ人在线观看| 色综合 综合色| 日韩在线一二三区| 日韩欧美视频在线| 91精彩视频在线| 亚洲6080在线| 欧美日高清视频| 午夜精品免费在线观看| 91精品国产综合久久久蜜臀粉嫩 | 2021中文字幕一区亚洲| 日本精品视频一区二区三区| 国产精品一区免费视频| 日韩中文字幕亚洲一区二区va在线| 国产精品视频看| 2021国产精品久久精品| 欧美日韩mp4| 色屁屁一区二区| 成人免费视频国产在线观看| 毛片av一区二区| 亚洲成人在线网站| 亚洲永久精品大片| 亚洲欧美综合另类在线卡通| 国产亚洲综合在线| 精品免费国产二区三区| 成人做爰69片免费看网站| 精品一区二区av| 日韩黄色免费电影| 婷婷中文字幕综合| 亚洲国产精品精华液网站| 欧美一区二区视频免费观看| 欧美视频一区二区三区四区| 99国产欧美另类久久久精品| 亚洲成人免费电影| 亚洲午夜久久久久久久久电影网 | 精品欧美黑人一区二区三区| 91精品婷婷国产综合久久性色| 在线视频国产一区| 欧美艳星brazzers| 欧美最新大片在线看| 欧洲一区在线观看| 色猫猫国产区一区二在线视频| 成人污视频在线观看| 丁香亚洲综合激情啪啪综合| 国产精品1024久久| 亚洲成人午夜影院| 午夜精品免费在线观看| 日日夜夜精品免费视频| 亚洲成人综合在线| 日韩电影在线一区二区| 秋霞成人午夜伦在线观看| 中文字幕亚洲一区二区va在线| 国产精品午夜久久| 亚洲欧美另类小说| 亚洲午夜精品久久久久久久久| 亚洲国产日韩a在线播放| 图片区小说区区亚洲影院| 秋霞电影网一区二区| 国产一区二区三区在线观看免费| 韩国三级中文字幕hd久久精品| 国产精品自在欧美一区| av电影在线观看一区| 色婷婷狠狠综合| 91精品免费在线观看| 精品国产乱码久久久久久久久| 欧美性生活一区| 在线观看不卡视频| 国产精品福利一区| 国产精品美女久久久久久久久| 国产精品美女久久久久av爽李琼| 国产麻豆午夜三级精品| 国产成人在线网站| 91日韩在线专区| 欧美区一区二区三区| 精品国产麻豆免费人成网站| 中文在线免费一区三区高中清不卡| 亚洲视频每日更新| 青青草国产精品97视觉盛宴| 粉嫩aⅴ一区二区三区四区 | 六月婷婷色综合| 亚洲一二三区在线观看| 捆绑调教一区二区三区| 不卡一区在线观看| 7878成人国产在线观看| 亚洲国产岛国毛片在线| 亚洲精品久久久蜜桃| 麻豆精品一区二区av白丝在线| 粉嫩13p一区二区三区| 欧美久久久久中文字幕| 中文子幕无线码一区tr| 日韩精品一二三四| 91在线免费看| 久久综合九色综合欧美就去吻| 亚洲欧美电影一区二区| 国产伦理精品不卡| 欧美精品国产精品| 中文字幕高清一区| 日本亚洲最大的色成网站www| 成人性视频网站| 欧美一级电影网站| 亚洲一二三区不卡| kk眼镜猥琐国模调教系列一区二区| 精品视频在线视频| 国产精品卡一卡二| 国产自产视频一区二区三区| 欧美日韩亚洲综合| 亚洲天堂久久久久久久| 国产经典欧美精品| 精品日韩一区二区三区| 午夜视频久久久久久| 一本久久a久久免费精品不卡| 久久蜜桃av一区精品变态类天堂| 亚洲一区二区av在线| 精品国产一区二区精华| 亚洲韩国精品一区| 在线日韩国产精品| 亚洲精品视频一区| av中文字幕一区| 国产精品狼人久久影院观看方式| 国产综合久久久久久鬼色| 欧美成人一区二区三区| 天天综合网 天天综合色| 欧美在线一区二区| 一区二区三区蜜桃| 91猫先生在线| 亚洲欧美偷拍三级| 91免费视频观看| 18成人在线观看| 色综合久久久久综合| 亚洲欧洲www| 91丨九色丨蝌蚪丨老版| 亚洲欧洲综合另类在线| a4yy欧美一区二区三区| 成人欧美一区二区三区白人 | 不卡在线视频中文字幕| 国产三级一区二区| 粉嫩aⅴ一区二区三区四区| 日本一区免费视频| 成人av网站免费| 综合av第一页| 色综合欧美在线| 亚洲一区二区三区美女| 欧美日韩www| 精品一区二区三区在线播放视频| 精品国产免费人成在线观看| 国内久久婷婷综合| 国产精品狼人久久影院观看方式| a在线欧美一区| 一区二区免费在线| 欧美精选午夜久久久乱码6080| 日韩在线播放一区二区| 精品人在线二区三区| 国产1区2区3区精品美女| 中文字幕亚洲综合久久菠萝蜜| 91久久久免费一区二区| 三级一区在线视频先锋| 久久日韩粉嫩一区二区三区| 成人综合激情网| 亚洲狠狠爱一区二区三区|