]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/dfb/settings.cpp
fixed wxRegion::operator==
[wxWidgets.git] / src / dfb / settings.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/dfb/settings.cpp
3// Purpose: wxSystemSettings implementation
4// Author: Vaclav Slavik
5// Created: 2006-08-08
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// For compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
15 #pragma hdrstop
16#endif
17
18#include "wx/settings.h"
19
20#ifndef WX_PRECOMP
21 #include "wx/colour.h"
22 #include "wx/font.h"
23 #include "wx/gdicmn.h"
24#endif
25
26#include "wx/dfb/private.h"
27
28
29wxColour wxSystemSettingsNative::GetColour(wxSystemColour WXUNUSED(index))
30{
31 // not implemented, the mean is in wxUniversal
32 return wxColour(0,0,0);
33}
34
35wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
36{
37 switch (index)
38 {
39 case wxSYS_OEM_FIXED_FONT:
40 case wxSYS_ANSI_FIXED_FONT:
41 case wxSYS_SYSTEM_FIXED_FONT:
42 {
43 // FIXME_DFB
44 return wxFont(12,
45 wxFONTFAMILY_TELETYPE,
46 wxFONTSTYLE_NORMAL,
47 wxFONTWEIGHT_NORMAL);
48 }
49
50 case wxSYS_ANSI_VAR_FONT:
51 case wxSYS_SYSTEM_FONT:
52 case wxSYS_DEVICE_DEFAULT_FONT:
53 case wxSYS_DEFAULT_GUI_FONT:
54 {
55 // FIXME_DFB
56 return wxFont(12,
57 wxFONTFAMILY_DEFAULT,
58 wxFONTSTYLE_NORMAL,
59 wxFONTWEIGHT_NORMAL);
60 }
61
62 default:
63 wxFAIL_MSG( _T("unknown font type") );
64 return wxNullFont;
65 }
66}
67
68int wxSystemSettingsNative::GetMetric(wxSystemMetric index,
69 wxWindow* WXUNUSED(win))
70{
71 int val;
72
73 switch (index)
74 {
75 case wxSYS_SCREEN_X:
76 wxDisplaySize(&val, NULL);
77 return val;
78 case wxSYS_SCREEN_Y:
79 wxDisplaySize(NULL, &val);
80 return val;
81
82#warning "FIXME this"
83#if 0
84 case wxSYS_VSCROLL_X:
85 case wxSYS_HSCROLL_Y:
86 return 15;
87#endif
88
89 default:
90 wxFAIL_MSG( _T("unsupported metric") );
91 return -1;
92 }
93}
94
95bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
96{
97 switch (index)
98 {
99 case wxSYS_CAN_ICONIZE_FRAME:
100 case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
101 case wxSYS_TABLET_PRESENT:
102 return false;
103
104 default:
105 wxFAIL_MSG( _T("unknown feature") );
106 return false;
107 }
108}