summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/webkit/DOMCSSStyleSheet.inc
blob: c1394563eda1c81eca48f9729d4094b75089e6e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ Parsed from Webkit.framework DOMCSSStyleSheet.h }

{$ifdef TYPES}
{$ifndef DOMCSSSTYLESHEET_PAS_T}
{$define DOMCSSSTYLESHEET_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef DOMCSSSTYLESHEET_PAS_R}
{$define DOMCSSSTYLESHEET_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef DOMCSSSTYLESHEET_PAS_F}
{$define DOMCSSSTYLESHEET_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef DOMCSSSTYLESHEET_PAS_S}
{$define DOMCSSSTYLESHEET_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  DOMCSSStyleSheet = objcclass;
  DOMCSSStyleSheetPointer = ^DOMCSSStyleSheet;
  DOMCSSStyleSheetPtr = DOMCSSStyleSheetPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef DOMCSSSTYLESHEET_PAS_C}
{$define DOMCSSSTYLESHEET_PAS_C}

{ DOMCSSStyleSheet }
  DOMCSSStyleSheet = objcclass external (DOMStyleSheet)
    
  public
    function ownerRule: DOMCSSRule; message 'ownerRule';
    function cssRules: DOMCSSRuleList; message 'cssRules';
    function rules: DOMCSSRuleList; message 'rules';
    function insertRule_index(rule: NSString; index: cuint): cuint; message 'insertRule:index:';
    procedure deleteRule(index: cuint); message 'deleteRule:';
    function addRule_style_index(selector: NSString; style: NSString; index: cuint): cint; message 'addRule:style:index:';
    procedure removeRule(index: cuint); message 'removeRule:';
  end;

{ DOMCSSStyleSheetDeprecatedCategory }
  DOMCSSStyleSheetDeprecatedCategory = objccategory external (DOMCSSStyleSheet)
    function insertRule(rule: NSString; index: cuint): cuint; message 'insertRule:rule:'; deprecated 'in_webkit_version_3 and later';
  end;

{$endif}
{$endif}