1 /***************************************************************************
3 * Copyright 2012 BMW Car IT GmbH
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 ****************************************************************************/
20 #ifndef __LMCONTROL_H__
21 #define __LMCONTROL_H__
34 //=============================================================================
36 //=============================================================================
39 * Functions for printing arrays, vector and maps
41 void printArray(const char* text, unsigned int* array, int count);
44 void printArray(const char* text, T* array, int count);
47 void printVector(const char* text, vector<T> v);
49 template<typename K, typename V>
50 void printMap(const char* text, std::map<K, V> m);
53 * Prints information about the specified screen
55 void printScreenProperties(unsigned int screenid, const char* prefix = "");
58 * Prints information about the specified layer
60 void printLayerProperties(unsigned int layerid, const char* prefix = "");
63 * Prints information about the specified surface
65 void printSurfaceProperties(unsigned int surfaceid, const char* prefix = "");
68 * Prints information about rendered scene
69 * (All screens, all rendered layers, all rendered surfaces)
74 //=============================================================================
76 //=============================================================================
77 void getCommunicatorPerformance();
78 void setSurfaceKeyboardFocus(t_ilm_surface surface);
79 void getKeyboardFocus();
80 void setSurfaceAcceptsInput(t_ilm_surface surfaceId, string kbdPointerTouch, t_ilm_bool acceptance);
81 void testNotificationLayer(t_ilm_layer layerid);
82 void watchLayer(unsigned int* layerids, unsigned int layeridCount);
83 void watchSurface(unsigned int* surfaceids, unsigned int surfaceidCount);
84 void setOptimization(t_ilm_uint id, t_ilm_uint mode);
85 void getOptimization(t_ilm_uint id);