aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Irssi/Windowitem.pod
blob: 896600b18c9e5be468cb2a3f67920115ce91f2f9 (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
__END__

=head1 NAME

Irssi::Windowitem

=head1 DESCRIPTION


The meaning of "window" should be pretty clear, but "window item" is something I
couldn't really figure out a better name for :) They're simply something that's
inside a window, a channel or a query usually.  Windows can have multiple items
inside them. It's possible to create non-channel/query window items too,
currently the third possible window item is created by /EXEC -interactive.

In scripts, I think you can quite safely assume that the window item is
query or channel if the script is intended to be run in one of them.
Stupid users won't probably have other window items, and smart users
know where to run the script, or at least later figure out why it
didn't work :)

=head1 FIELDS

Windowitem->{}

  type - Type of the window item, for example "CHANNEL" or "QUERY"
  chat_type - String ID of chat protocol, for example "IRC"

  server - Active server for item
  name - Name of the item

  createtime - Time the window item was created
  data_level - 0=no new data, 1=text, 2=msg, 3=highlighted text
  hilight_color - Color of the last highlighted text

=head1 METHODS

=head2 C<print $str, [$level]>

=head2 C<command $cmd>

=head2 C<set_active>

Change window item active in parent window.


=head2 C<change_server $server>

Change server in window item.

=head2 C<is_active>

Returns 1 if window item is the active item in parent window.


=head2 C<get_dcc $item>

If `item' is a query of a =nick, return DCC chat record of nick.
returns L<Irssi::Dcc> object.

Windowitem::window_create(automatic)
  Create a new window.

=head1 full func list


    Irssi::Windowitem::activity
    Irssi::Windowitem::change_server
    Irssi::Windowitem::command
    Irssi::Windowitem::get_dcc
    Irssi::Windowitem::is_active
    Irssi::Windowitem::parse_special
    Irssi::Windowitem::print
    Irssi::Windowitem::printformat
    Irssi::Windowitem::set_active
    Irssi::Windowitem::window
    Irssi::Windowitem::window_create