Welcome![Sign In][Sign Up]
Location:
Search - brew api

Search list

[Other resourceBREWAPIReference

Description: BREW SDK2.01文档 BREW SDK 2.01 版向开发者提供环境,供其创建 BREW 2.01设备使用的应用程序。 本 API含有 BREW 2.01 工具及模拟功能介绍。 有关详细信息,请参阅发布声明的“新增功能”部分。-BREW SDK2.01 document 2.01 version of the BREW SDK to developers for the environment, BREW for its creation 2.01 equipment used by applications. The BREW API containing 2.01 simulation tools and features. For more information, please refer to a statement of the "new features" section.
Platform: | Size: 1273305 | Author: whb | Hits:

[BREWBREWAS1-7

Description: BREW ADVANCED SEMINOR 2004 SUMMER (PDF,日文) SECTION 1-7 CONTENTS SECTION 1: BREW PROGRAM BASIC SECTION 2: ALL ABOUT BREWEVENT MODEL SECTION 3: CALENDAR++ OBJECTMODEL SECTION 4: DUAL INTERFACE -BREW API & C++ - SECTION 5: STORAGE SERVICE SECTION 6: SOCKET PROGRAM SECTION 7: HTTP CONNECTION -BREW 2004 SUMMER (PDF, Japanese) SECTION 1-7 CONTENTS SECTION 1 : BREW BASIC PROGRAM SECTION 2 : ALL ABOUT BREWEVENT MODEL SECTION 3 : CALENDAR OBJECTMODEL SECTION 4 : DUAL INTERFACE - BREW API
Platform: | Size: 430112 | Author: 宫圣喜 | Hits:

[GUI Developbrew window manager

Description:

 

Objective
This topic describes how to create a windowed application that will share the display with other applications.
Brew® MP windowed applications need to be written differently than traditional Brew MP applications. Traditional Brew MP applications, when running in the foreground, occupy full screen space and can modify the display at any time. In the windowing framework, multiple applications share the display at the same time and are not allowed to modify the display arbitrarily. A windowed application also needs to create one or more widgets to be used to create the windows.
A windowed application needs to:
·                  Create and initialize one or more widgets to be passed to IWindowMgr_CreateWindow().
The application can implement its own IWidget, or it can make use of an existing IWidget.
·                  Handle the EVT_APP_START_WINDOW event (and create a window).
·                  Implement handlers for visibility changes, focus changes, and extent changes. The implementation of these handlers is dependent on the details of the application.
·                  Draw in two stages:
·                                  Tell the container that drawing is necessary (ICONTAINER_Invalidate()).
·                                  Draw only when told to draw by the container (IWIDGET_Draw()).
Note: A windowed application should not call any functions that modify IDisplay directly. This includes explicit IDisplay function calls or implicit updates, such as calls to IIMAGE_Draw() or ICONTROL_Redraw(). Drawing should happen only on demand, for example, when IWIDGET_Draw() is called for the widget used to create the window. Existing Widget based applications follow these guidelines and, with minor modifications, can be ported to the windowing framework.
Event handling
A windowed application must respond to these events:
EVT_APP_START_WINDOW and EVT_APP_START
A window-based application receives EVT_APP_START_WINDOW first. If the application returns TRUE for this event, the application does not receive EVT_APP_START. If an application needs to support both the environments (window based and non-window based), it should handle both events.
When the application receives EVT_APP_START_WINDOW, it should create one or more windows.
If creation of IWindowMgr0 fails while handling EVT_APP_START_WINDOW, the application should assume that the platform does not support window-based applications. In this case, the application should return FALSE and continue the application logic in the code for EVT_APP_START.
EVT_APP_SUSPEND and EVT_APP_RESUME
After an application returns TRUE for EVT_APP_START_WINDOW, it will not receive EVT_APP_SUSPEND and EVT_APP_RESUME as non-windowed Brew MP applications do. Instead, the application must check for window status events that are sent to the widget through EVT_WDG_SETPROPERTY events. For EVT_WDG_SETPROPERTY events, wParam indicates which property was set, and dwParam specifies the value of the property. When the AEEWindowMgrExt_PROPEX_STATE property has a value of AEEWindowMgrExt_STATE_VISIBLE, the window is visible.
EVT_WDG_WINDOWSTATUS
The EVT_WDG_WINDOWSTATUS event is sent to a widget to notify it about various window related status messages. AEEWindowStatus.h contains information on the meaning of various status messages.
Sample code location

ZIP filename
Location
Run app
hellowindowapp
Brew MP Library
·                       Download and extract the ZIP file.
·                       Compile the app.
·                       Run it on the Brew MP Simulator.

Example of a windowed application
In the hellowindowapp sample, HelloWindowApp_HandleEvent handles the EVT_APP_START_WINDOW event and creates soft key and pop-up windows:
   case EVT_APP_START_WINDOW:   
      DBGPRINTF("EVT_APP_START_WINDOW");
 
      // Create the softkey and popup windows
      HelloWindowApp_CreateSoftkey(pMe);
      HelloWindowApp_CreateOrActivatePopup(pMe);
 
      // Handling this event tells Brew that we are a windowing
      // application.
      return TRUE;  
HelloWindowApp_CreateSoftkey() creates the soft key widget, sets the color text of the widget, then calls HelloWindowApp_CreateWindow() to create the window.
   WidgetWindow *pWindow = &pMe->softkeyWindow;
  
   if (pWindow->piWindowWidget != NULL) return;
   pWindow->pszDbgName = "Softkey";
   pWindow->pMe = pMe;
  
   (void) ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_SoftkeyWidget,
            (void **) &pWindow->piWindowWidget);
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WidgetExtent extent = {0, HWA_SOFTKEY_HEIGHT};
      IWidget_SetExtent(pWindow->piWindowWidget, &extent);
   }
  
   (void) IWidget_SetBGColor(pWindow->piWindowWidget, MAKE_RGBA(200,200,200,255));
  
   // Now set the softkeys text
   {
      IWidget *piTextWidget = NULL;
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY1, &piTextWidget);
     
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Hover", TRUE);
      }
      RELEASEIF(piTextWidget);
 
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY2, &piTextWidget);
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Close", TRUE);
      }
      RELEASEIF(piTextWidget);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Softkey);  
HelloWindowApp_CreateWindow() creates the soft key window, as follows:
   int result;
   uint32 winId;
   AEEWindowProp propList[1];
  
   // Set custom window handler
   HANDLERDESC_Init(&pWindow->hdHandler, HelloWindowApp_WindowHandler, pWindow, NULL);
   IWIDGET_SetHandler(pWindow->piWindowWidget, &pWindow->hdHandler);
        
   propList[0].id = AEEWindowMgrExtProp_CLASS;
   propList[0].pbyLen = sizeof(winClass);
   propList[0].pby = (void *) &winClass;
     
   result = IWindowMgr_CreateWindow(pMe->piWindowMgr, (IQI*) (void *) pWindow->piWindowWidget,
      propList, ARR_SIZE(propList), &winId);
 
   if (result != SUCCESS) {
      DBGPRINTF("Window creation failed for %s: %d", pWindow->pszDbgName, result);
      HelloWindowApp_DestroyWindow(pWindow);
   } else {
      DBGPRINTF("Window %s created: id=%d", pWindow->pszDbgName, winId);
   }
HelloWindowApp_CreateOrActivatePopup() creates the widget for the pop-up window, then calls HelloWindowApp_CreateWindow() to create the pop-up window.
   pWindow->piWindowWidget = HelloWindowApp_CreateAndInitImageWidget(
                                pMe,
                                "popups.main" // Image as defined in appinfo.ini
                             );
 
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WExtent extent = {HWA_POPUP_WIDTH, HWA_POPUP_HEIGHT};
      IWIDGET_SetExtent(pWindow->piWindowWidget, &extent);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Popup);
Related information
·                  See Brew MP Widgets Technology Guide: Creating a Widgets application
·                  See Brew MP API Reference

Base version:
Brew MP 1.0
Tested version:
Brew MP 1.0
Phone tested:
No

 

Platform: | Size: 439828 | Author: bluecrest | Hits:

[Program doc使用 BREW 开发定位应用程序

Description: 本文目的是给那些 BREW 开发者们一个关于 BREW SDK/API 中有效特征的大概的了 解,他们用这些来创建 BREW 定位应用程序。
Platform: | Size: 191688 | Author: news.donald@gmail.com | Hits:

[VC/MFCbrew帮助文档

Description: brew开发文档,包含了brew3.0版本的常用API,对开发brew项目有很大的帮助,特别是初学者,值得参考
Platform: | Size: 1340062 | Author: 361913932@qq.com | Hits:

[BREWBrewex

Description: BREW 应用,封装了很多API,可以借鉴或者直接在这个基础上开发,提高效率-BREW applications, Packaging, a lot of API, we can draw directly or on the basis of development, to improve efficiency
Platform: | Size: 158720 | Author: 唐建 | Hits:

[VC/MFCBREWProgrammingguide

Description: 海信内部BREW资料,包括BREW入门知识及简单的API函数接口-internal information, including entry BREW knowledge and simple API Function Interface
Platform: | Size: 346112 | Author: | Hits:

[BREWBREW3.0API

Description: brew 3.0 的中文API,很详细的 -brew of Chinese API 3.0, a very detailed
Platform: | Size: 1340416 | Author: fantasy | Hits:

[BREWOpenGL_ES_extension_1.0.1

Description: brew 3D 上的扩展包,是openGL ES的底层API-brew 3D on the expansion pack, is the bottom openGL ES API
Platform: | Size: 588800 | Author: fantasy | Hits:

[Software EngineeringBREWAPIReference

Description: BREW SDK2.01文档 BREW SDK 2.01 版向开发者提供环境,供其创建 BREW 2.01设备使用的应用程序。 本 API含有 BREW 2.01 工具及模拟功能介绍。 有关详细信息,请参阅发布声明的“新增功能”部分。-BREW SDK2.01 document 2.01 version of the BREW SDK to developers for the environment, BREW for its creation 2.01 equipment used by applications. The BREW API containing 2.01 simulation tools and features. For more information, please refer to a statement of the "new features" section.
Platform: | Size: 1272832 | Author: whb | Hits:

[BREWppt1

Description: 很好的BREW培训资料(ppt) 使学员掌握BREW的基本概念和框架 使学员掌握开发一个BREW应用的全部过程 使学员掌握一个BREW应用商用的全部过程 使学员掌握常用的API用法 使学员掌握UBT的基本要点 让学员自己动手完成一个BREW应用的设计,以此让其感受开发的全过程 -BREW good training materials (ppt) to enable students to acquire the basic concepts of BREW and framework to enable students to acquire a BREW application development process to enable all students to acquire a commercial BREW application process so that all students master the use of common API to enable students to acquire the UBT the basic elements to enable trainees to complete a do-it-yourself BREW application design, as to the feelings of the entire process of development
Platform: | Size: 650240 | Author: foxshy | Hits:

[BREWppt3

Description: 使学员掌握BREW的基本概念和框架 使学员掌握开发一个BREW应用的全部过程 使学员掌握一个BREW应用商用的全部过程 使学员掌握常用的API用法 使学员掌握UBT的基本要点 让学员自己动手完成一个BREW应用的设计,以此让其感受开发的全过程 -BREW to enable trainees to grasp the basic concept and framework to enable students to acquire a BREW application development process to enable all students to acquire a commercial BREW application process so that all students master the use of common API to enable students to acquire the basic elements of UBT to enable trainees to complete a do-it-yourself BREW application design, as to the feelings of the entire process of development
Platform: | Size: 642048 | Author: foxshy | Hits:

[BREWBREWAPIReference

Description: BREW中文API参考手册,对初学者帮助非常大,易于理解,快来抢吧!-BREW Chinese API reference manual for beginners to help very large, easy-to-understand, Come get it!
Platform: | Size: 4852736 | Author: 赵景阳 | Hits:

[BREWVector

Description: Brew上可以使用的vector,类似于STL里的vector,支持排序,支持迭代器,采用瘦模板实现,紧凑高效。-vector in Brew
Platform: | Size: 3072 | Author: | Hits:

[BREWbrew

Description: 两个比较好的brew文档,初学者最好的学习资料。学习brew最重要的是对API和程序流程的熟悉,不要拘泥于某个宏或者函数指针的理解,要做到先上手,再贯通理解。-Good brew two documents, the best learning materials for beginners. Learning brew is the most important API familiar with the processes and procedures, do not rigidly adhere to a macro or a function pointer of understanding, to be started first, and then through understanding.
Platform: | Size: 1219584 | Author: jn | Hits:

[OtherBREW_API_3_0_Reference_ch

Description: BREW API 3.0 中文版 chm (BREW开发必备)-BREW API Reference CH.chm
Platform: | Size: 1340416 | Author: coluco | Hits:

[BREWBREWAPIReference

Description: brew api brew 游戏开发 用的api,包含各种函数 的使用例子-the api of brew mobel s game
Platform: | Size: 1272832 | Author: teiunhi | Hits:

[BREWbrew_API

Description: BREW API,BREW 的接口函数,比较不错,随用随查哦-BREW API, BREW interface functions, is doing relatively well, with the oh with the following search
Platform: | Size: 4477952 | Author: chenliang | Hits:

[BREWbrew

Description: brew api document with the detailed information
Platform: | Size: 450560 | Author: sehaswaran | Hits:

[BREWBREW-API

Description: BREW 3.0 API 參考資料簡介-Introduction to BREW 3.0 API Reference
Platform: | Size: 1340416 | Author: yorke5460296 | Hits:
« 12 3 »

CodeBus www.codebus.net