Sponsored Content
The Lounge What is on Your Mind? Promotion! Like Our New Facebook Timeline Page for 10,000 Bits! Post 302650427 by hexram on Saturday 2nd of June 2012 11:16:40 PM
Old 06-03-2012
Liked it and pressed the dreaded button... Great job!

Moderator's Comments:
Mod Comment Neo: 10,000 Bit Transferred... Thanks!
 

3 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Microsoft "Donates" $3,000,000,000 to Feds

Surreal quote from the news link below: http://www.washingtonpost.com/wp-dyn/articles/A44615-2002Nov12.html (0 Replies)
Discussion started by: Neo
0 Replies

2. Post Here to Contact Site Administrators and Moderators

Bits Club link on main page

Hi, I noticed that the Bit Club is no longer accessible from the main page. It used to be in the Members Only Forum (I think, can't really remember.) Was this intentional? Regards, Ni2 (3 Replies)
Discussion started by: ni2
3 Replies

3. Web Development

MySQL Query to Build Mockup Vue.js UserCP Timeline Page

Here is the query (and some sample results) I plan to use to build a new timeline page in the mockup vue.js usercp I am working on. When the postid is the same as lastpostid, this means the timeline entry will be - "{{Member}} Started Discussion {{Thread Title}} at {{date and time}}" and when... (4 Replies)
Discussion started by: Neo
4 Replies
DTK_PROCESS_EVENTS(3)						Draw Toolkit manual					     DTK_PROCESS_EVENTS(3)

NAME
dtk_process_events, dtk_set_event_handler - Events processing SYNOPSIS
#include <dtk_event.h> typedef int (*DTKEvtProc)(dtk_hwnd, int, const union dtk_event*); void dtk_set_event_handler(dtk_hwnd wnd, DTKEvtProc handler); int dtk_process_events(dtk_hwnd wnd); DESCRIPTION
dtk_set_event_handler() set handler as the current event handler for the window wnd. handler is a function that has arguments in the fol- lowing order: * a reference of type dtk_hwnd to the window that has received the event. * the type ID of the event. * a pointer to a union dtk_event holding event-specific data (if not NULL) defined as follows: union dtk_event { struct dtk_keyevent key; struct dtk_mouseevent mouse; }; dtk_process_events() processes pending events in the event queues associated to the window referenced by wnd, i.e. for each event in the queue, it calls the event handler that has been set by dtk_set_event_handler(). dtk_process_events() returns if a event handler has returned 0 or if there is no more pending event in the queue. If dtk_set_event_handler() has never been called or called with handle as NULL, it use a minimalistic event handler that returns 0 (i.e. stop the loop) when pressing the close button on the window. The type ID of the event can be one of the following: DTK_EVT_REDRAW This event indicates that the whole window or parts of it must be redrawn. This may be caused by another window has been overlapped it or the window has been resized. If such an event is received, the event pointer passed to the handler will be NULL. DTK_EVT_QUIT This event indicates that the close button of the window has been clicked. The event pointer passed will be NULL. DTK_EVT_KEYBOARD Indicates that a key of the keyboard has been pressed or released. If such an event is received, the meaningfull member of the union dtk_event will be key which is defined as follows: struct dtk_keyevent { unsigned int state; /* pressed or released */ unsigned int sym; /* Symbolic code of the key */ unsigned int mod; /* modifiers key */ }; DTK_EVT_MOUSEBUTTON This event indicates that one of the mouse buttons has been pressed or released. If such an event is received, the meaningfull mem- ber of the union dtk_event will be mouse which is defined as follows: struct dtk_mouseevent { unsigned int button; /* button identifier */ unsigned int state; /* pressed or realeased */ unsigned int x; /* x-coordinate of the mouse position */ unsigned int y; /* y-coordinate of the mouse position */ }; DTK_EVT_MOUSEMOTION This is similar to the DTK_EVT_MOUSEBUTTON but indicates that the mouse has moved. Event data should also be accessed through mouse member but its button and state members will be meaningless. RETURN VALUE
dtk_set_event_handler() does not return value. dtk_process_events() returns 1 if there is no more pending event in the queue. It returns 0 if the processing loop has been interrupted by an event handler, i.e. the last event handler has returned 0. EPFL
2010 DTK_PROCESS_EVENTS(3)
All times are GMT -4. The time now is 10:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy