1.2.0
New features and improvements:
- Programmable GL pipeline for pyglet integration
- Ctrl/command key support for pyglet integration (PR #156, thanks to @tankorsmash)
- New
_IO
class methods and attributes:- mouse attributes (
mouse_wheel_horizontal
,mouse_delta
) and character input methods (add_input_characters_utf8
,clear_input_characters
) (PR #143 thanks to @Red-Pheonix) - Config and backend flags (PR #142 thanks to @Red-Pheonix)
ini_file_name
attribute (#105)
- mouse attributes (
- Multiple new functions implemented (
set_window_focus_labeled
,set_window_size_named
,set_next_window_content_size
,set_window_position
,set_window_position_labeled
,set_window_collapsed
,set_window_collapsed_labeled
,text_disabled
,text_wrapped
,arrow_button
,progress_bar
,push_allow_keyboard_focus
,pop_allow_keyboard_focus
,push_button_repeat
,pop_button_repeat
,get_cursor_pos_x
,get_cursor_pos_y
,set_cursor_pos_x
,set_cursor_pos_y
,align_text_to_frame_padding
) (PR #143 thanks to @Red-Pheonix) - Clipboard callbacks that enable clipboard integrations (PR #144 thanks to @scotty007)
- Clipboard integration for glfw and SDL2 (PR #144 thanks to @scotty007)
- Way to handle id scopes by push_id and pop_id methods together with handy
scoped()
context manager (#68, #56) - Allow for larger draw lists (#138 thanks to @mika-fischer)
Refactors:
Deprecations:
integrations.pyglet.PygletRenderer
is deprecated in favour ofPygletFixedPipelineRenderer
,PygletProgrammablePipelineRenderer
, orcreate_renderer
factory method (PR #158 thanks to @matthewturk).
Fixes:
- Pyglet-derrived integrations (i.e. pyglet and cocos2d) no longer end in infinite recursion on closing the window on macOS (#159). Note: requires
pyglet>=1.5.6
on that platform. - Horizontal scrollbar with columns possible with
set_window_content_size
(#151, PR #143 thanks to @Red-Pheonix) - Fix missing space key in pyglet integration key map to enable keyboard navigation (PR #139 thanks to @frosenek)
To install this version with pip use following command:
pip install imgui==1.2.0