File: IconSource.xml

package info (click to toggle)
gtk-sharp3 2.99.3-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 25,488 kB
  • sloc: xml: 308,885; cs: 38,796; sh: 11,336; perl: 1,295; makefile: 1,099; ansic: 903
file content (428 lines) | stat: -rw-r--r-- 17,878 bytes parent folder | download | duplicates (5)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<Type Name="IconSource" FullName="Gtk.IconSource">
  <TypeSignature Language="C#" Maintainer="duncan" Value="public class IconSource : GLib.Opaque" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit IconSource extends GLib.Opaque" />
  <AssemblyInfo>
    <AssemblyName>gtk-sharp</AssemblyName>
    <AssemblyPublicKey>
    </AssemblyPublicKey>
  </AssemblyInfo>
  <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
  <Base>
    <BaseTypeName>GLib.Opaque</BaseTypeName>
  </Base>
  <Interfaces>
  </Interfaces>
  <Docs>
    <summary>
      A GtkIconSource contains a <see cref="T:Gdk.Pixbuf" /> (or image
      filename) that serves as the base image for one or more of the
      icons in a <see cref="T:Gtk.IconSet" />, along with a
      specification for which icons in the icon set will be based on
      that pixbuf or image file. An icon set contains a set of icons
      that represent the same logical concept in different states,
      different global text directions, and different sizes.
    </summary>
    <remarks>
      <para>
      A <see cref="T:Gtk.IconSource" /> contains a <see cref="T:Gdk.Pixbuf" /> (or image
      filename) that serves as the base image for one or more of the
      icons in a <see cref="T:Gtk.IconSet" />, along with a
      specification for which icons in the icon set will be based on
      that pixbuf or image file. An icon set contains a set of icons
      that represent the same logical concept in different states,
      different global text directions, and different sizes.
      </para>
      <para>
        So for example a web browser's "Back to Previous Page" icon
        might point in a different direction in Hebrew and in English;
        it might look different when insensitive; and it might change
        size depending on toolbar mode (small/large icons). So a
        single icon set would contain all those variants of the
        icon. <see cref="T:Gtk.IconSet" /> contains a list of <see cref="T:Gtk.IconSource" /> from which
        it can derive specific icon variants in the set.
      </para>
      <para>
        In the simplest case, <see cref="T:Gtk.IconSet" /> contains
        one source pixbuf from which it derives all variants. The
        <see cref="C:Gtk.IconSet(Gdk.Pixbuf)" /> constructor handles
        this case; if you only have one source pixbuf, just use that
        function.
      </para>
      <para>
        If you want to use a different base pixbuf for different icon
        variants, you create multiple icon sources, mark which
        variants they'll be used to create, and add them to the icon
        set with <see cref="M:Gtk.IconSet.AddSource(Gtk.IconSource)" />.
      </para>
      <para>
        By default, the icon source has all parameters
        wildcarded. That is, the icon source will be used as the base
        icon for any desired text direction, widget state, or icon
        size.
      </para>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public IconSource ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <ReturnValue />
      <Parameters />
      <Docs>
        <summary>Creates a new <see cref="T:Gtk.IconSource" />.</summary>
        <remarks />
      </Docs>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public IconSource (IntPtr raw);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
      <MemberType>Constructor</MemberType>
      <ReturnValue />
      <Parameters>
        <Parameter Name="raw" Type="System.IntPtr" />
      </Parameters>
      <Docs>
        <param name="raw">Pointer to the C object.</param>
        <summary>Internal constructor</summary>
        <remarks>
          <para>This is an internal constructor, and should not be used by user code.</para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Copy">
      <MemberSignature Language="C#" Value="public Gtk.IconSource Copy ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Gtk.IconSource Copy() cil managed" />
      <MemberType>Method</MemberType>
      <ReturnValue>
        <ReturnType>Gtk.IconSource</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>
          Creates a copy of the current <see cref="T:Gtk.IconSource" />; mostly useful for language
          bindings.
        </summary>
        <returns>
          a new GtkIconSource that is a copy of the current one
        </returns>
        <remarks />
      </Docs>
    </Member>
    <Member MemberName="Direction">
      <MemberSignature Language="C#" Value="public Gtk.TextDirection Direction { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype Gtk.TextDirection Direction" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>Gtk.TextDirection</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          The text direction this icon source applies to.
        </summary>
        <value>
          Obtains the text direction this icon source applies to. The
          return value is only useful/meaningful if the text direction
          is not wildcarded.
        </value>
        <remarks>
          Setting the text direction on an icon source makes no
          difference if the text direction is wildcarded. Therefore,
          you should usually set the <see cref="P:Gtk.IconSource.DirectionWildcarded" /> property to
          un-wildcard it in addition to calling this function.
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="DirectionWildcarded">
      <MemberSignature Language="C#" Value="public bool DirectionWildcarded { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool DirectionWildcarded" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          If the text direction is wildcarded, this source can be used
          as the base image for an icon in any <see cref="T:Gtk.TextDirection" />.
        </summary>
        <value>Whether the text direction is wildcarded or not</value>
        <remarks>
          <para>
            If the text direction is wildcarded, this source can be
            used as the base image for an icon in any <see cref="T:Gtk.TextDirection" />. If the text direction is
            not wildcarded, then the text direction the icon source
            applies to should be set with <see cref="P:Gtk.IconSource.Direction" />, and the icon source
            will only be used with that text direction.
          </para>
          <para>
            <see cref="T:Gtk.IconSet" /> prefers non-wildcarded
            sources (exact matches) over wildcarded sources, and will
            use an exact match when possible.
          </para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Filename">
      <MemberSignature Language="C#" Value="public string Filename { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string Filename" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          Retrieves the source filename, or <see langword="null" /> if none is set. 
        </summary>
        <value>
          Retrieves the source filename, or <see langword="null" /> if
          none is set. The filename is not a copy, and should not be
          modified or expected to persist beyond the lifetime of the
          icon source.
        </value>
        <remarks />
      </Docs>
    </Member>
    <Member MemberName="Finalize">
      <MemberSignature Language="C#" Value="~IconSource ();" />
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Finalize() cil managed" />
      <MemberType>Method</MemberType>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
        <since version="Gtk# 3.0" />
      </Docs>
    </Member>
    <Member MemberName="Free">
      <MemberSignature Language="C#" Value="public void Free ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Free() cil managed" />
      <MemberType>Method</MemberType>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete("Gtk.IconSource is now freed automatically")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>Frees a dynamically-allocated icon source, along with its filename, size, and pixbuf fields.</summary>
        <remarks />
      </Docs>
    </Member>
    <Member MemberName="Free">
      <MemberSignature Language="C#" Value="protected override void Free (IntPtr raw);" />
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Free(native int raw) cil managed" />
      <MemberType>Method</MemberType>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="raw" Type="System.IntPtr" />
      </Parameters>
      <Docs>
        <param name="raw">To be added.</param>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
        <since version="Gtk# 3.0" />
      </Docs>
    </Member>
    <Member MemberName="GType">
      <MemberSignature Language="C#" Value="public static GLib.GType GType { get; }" />
      <MemberSignature Language="ILAsm" Value=".property valuetype GLib.GType GType" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>GLib.GType</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>GType Property.</summary>
        <value>a <see cref="T:GLib.GType" /></value>
        <remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gtk.IconSource" />.</remarks>
      </Docs>
    </Member>
    <Member MemberName="IconName">
      <MemberSignature Language="C#" Value="public string IconName { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string IconName" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>
	  The name of an icon to look up in the current icon theme
	  to use as a base image when creating icon variants for #GtkIconSet
	</summary>
        <value>a <see cref="T:System.String" /></value>
        <remarks>
        </remarks>
        <since version="Gtk# 2.4" />
      </Docs>
    </Member>
    <Member MemberName="Pixbuf">
      <MemberSignature Language="C#" Value="public Gdk.Pixbuf Pixbuf { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class Gdk.Pixbuf Pixbuf" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>Gdk.Pixbuf</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          The base image used when creating icon variants of a <see cref="T:Gtk.IconSet" /></summary>
        <value>the source pixbuf, or <see langword="null" /> if none is set.</value>
        <remarks>
          <para>
            If an icon source has both a filename and a pixbuf set, the
            pixbuf will take priority.
          </para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Size">
      <MemberSignature Language="C#" Value="public Gtk.IconSize Size { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype Gtk.IconSize Size" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>Gtk.IconSize</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          The icon size this icon source is intended to be used with.
        </summary>
        <value>
          Obtains the icon size this source applies to. The return
          value is only useful/meaningful if the icon size is not
          wildcarded.
        </value>
        <remarks>
          Setting the icon size on an icon source makes no difference
          if the size is wildcarded. Therefore, you should usually set
          the <see cref="P:Gtk.IconSource.SizeWildcarded" /> property
          to un-wildcard it in addition to calling this function.
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="SizeWildcarded">
      <MemberSignature Language="C#" Value="public bool SizeWildcarded { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool SizeWildcarded" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          If the icon size is wildcarded, this source can be used as
          the base image for an icon of any size. If the size is not
          wildcarded, then the size the source applies to should be
          set with <see cref="P:Gtk.IconSource.Size" /> and the icon
          source will only be used with that specific size.
        </summary>
        <value>Whether the size is wildcarded or not</value>
        <remarks>
          <para>
            If the icon size is wildcarded, this source can be used as
            the base image for an icon of any size. If the size is not
            wildcarded, then the size the source applies to should be
            set with <see cref="P:Gtk.IconSource.Size" /> and the icon
            source will only be used with that specific size.
          </para>
          <para>
            <see cref="T:Gtk.IconSet" /> prefers non-wildcarded
            sources (exact matches) over wildcarded sources, and will
            use an exact match when possible.
          </para>
          <para>
            <see cref="T:Gtk.IconSet" /> will normally scale
            wildcarded source images to produce an appropriate icon at
            a given size, but will not change the size of source
            images that match exactly.
          </para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="State">
      <MemberSignature Language="C#" Value="public Gtk.StateType State { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype Gtk.StateType State" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>Gtk.StateType</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          The widget state this icon source applies to.
        </summary>
        <value>
          Obtains the widget state this icon source applies to. The
          return value is only useful/meaningful if the widget state
          is not wildcarded.
        </value>
        <remarks>
          Setting the widget state on an icon source makes no
          difference if the state is wildcarded. Therefore, you should
          usually set the <see cref="P:Gtk.IconSource.StateWildcarded" /> propertyto un-wildcard it in addition to calling this
          function.
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="StateWildcarded">
      <MemberSignature Language="C#" Value="public bool StateWildcarded { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool StateWildcarded" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          If the widget state is wildcarded, this source can be used
          as the base image for an icon in any <see cref="T:Gtk.StateType" />.
        </summary>
        <value>
          Whether or not the widget is wildcarded.
        </value>
        <remarks>
          <para>
            If the widget state is wildcarded, this source can be used
            as the base image for an icon in any <see cref="T:Gtk.StateType" />. If the
            widget state is not wildcarded, then the state the source
            applies to should be set with <see cref="P:Gtk.IconSource.State" />
            and the icon source will only be used with that specific
            state.
          </para>
          <para>
            <see cref="T:Gtk.IconSet" /> prefers non-wildcarded
            sources (exact matches) over wildcarded sources, and will
            use an exact match when possible.
          </para>
          <para>
            <see cref="T:Gtk.IconSet" /> will normally transform
            wildcarded source images to produce an appropriate icon
            for a given state, for example lightening an image on
            prelight, but will not modify source images that match
            exactly.
          </para>
        </remarks>
      </Docs>
    </Member>
  </Members>
</Type>