Lines Matching refs:msg
232 BMessage msg(BAPP_WINDOW_MOVED); in FrameMoved()
233 msg.AddInt32("window-x", (int)origin.x); in FrameMoved()
234 msg.AddInt32("window-y", (int)origin.y); in FrameMoved()
235 _PostWindowEvent(msg); in FrameMoved()
243 BMessage msg(BAPP_WINDOW_RESIZED); in FrameResized()
245 msg.AddInt32("window-w", (int)width + 1); in FrameResized()
246 msg.AddInt32("window-h", (int)height + 1); in FrameResized()
247 _PostWindowEvent(msg); in FrameResized()
254 BMessage msg(BAPP_WINDOW_CLOSE_REQUESTED); in QuitRequested()
255 _PostWindowEvent(msg); in QuitRequested()
262 BMessage msg(BAPP_KEYBOARD_FOCUS); /* Mouse focus sold separately */ in WindowActivated()
263 msg.AddBool("focusGained", active); in WindowActivated()
264 _PostWindowEvent(msg); in WindowActivated()
270 BMessage msg(BAPP_MAXIMIZE); /* Closest thing to maximization Haiku has */ in Zoom()
271 _PostWindowEvent(msg); in Zoom()
288 BMessage msg(BAPP_SHOW); in Show()
289 _PostWindowEvent(msg); in Show()
296 BMessage msg(BAPP_HIDE); in Hide()
297 _PostWindowEvent(msg); in Hide()
304 BMessage msg(minState); in Minimize()
305 _PostWindowEvent(msg); in Minimize()
310 virtual void DispatchMessage(BMessage * msg, BHandler * target) in DispatchMessage() argument
316 switch (msg->what) { in DispatchMessage()
319 if (msg->FindPoint("where", &where) == B_OK in DispatchMessage()
320 && msg->FindInt32("be:transit", &transit) == B_OK) { in DispatchMessage()
326 if (msg->FindInt32("buttons", &buttons) == B_OK) { in DispatchMessage()
332 if (msg->FindInt32("buttons", &buttons) == B_OK) { in DispatchMessage()
339 if (msg->FindFloat("be:wheel_delta_x", &x) == B_OK in DispatchMessage()
340 && msg->FindFloat("be:wheel_delta_y", &y) == B_OK) { in DispatchMessage()
350 while (i < 4 && msg->FindInt8("byte", i, &byte) == B_OK) { in DispatchMessage()
354 if (msg->FindInt32("key", &key) == B_OK) { in DispatchMessage()
361 if (msg->FindInt32("key", &key) == B_OK) { in DispatchMessage()
368 if (msg->FindInt32("key", &key) == B_OK) { in DispatchMessage()
383 BDirectWindow::DispatchMessage(msg, target); in DispatchMessage()
477 BMessage msg(BAPP_MOUSE_MOVED); in _MouseMotionEvent()
478 msg.AddInt32("x", (int)where.x); in _MouseMotionEvent()
479 msg.AddInt32("y", (int)where.y); in _MouseMotionEvent()
481 _PostWindowEvent(msg); in _MouseMotionEvent()
487 BMessage msg(BAPP_MOUSE_FOCUS); in _MouseFocusEvent()
488 msg.AddBool("focusGained", focusGained); in _MouseFocusEvent()
489 _PostWindowEvent(msg); in _MouseFocusEvent()
513 BMessage msg(BAPP_MOUSE_BUTTON); in _SendMouseButton()
514 msg.AddInt32("button-id", button); in _SendMouseButton()
515 msg.AddInt32("button-state", state); in _SendMouseButton()
516 _PostWindowEvent(msg); in _SendMouseButton()
521 BMessage msg(BAPP_MOUSE_WHEEL); in _MouseWheelEvent()
522 msg.AddInt32("xticks", x); in _MouseWheelEvent()
523 msg.AddInt32("yticks", y); in _MouseWheelEvent()
524 _PostWindowEvent(msg); in _MouseWheelEvent()
529 BMessage msg(BAPP_KEY); in _KeyEvent()
530 msg.AddInt32("key-state", keyState); in _KeyEvent()
531 msg.AddInt32("key-scancode", keyCode); in _KeyEvent()
533 msg.AddData("key-utf8", B_INT8_TYPE, (const void*)keyUtf8, len); in _KeyEvent()
535 be_app->PostMessage(&msg); in _KeyEvent()
540 BMessage msg(BAPP_REPAINT); in _RepaintEvent()
541 _PostWindowEvent(msg); in _RepaintEvent()
543 void _PostWindowEvent(BMessage &msg) { in _PostWindowEvent() argument
544 msg.AddInt32("window-id", _id); in _PostWindowEvent()
545 be_app->PostMessage(&msg); in _PostWindowEvent()
549 void _SetTitle(BMessage *msg) { in _SetTitle() argument
552 msg->FindString("window-title", &title) != B_OK in _SetTitle()
559 void _MoveTo(BMessage *msg) { in _MoveTo() argument
562 msg->FindInt32("window-x", &x) != B_OK || in _MoveTo()
563 msg->FindInt32("window-y", &y) != B_OK in _MoveTo()
570 void _ResizeTo(BMessage *msg) { in _ResizeTo() argument
573 msg->FindInt32("window-w", &w) != B_OK || in _ResizeTo()
574 msg->FindInt32("window-h", &h) != B_OK in _ResizeTo()
581 void _SetBordered(BMessage *msg) { in _SetBordered() argument
583 if(msg->FindBool("window-border", &bEnabled) != B_OK) { in _SetBordered()
589 void _SetResizable(BMessage *msg) { in _SetResizable() argument
591 if(msg->FindBool("window-resizable", &bEnabled) != B_OK) { in _SetResizable()
612 void _SetFullScreen(BMessage *msg) { in _SetFullScreen() argument
615 msg->FindBool("fullscreen", &fullscreen) != B_OK in _SetFullScreen()