summaryrefslogtreecommitdiff
path: root/lib/wx/doc/src/wxSystemSettings.xml
blob: 1b148a3de7bdb62ff742de7e189d47dd3131aaec (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
62
63
64
65
66
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<!-- THIS FILE IS GENERATED DO NOT EDIT -->


<erlref>
<header>
  <copyright>
    <year>2020</year><year>2021</year>
    <holder>wxWidgets team.</holder></copyright>
  <legalnotice>Licensed under the wxWindows Free Documentation Licence, Version 3
  </legalnotice>
  <title>wxSystemSettings</title>
</header>
<module>wxSystemSettings</module>
<modulesummary>Functions for wxSystemSettings class</modulesummary>
<description><p><seeerl marker="wxSystemSettings"><c>wxSystemSettings</c></seeerl> allows the application to ask for details about the system.
      </p><p>This can include settings such as standard colours, fonts, and user interface element sizes.
      </p><p>See: <seeerl marker="wxFont"><c>wxFont</c></seeerl>, <seetype marker="wx#wx_colour"><c>wx_color()</c></seetype>, <seeerl marker="wxSystemOptions"><c>wxSystemOptions</c></seeerl>
      </p>
  <p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_system_settings.html">wxSystemSettings</url></p>
  </description>
<datatypes><datatype><name name="wxSystemSettings"/></datatype></datatypes>

<funcs>
  <func>
    <name name="getColour" arity="1" clause_i="1" since=""/>
    <fsummary>Returns a system colour. </fsummary>
    <desc><p>Returns a system colour. 
      </p><p>Return: The returned colour is always valid. 
      </p></desc>
  </func>
  
  <func>
    <name name="getFont" arity="1" clause_i="1" since=""/>
    <fsummary>Returns a system font. </fsummary>
    <desc><p>Returns a system font. 
      </p><p>Return: The returned font is always valid. 
      </p></desc>
  </func>
  
  <func>
    <name name="getMetric" arity="1" clause_i="1" since=""/>
    <fsummary>See: <c>getMetric/2</c></fsummary>
  </func>
  
  <func>
    <name name="getMetric" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the value of a system metric, or -1 if the metric is not supported on the current system. </fsummary>
    <desc><p>Returns the value of a system metric, or -1 if the metric is not supported on the current system. 
      </p><p>The value of <c>win</c> determines if the metric returned is a global value or a <seeerl marker="wxWindow"><c>wxWindow</c></seeerl> based value, in which case it might determine the widget, the display the window is on, or something similar. The window given should be as close to the metric as possible (e.g. a <seeerl marker="wxTopLevelWindow"><c>wxTopLevelWindow</c></seeerl> in case of the wxSYS_CAPTION_Y metric).
      </p><p><c>index</c> can be one of the ?wxSystemMetric enum values.
      </p><p><c>win</c> is a pointer to the window for which the metric is requested. Specifying the <c>win</c> parameter is encouraged, because some metrics on some ports are not supported without one,or they might be capable of reporting better values if given one. If a window does not make sense for a metric, one should still be given, as for example it might determine which displays cursor width is requested with wxSYS_CURSOR_X. 
      </p></desc>
  </func>
  
  <func>
    <name name="getScreenType" arity="0" clause_i="1" since=""/>
    <fsummary>Returns the screen type. </fsummary>
    <desc><p>Returns the screen type. 
      </p><p>The return value is one of the ?wxSystemScreenType enum values. 
      </p></desc>
  </func>
  </funcs>
</erlref>