Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MessageFilter to selectively block window message #183

Merged
merged 7 commits into from
May 8, 2024

Commits on Apr 16, 2024

  1. add MessageFilter to selectively block window message

    Blocking every window message blocks intentional user actions
    like minimizing, closing(Alt-F4 doesn't work either), resizing etc.
    
    This commit fixes that kind of problem by providing bitflag interface
    to block certain predefined range of window messages.
    
    To block every messages like before,
    you can return `MessageFilter::all()` on `set_message_filter()`.
    ruby3141 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    b73a868 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. rename ImguiRenderLoop::set_message_filter() to message_filter()

    There was some perspective mistake during naming the method.
    It's getter for pipeline, not setter for user code.
    ruby3141 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    02d5330 View commit details
    Browse the repository at this point in the history
  2. make MessageFilter::is_blocking() pub(crate)

    The method would(and maybe should) not be used in user code,
    so make it protected seems good idea.
    ruby3141 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    24bbe71 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4da8e55 View commit details
    Browse the repository at this point in the history
  4. strengthen rustdoc for MessageFilter

    - Explanation about using MessageFilter is added.
    - Wrap consts like `WM_USER` with backticks(`)
    ruby3141 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    0341669 View commit details
    Browse the repository at this point in the history
  5. add test code about MessageFilter

    Harness doesn't seem to handle any input events,
    so only thing we can simply test is `MessageFilter::WindowControl`
    ruby3141 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    f82194c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    92fb88d View commit details
    Browse the repository at this point in the history