diff --git a/src/gi-stubs/repository/Gdk.pyi b/src/gi-stubs/repository/Gdk.pyi new file mode 100644 index 00000000..735efba7 --- /dev/null +++ b/src/gi-stubs/repository/Gdk.pyi @@ -0,0 +1,4374 @@ +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar + +import cairo +from gi.repository import GdkPixbuf +from gi.repository import Gio +from gi.repository import GLib +from gi.repository import GObject +from gi.repository import Pango + +_SomeSurface = TypeVar("_SomeSurface", bound=cairo.Surface) + +ACTION_ALL: int = 7 +BUTTON_MIDDLE: int = 2 +BUTTON_PRIMARY: int = 1 +BUTTON_SECONDARY: int = 3 +CURRENT_TIME: int = 0 +EVENT_PROPAGATE: bool = False +EVENT_STOP: bool = True +KEY_0: int = 48 +KEY_1: int = 49 +KEY_2: int = 50 +KEY_3: int = 51 +KEY_3270_AltCursor: int = 64784 +KEY_3270_Attn: int = 64782 +KEY_3270_BackTab: int = 64773 +KEY_3270_ChangeScreen: int = 64793 +KEY_3270_Copy: int = 64789 +KEY_3270_CursorBlink: int = 64783 +KEY_3270_CursorSelect: int = 64796 +KEY_3270_DeleteWord: int = 64794 +KEY_3270_Duplicate: int = 64769 +KEY_3270_Enter: int = 64798 +KEY_3270_EraseEOF: int = 64774 +KEY_3270_EraseInput: int = 64775 +KEY_3270_ExSelect: int = 64795 +KEY_3270_FieldMark: int = 64770 +KEY_3270_Ident: int = 64787 +KEY_3270_Jump: int = 64786 +KEY_3270_KeyClick: int = 64785 +KEY_3270_Left2: int = 64772 +KEY_3270_PA1: int = 64778 +KEY_3270_PA2: int = 64779 +KEY_3270_PA3: int = 64780 +KEY_3270_Play: int = 64790 +KEY_3270_PrintScreen: int = 64797 +KEY_3270_Quit: int = 64777 +KEY_3270_Record: int = 64792 +KEY_3270_Reset: int = 64776 +KEY_3270_Right2: int = 64771 +KEY_3270_Rule: int = 64788 +KEY_3270_Setup: int = 64791 +KEY_3270_Test: int = 64781 +KEY_4: int = 52 +KEY_5: int = 53 +KEY_6: int = 54 +KEY_7: int = 55 +KEY_8: int = 56 +KEY_9: int = 57 +KEY_A: int = 65 +KEY_AE: int = 198 +KEY_Aacute: int = 193 +KEY_Abelowdot: int = 16785056 +KEY_Abreve: int = 451 +KEY_Abreveacute: int = 16785070 +KEY_Abrevebelowdot: int = 16785078 +KEY_Abrevegrave: int = 16785072 +KEY_Abrevehook: int = 16785074 +KEY_Abrevetilde: int = 16785076 +KEY_AccessX_Enable: int = 65136 +KEY_AccessX_Feedback_Enable: int = 65137 +KEY_Acircumflex: int = 194 +KEY_Acircumflexacute: int = 16785060 +KEY_Acircumflexbelowdot: int = 16785068 +KEY_Acircumflexgrave: int = 16785062 +KEY_Acircumflexhook: int = 16785064 +KEY_Acircumflextilde: int = 16785066 +KEY_AddFavorite: int = 269025081 +KEY_Adiaeresis: int = 196 +KEY_Agrave: int = 192 +KEY_Ahook: int = 16785058 +KEY_Alt_L: int = 65513 +KEY_Alt_R: int = 65514 +KEY_Amacron: int = 960 +KEY_Aogonek: int = 417 +KEY_ApplicationLeft: int = 269025104 +KEY_ApplicationRight: int = 269025105 +KEY_Arabic_0: int = 16778848 +KEY_Arabic_1: int = 16778849 +KEY_Arabic_2: int = 16778850 +KEY_Arabic_3: int = 16778851 +KEY_Arabic_4: int = 16778852 +KEY_Arabic_5: int = 16778853 +KEY_Arabic_6: int = 16778854 +KEY_Arabic_7: int = 16778855 +KEY_Arabic_8: int = 16778856 +KEY_Arabic_9: int = 16778857 +KEY_Arabic_ain: int = 1497 +KEY_Arabic_alef: int = 1479 +KEY_Arabic_alefmaksura: int = 1513 +KEY_Arabic_beh: int = 1480 +KEY_Arabic_comma: int = 1452 +KEY_Arabic_dad: int = 1494 +KEY_Arabic_dal: int = 1487 +KEY_Arabic_damma: int = 1519 +KEY_Arabic_dammatan: int = 1516 +KEY_Arabic_ddal: int = 16778888 +KEY_Arabic_farsi_yeh: int = 16778956 +KEY_Arabic_fatha: int = 1518 +KEY_Arabic_fathatan: int = 1515 +KEY_Arabic_feh: int = 1505 +KEY_Arabic_fullstop: int = 16778964 +KEY_Arabic_gaf: int = 16778927 +KEY_Arabic_ghain: int = 1498 +KEY_Arabic_ha: int = 1511 +KEY_Arabic_hah: int = 1485 +KEY_Arabic_hamza: int = 1473 +KEY_Arabic_hamza_above: int = 16778836 +KEY_Arabic_hamza_below: int = 16778837 +KEY_Arabic_hamzaonalef: int = 1475 +KEY_Arabic_hamzaonwaw: int = 1476 +KEY_Arabic_hamzaonyeh: int = 1478 +KEY_Arabic_hamzaunderalef: int = 1477 +KEY_Arabic_heh: int = 1511 +KEY_Arabic_heh_doachashmee: int = 16778942 +KEY_Arabic_heh_goal: int = 16778945 +KEY_Arabic_jeem: int = 1484 +KEY_Arabic_jeh: int = 16778904 +KEY_Arabic_kaf: int = 1507 +KEY_Arabic_kasra: int = 1520 +KEY_Arabic_kasratan: int = 1517 +KEY_Arabic_keheh: int = 16778921 +KEY_Arabic_khah: int = 1486 +KEY_Arabic_lam: int = 1508 +KEY_Arabic_madda_above: int = 16778835 +KEY_Arabic_maddaonalef: int = 1474 +KEY_Arabic_meem: int = 1509 +KEY_Arabic_noon: int = 1510 +KEY_Arabic_noon_ghunna: int = 16778938 +KEY_Arabic_peh: int = 16778878 +KEY_Arabic_percent: int = 16778858 +KEY_Arabic_qaf: int = 1506 +KEY_Arabic_question_mark: int = 1471 +KEY_Arabic_ra: int = 1489 +KEY_Arabic_rreh: int = 16778897 +KEY_Arabic_sad: int = 1493 +KEY_Arabic_seen: int = 1491 +KEY_Arabic_semicolon: int = 1467 +KEY_Arabic_shadda: int = 1521 +KEY_Arabic_sheen: int = 1492 +KEY_Arabic_sukun: int = 1522 +KEY_Arabic_superscript_alef: int = 16778864 +KEY_Arabic_switch: int = 65406 +KEY_Arabic_tah: int = 1495 +KEY_Arabic_tatweel: int = 1504 +KEY_Arabic_tcheh: int = 16778886 +KEY_Arabic_teh: int = 1482 +KEY_Arabic_tehmarbuta: int = 1481 +KEY_Arabic_thal: int = 1488 +KEY_Arabic_theh: int = 1483 +KEY_Arabic_tteh: int = 16778873 +KEY_Arabic_veh: int = 16778916 +KEY_Arabic_waw: int = 1512 +KEY_Arabic_yeh: int = 1514 +KEY_Arabic_yeh_baree: int = 16778962 +KEY_Arabic_zah: int = 1496 +KEY_Arabic_zain: int = 1490 +KEY_Aring: int = 197 +KEY_Armenian_AT: int = 16778552 +KEY_Armenian_AYB: int = 16778545 +KEY_Armenian_BEN: int = 16778546 +KEY_Armenian_CHA: int = 16778569 +KEY_Armenian_DA: int = 16778548 +KEY_Armenian_DZA: int = 16778561 +KEY_Armenian_E: int = 16778551 +KEY_Armenian_FE: int = 16778582 +KEY_Armenian_GHAT: int = 16778562 +KEY_Armenian_GIM: int = 16778547 +KEY_Armenian_HI: int = 16778565 +KEY_Armenian_HO: int = 16778560 +KEY_Armenian_INI: int = 16778555 +KEY_Armenian_JE: int = 16778571 +KEY_Armenian_KE: int = 16778580 +KEY_Armenian_KEN: int = 16778559 +KEY_Armenian_KHE: int = 16778557 +KEY_Armenian_LYUN: int = 16778556 +KEY_Armenian_MEN: int = 16778564 +KEY_Armenian_NU: int = 16778566 +KEY_Armenian_O: int = 16778581 +KEY_Armenian_PE: int = 16778570 +KEY_Armenian_PYUR: int = 16778579 +KEY_Armenian_RA: int = 16778572 +KEY_Armenian_RE: int = 16778576 +KEY_Armenian_SE: int = 16778573 +KEY_Armenian_SHA: int = 16778567 +KEY_Armenian_TCHE: int = 16778563 +KEY_Armenian_TO: int = 16778553 +KEY_Armenian_TSA: int = 16778558 +KEY_Armenian_TSO: int = 16778577 +KEY_Armenian_TYUN: int = 16778575 +KEY_Armenian_VEV: int = 16778574 +KEY_Armenian_VO: int = 16778568 +KEY_Armenian_VYUN: int = 16778578 +KEY_Armenian_YECH: int = 16778549 +KEY_Armenian_ZA: int = 16778550 +KEY_Armenian_ZHE: int = 16778554 +KEY_Armenian_accent: int = 16778587 +KEY_Armenian_amanak: int = 16778588 +KEY_Armenian_apostrophe: int = 16778586 +KEY_Armenian_at: int = 16778600 +KEY_Armenian_ayb: int = 16778593 +KEY_Armenian_ben: int = 16778594 +KEY_Armenian_but: int = 16778589 +KEY_Armenian_cha: int = 16778617 +KEY_Armenian_da: int = 16778596 +KEY_Armenian_dza: int = 16778609 +KEY_Armenian_e: int = 16778599 +KEY_Armenian_exclam: int = 16778588 +KEY_Armenian_fe: int = 16778630 +KEY_Armenian_full_stop: int = 16778633 +KEY_Armenian_ghat: int = 16778610 +KEY_Armenian_gim: int = 16778595 +KEY_Armenian_hi: int = 16778613 +KEY_Armenian_ho: int = 16778608 +KEY_Armenian_hyphen: int = 16778634 +KEY_Armenian_ini: int = 16778603 +KEY_Armenian_je: int = 16778619 +KEY_Armenian_ke: int = 16778628 +KEY_Armenian_ken: int = 16778607 +KEY_Armenian_khe: int = 16778605 +KEY_Armenian_ligature_ew: int = 16778631 +KEY_Armenian_lyun: int = 16778604 +KEY_Armenian_men: int = 16778612 +KEY_Armenian_nu: int = 16778614 +KEY_Armenian_o: int = 16778629 +KEY_Armenian_paruyk: int = 16778590 +KEY_Armenian_pe: int = 16778618 +KEY_Armenian_pyur: int = 16778627 +KEY_Armenian_question: int = 16778590 +KEY_Armenian_ra: int = 16778620 +KEY_Armenian_re: int = 16778624 +KEY_Armenian_se: int = 16778621 +KEY_Armenian_separation_mark: int = 16778589 +KEY_Armenian_sha: int = 16778615 +KEY_Armenian_shesht: int = 16778587 +KEY_Armenian_tche: int = 16778611 +KEY_Armenian_to: int = 16778601 +KEY_Armenian_tsa: int = 16778606 +KEY_Armenian_tso: int = 16778625 +KEY_Armenian_tyun: int = 16778623 +KEY_Armenian_verjaket: int = 16778633 +KEY_Armenian_vev: int = 16778622 +KEY_Armenian_vo: int = 16778616 +KEY_Armenian_vyun: int = 16778626 +KEY_Armenian_yech: int = 16778597 +KEY_Armenian_yentamna: int = 16778634 +KEY_Armenian_za: int = 16778598 +KEY_Armenian_zhe: int = 16778602 +KEY_Atilde: int = 195 +KEY_AudibleBell_Enable: int = 65146 +KEY_AudioCycleTrack: int = 269025179 +KEY_AudioForward: int = 269025175 +KEY_AudioLowerVolume: int = 269025041 +KEY_AudioMedia: int = 269025074 +KEY_AudioMicMute: int = 269025202 +KEY_AudioMute: int = 269025042 +KEY_AudioNext: int = 269025047 +KEY_AudioPause: int = 269025073 +KEY_AudioPlay: int = 269025044 +KEY_AudioPreset: int = 269025206 +KEY_AudioPrev: int = 269025046 +KEY_AudioRaiseVolume: int = 269025043 +KEY_AudioRandomPlay: int = 269025177 +KEY_AudioRecord: int = 269025052 +KEY_AudioRepeat: int = 269025176 +KEY_AudioRewind: int = 269025086 +KEY_AudioStop: int = 269025045 +KEY_Away: int = 269025165 +KEY_B: int = 66 +KEY_Babovedot: int = 16784898 +KEY_Back: int = 269025062 +KEY_BackForward: int = 269025087 +KEY_BackSpace: int = 65288 +KEY_Battery: int = 269025171 +KEY_Begin: int = 65368 +KEY_Blue: int = 269025190 +KEY_Bluetooth: int = 269025172 +KEY_Book: int = 269025106 +KEY_BounceKeys_Enable: int = 65140 +KEY_Break: int = 65387 +KEY_BrightnessAdjust: int = 269025083 +KEY_Byelorussian_SHORTU: int = 1726 +KEY_Byelorussian_shortu: int = 1710 +KEY_C: int = 67 +KEY_CD: int = 269025107 +KEY_CH: int = 65186 +KEY_C_H: int = 65189 +KEY_C_h: int = 65188 +KEY_Cabovedot: int = 709 +KEY_Cacute: int = 454 +KEY_Calculator: int = 269025053 +KEY_Calendar: int = 269025056 +KEY_Cancel: int = 65385 +KEY_Caps_Lock: int = 65509 +KEY_Ccaron: int = 456 +KEY_Ccedilla: int = 199 +KEY_Ccircumflex: int = 710 +KEY_Ch: int = 65185 +KEY_Clear: int = 65291 +KEY_ClearGrab: int = 269024801 +KEY_Close: int = 269025110 +KEY_Codeinput: int = 65335 +KEY_ColonSign: int = 16785569 +KEY_Community: int = 269025085 +KEY_ContrastAdjust: int = 269025058 +KEY_Control_L: int = 65507 +KEY_Control_R: int = 65508 +KEY_Copy: int = 269025111 +KEY_CruzeiroSign: int = 16785570 +KEY_Cut: int = 269025112 +KEY_CycleAngle: int = 269025180 +KEY_Cyrillic_A: int = 1761 +KEY_Cyrillic_BE: int = 1762 +KEY_Cyrillic_CHE: int = 1790 +KEY_Cyrillic_CHE_descender: int = 16778422 +KEY_Cyrillic_CHE_vertstroke: int = 16778424 +KEY_Cyrillic_DE: int = 1764 +KEY_Cyrillic_DZHE: int = 1727 +KEY_Cyrillic_E: int = 1788 +KEY_Cyrillic_EF: int = 1766 +KEY_Cyrillic_EL: int = 1772 +KEY_Cyrillic_EM: int = 1773 +KEY_Cyrillic_EN: int = 1774 +KEY_Cyrillic_EN_descender: int = 16778402 +KEY_Cyrillic_ER: int = 1778 +KEY_Cyrillic_ES: int = 1779 +KEY_Cyrillic_GHE: int = 1767 +KEY_Cyrillic_GHE_bar: int = 16778386 +KEY_Cyrillic_HA: int = 1768 +KEY_Cyrillic_HARDSIGN: int = 1791 +KEY_Cyrillic_HA_descender: int = 16778418 +KEY_Cyrillic_I: int = 1769 +KEY_Cyrillic_IE: int = 1765 +KEY_Cyrillic_IO: int = 1715 +KEY_Cyrillic_I_macron: int = 16778466 +KEY_Cyrillic_JE: int = 1720 +KEY_Cyrillic_KA: int = 1771 +KEY_Cyrillic_KA_descender: int = 16778394 +KEY_Cyrillic_KA_vertstroke: int = 16778396 +KEY_Cyrillic_LJE: int = 1721 +KEY_Cyrillic_NJE: int = 1722 +KEY_Cyrillic_O: int = 1775 +KEY_Cyrillic_O_bar: int = 16778472 +KEY_Cyrillic_PE: int = 1776 +KEY_Cyrillic_SCHWA: int = 16778456 +KEY_Cyrillic_SHA: int = 1787 +KEY_Cyrillic_SHCHA: int = 1789 +KEY_Cyrillic_SHHA: int = 16778426 +KEY_Cyrillic_SHORTI: int = 1770 +KEY_Cyrillic_SOFTSIGN: int = 1784 +KEY_Cyrillic_TE: int = 1780 +KEY_Cyrillic_TSE: int = 1763 +KEY_Cyrillic_U: int = 1781 +KEY_Cyrillic_U_macron: int = 16778478 +KEY_Cyrillic_U_straight: int = 16778414 +KEY_Cyrillic_U_straight_bar: int = 16778416 +KEY_Cyrillic_VE: int = 1783 +KEY_Cyrillic_YA: int = 1777 +KEY_Cyrillic_YERU: int = 1785 +KEY_Cyrillic_YU: int = 1760 +KEY_Cyrillic_ZE: int = 1786 +KEY_Cyrillic_ZHE: int = 1782 +KEY_Cyrillic_ZHE_descender: int = 16778390 +KEY_Cyrillic_a: int = 1729 +KEY_Cyrillic_be: int = 1730 +KEY_Cyrillic_che: int = 1758 +KEY_Cyrillic_che_descender: int = 16778423 +KEY_Cyrillic_che_vertstroke: int = 16778425 +KEY_Cyrillic_de: int = 1732 +KEY_Cyrillic_dzhe: int = 1711 +KEY_Cyrillic_e: int = 1756 +KEY_Cyrillic_ef: int = 1734 +KEY_Cyrillic_el: int = 1740 +KEY_Cyrillic_em: int = 1741 +KEY_Cyrillic_en: int = 1742 +KEY_Cyrillic_en_descender: int = 16778403 +KEY_Cyrillic_er: int = 1746 +KEY_Cyrillic_es: int = 1747 +KEY_Cyrillic_ghe: int = 1735 +KEY_Cyrillic_ghe_bar: int = 16778387 +KEY_Cyrillic_ha: int = 1736 +KEY_Cyrillic_ha_descender: int = 16778419 +KEY_Cyrillic_hardsign: int = 1759 +KEY_Cyrillic_i: int = 1737 +KEY_Cyrillic_i_macron: int = 16778467 +KEY_Cyrillic_ie: int = 1733 +KEY_Cyrillic_io: int = 1699 +KEY_Cyrillic_je: int = 1704 +KEY_Cyrillic_ka: int = 1739 +KEY_Cyrillic_ka_descender: int = 16778395 +KEY_Cyrillic_ka_vertstroke: int = 16778397 +KEY_Cyrillic_lje: int = 1705 +KEY_Cyrillic_nje: int = 1706 +KEY_Cyrillic_o: int = 1743 +KEY_Cyrillic_o_bar: int = 16778473 +KEY_Cyrillic_pe: int = 1744 +KEY_Cyrillic_schwa: int = 16778457 +KEY_Cyrillic_sha: int = 1755 +KEY_Cyrillic_shcha: int = 1757 +KEY_Cyrillic_shha: int = 16778427 +KEY_Cyrillic_shorti: int = 1738 +KEY_Cyrillic_softsign: int = 1752 +KEY_Cyrillic_te: int = 1748 +KEY_Cyrillic_tse: int = 1731 +KEY_Cyrillic_u: int = 1749 +KEY_Cyrillic_u_macron: int = 16778479 +KEY_Cyrillic_u_straight: int = 16778415 +KEY_Cyrillic_u_straight_bar: int = 16778417 +KEY_Cyrillic_ve: int = 1751 +KEY_Cyrillic_ya: int = 1745 +KEY_Cyrillic_yeru: int = 1753 +KEY_Cyrillic_yu: int = 1728 +KEY_Cyrillic_ze: int = 1754 +KEY_Cyrillic_zhe: int = 1750 +KEY_Cyrillic_zhe_descender: int = 16778391 +KEY_D: int = 68 +KEY_DOS: int = 269025114 +KEY_Dabovedot: int = 16784906 +KEY_Dcaron: int = 463 +KEY_Delete: int = 65535 +KEY_Display: int = 269025113 +KEY_Documents: int = 269025115 +KEY_DongSign: int = 16785579 +KEY_Down: int = 65364 +KEY_Dstroke: int = 464 +KEY_E: int = 69 +KEY_ENG: int = 957 +KEY_ETH: int = 208 +KEY_EZH: int = 16777655 +KEY_Eabovedot: int = 972 +KEY_Eacute: int = 201 +KEY_Ebelowdot: int = 16785080 +KEY_Ecaron: int = 460 +KEY_Ecircumflex: int = 202 +KEY_Ecircumflexacute: int = 16785086 +KEY_Ecircumflexbelowdot: int = 16785094 +KEY_Ecircumflexgrave: int = 16785088 +KEY_Ecircumflexhook: int = 16785090 +KEY_Ecircumflextilde: int = 16785092 +KEY_EcuSign: int = 16785568 +KEY_Ediaeresis: int = 203 +KEY_Egrave: int = 200 +KEY_Ehook: int = 16785082 +KEY_Eisu_Shift: int = 65327 +KEY_Eisu_toggle: int = 65328 +KEY_Eject: int = 269025068 +KEY_Emacron: int = 938 +KEY_End: int = 65367 +KEY_Eogonek: int = 458 +KEY_Escape: int = 65307 +KEY_Eth: int = 208 +KEY_Etilde: int = 16785084 +KEY_EuroSign: int = 8364 +KEY_Excel: int = 269025116 +KEY_Execute: int = 65378 +KEY_Explorer: int = 269025117 +KEY_F: int = 70 +KEY_F1: int = 65470 +KEY_F10: int = 65479 +KEY_F11: int = 65480 +KEY_F12: int = 65481 +KEY_F13: int = 65482 +KEY_F14: int = 65483 +KEY_F15: int = 65484 +KEY_F16: int = 65485 +KEY_F17: int = 65486 +KEY_F18: int = 65487 +KEY_F19: int = 65488 +KEY_F2: int = 65471 +KEY_F20: int = 65489 +KEY_F21: int = 65490 +KEY_F22: int = 65491 +KEY_F23: int = 65492 +KEY_F24: int = 65493 +KEY_F25: int = 65494 +KEY_F26: int = 65495 +KEY_F27: int = 65496 +KEY_F28: int = 65497 +KEY_F29: int = 65498 +KEY_F3: int = 65472 +KEY_F30: int = 65499 +KEY_F31: int = 65500 +KEY_F32: int = 65501 +KEY_F33: int = 65502 +KEY_F34: int = 65503 +KEY_F35: int = 65504 +KEY_F4: int = 65473 +KEY_F5: int = 65474 +KEY_F6: int = 65475 +KEY_F7: int = 65476 +KEY_F8: int = 65477 +KEY_F9: int = 65478 +KEY_FFrancSign: int = 16785571 +KEY_Fabovedot: int = 16784926 +KEY_Farsi_0: int = 16778992 +KEY_Farsi_1: int = 16778993 +KEY_Farsi_2: int = 16778994 +KEY_Farsi_3: int = 16778995 +KEY_Farsi_4: int = 16778996 +KEY_Farsi_5: int = 16778997 +KEY_Farsi_6: int = 16778998 +KEY_Farsi_7: int = 16778999 +KEY_Farsi_8: int = 16779000 +KEY_Farsi_9: int = 16779001 +KEY_Farsi_yeh: int = 16778956 +KEY_Favorites: int = 269025072 +KEY_Finance: int = 269025084 +KEY_Find: int = 65384 +KEY_First_Virtual_Screen: int = 65232 +KEY_Forward: int = 269025063 +KEY_FrameBack: int = 269025181 +KEY_FrameForward: int = 269025182 +KEY_G: int = 71 +KEY_Gabovedot: int = 725 +KEY_Game: int = 269025118 +KEY_Gbreve: int = 683 +KEY_Gcaron: int = 16777702 +KEY_Gcedilla: int = 939 +KEY_Gcircumflex: int = 728 +KEY_Georgian_an: int = 16781520 +KEY_Georgian_ban: int = 16781521 +KEY_Georgian_can: int = 16781546 +KEY_Georgian_char: int = 16781549 +KEY_Georgian_chin: int = 16781545 +KEY_Georgian_cil: int = 16781548 +KEY_Georgian_don: int = 16781523 +KEY_Georgian_en: int = 16781524 +KEY_Georgian_fi: int = 16781558 +KEY_Georgian_gan: int = 16781522 +KEY_Georgian_ghan: int = 16781542 +KEY_Georgian_hae: int = 16781552 +KEY_Georgian_har: int = 16781556 +KEY_Georgian_he: int = 16781553 +KEY_Georgian_hie: int = 16781554 +KEY_Georgian_hoe: int = 16781557 +KEY_Georgian_in: int = 16781528 +KEY_Georgian_jhan: int = 16781551 +KEY_Georgian_jil: int = 16781547 +KEY_Georgian_kan: int = 16781529 +KEY_Georgian_khar: int = 16781541 +KEY_Georgian_las: int = 16781530 +KEY_Georgian_man: int = 16781531 +KEY_Georgian_nar: int = 16781532 +KEY_Georgian_on: int = 16781533 +KEY_Georgian_par: int = 16781534 +KEY_Georgian_phar: int = 16781540 +KEY_Georgian_qar: int = 16781543 +KEY_Georgian_rae: int = 16781536 +KEY_Georgian_san: int = 16781537 +KEY_Georgian_shin: int = 16781544 +KEY_Georgian_tan: int = 16781527 +KEY_Georgian_tar: int = 16781538 +KEY_Georgian_un: int = 16781539 +KEY_Georgian_vin: int = 16781525 +KEY_Georgian_we: int = 16781555 +KEY_Georgian_xan: int = 16781550 +KEY_Georgian_zen: int = 16781526 +KEY_Georgian_zhar: int = 16781535 +KEY_Go: int = 269025119 +KEY_Greek_ALPHA: int = 1985 +KEY_Greek_ALPHAaccent: int = 1953 +KEY_Greek_BETA: int = 1986 +KEY_Greek_CHI: int = 2007 +KEY_Greek_DELTA: int = 1988 +KEY_Greek_EPSILON: int = 1989 +KEY_Greek_EPSILONaccent: int = 1954 +KEY_Greek_ETA: int = 1991 +KEY_Greek_ETAaccent: int = 1955 +KEY_Greek_GAMMA: int = 1987 +KEY_Greek_IOTA: int = 1993 +KEY_Greek_IOTAaccent: int = 1956 +KEY_Greek_IOTAdiaeresis: int = 1957 +KEY_Greek_IOTAdieresis: int = 1957 +KEY_Greek_KAPPA: int = 1994 +KEY_Greek_LAMBDA: int = 1995 +KEY_Greek_LAMDA: int = 1995 +KEY_Greek_MU: int = 1996 +KEY_Greek_NU: int = 1997 +KEY_Greek_OMEGA: int = 2009 +KEY_Greek_OMEGAaccent: int = 1963 +KEY_Greek_OMICRON: int = 1999 +KEY_Greek_OMICRONaccent: int = 1959 +KEY_Greek_PHI: int = 2006 +KEY_Greek_PI: int = 2000 +KEY_Greek_PSI: int = 2008 +KEY_Greek_RHO: int = 2001 +KEY_Greek_SIGMA: int = 2002 +KEY_Greek_TAU: int = 2004 +KEY_Greek_THETA: int = 1992 +KEY_Greek_UPSILON: int = 2005 +KEY_Greek_UPSILONaccent: int = 1960 +KEY_Greek_UPSILONdieresis: int = 1961 +KEY_Greek_XI: int = 1998 +KEY_Greek_ZETA: int = 1990 +KEY_Greek_accentdieresis: int = 1966 +KEY_Greek_alpha: int = 2017 +KEY_Greek_alphaaccent: int = 1969 +KEY_Greek_beta: int = 2018 +KEY_Greek_chi: int = 2039 +KEY_Greek_delta: int = 2020 +KEY_Greek_epsilon: int = 2021 +KEY_Greek_epsilonaccent: int = 1970 +KEY_Greek_eta: int = 2023 +KEY_Greek_etaaccent: int = 1971 +KEY_Greek_finalsmallsigma: int = 2035 +KEY_Greek_gamma: int = 2019 +KEY_Greek_horizbar: int = 1967 +KEY_Greek_iota: int = 2025 +KEY_Greek_iotaaccent: int = 1972 +KEY_Greek_iotaaccentdieresis: int = 1974 +KEY_Greek_iotadieresis: int = 1973 +KEY_Greek_kappa: int = 2026 +KEY_Greek_lambda: int = 2027 +KEY_Greek_lamda: int = 2027 +KEY_Greek_mu: int = 2028 +KEY_Greek_nu: int = 2029 +KEY_Greek_omega: int = 2041 +KEY_Greek_omegaaccent: int = 1979 +KEY_Greek_omicron: int = 2031 +KEY_Greek_omicronaccent: int = 1975 +KEY_Greek_phi: int = 2038 +KEY_Greek_pi: int = 2032 +KEY_Greek_psi: int = 2040 +KEY_Greek_rho: int = 2033 +KEY_Greek_sigma: int = 2034 +KEY_Greek_switch: int = 65406 +KEY_Greek_tau: int = 2036 +KEY_Greek_theta: int = 2024 +KEY_Greek_upsilon: int = 2037 +KEY_Greek_upsilonaccent: int = 1976 +KEY_Greek_upsilonaccentdieresis: int = 1978 +KEY_Greek_upsilondieresis: int = 1977 +KEY_Greek_xi: int = 2030 +KEY_Greek_zeta: int = 2022 +KEY_Green: int = 269025188 +KEY_H: int = 72 +KEY_Hangul: int = 65329 +KEY_Hangul_A: int = 3775 +KEY_Hangul_AE: int = 3776 +KEY_Hangul_AraeA: int = 3830 +KEY_Hangul_AraeAE: int = 3831 +KEY_Hangul_Banja: int = 65337 +KEY_Hangul_Cieuc: int = 3770 +KEY_Hangul_Codeinput: int = 65335 +KEY_Hangul_Dikeud: int = 3751 +KEY_Hangul_E: int = 3780 +KEY_Hangul_EO: int = 3779 +KEY_Hangul_EU: int = 3793 +KEY_Hangul_End: int = 65331 +KEY_Hangul_Hanja: int = 65332 +KEY_Hangul_Hieuh: int = 3774 +KEY_Hangul_I: int = 3795 +KEY_Hangul_Ieung: int = 3767 +KEY_Hangul_J_Cieuc: int = 3818 +KEY_Hangul_J_Dikeud: int = 3802 +KEY_Hangul_J_Hieuh: int = 3822 +KEY_Hangul_J_Ieung: int = 3816 +KEY_Hangul_J_Jieuj: int = 3817 +KEY_Hangul_J_Khieuq: int = 3819 +KEY_Hangul_J_Kiyeog: int = 3796 +KEY_Hangul_J_KiyeogSios: int = 3798 +KEY_Hangul_J_KkogjiDalrinIeung: int = 3833 +KEY_Hangul_J_Mieum: int = 3811 +KEY_Hangul_J_Nieun: int = 3799 +KEY_Hangul_J_NieunHieuh: int = 3801 +KEY_Hangul_J_NieunJieuj: int = 3800 +KEY_Hangul_J_PanSios: int = 3832 +KEY_Hangul_J_Phieuf: int = 3821 +KEY_Hangul_J_Pieub: int = 3812 +KEY_Hangul_J_PieubSios: int = 3813 +KEY_Hangul_J_Rieul: int = 3803 +KEY_Hangul_J_RieulHieuh: int = 3810 +KEY_Hangul_J_RieulKiyeog: int = 3804 +KEY_Hangul_J_RieulMieum: int = 3805 +KEY_Hangul_J_RieulPhieuf: int = 3809 +KEY_Hangul_J_RieulPieub: int = 3806 +KEY_Hangul_J_RieulSios: int = 3807 +KEY_Hangul_J_RieulTieut: int = 3808 +KEY_Hangul_J_Sios: int = 3814 +KEY_Hangul_J_SsangKiyeog: int = 3797 +KEY_Hangul_J_SsangSios: int = 3815 +KEY_Hangul_J_Tieut: int = 3820 +KEY_Hangul_J_YeorinHieuh: int = 3834 +KEY_Hangul_Jamo: int = 65333 +KEY_Hangul_Jeonja: int = 65336 +KEY_Hangul_Jieuj: int = 3768 +KEY_Hangul_Khieuq: int = 3771 +KEY_Hangul_Kiyeog: int = 3745 +KEY_Hangul_KiyeogSios: int = 3747 +KEY_Hangul_KkogjiDalrinIeung: int = 3827 +KEY_Hangul_Mieum: int = 3761 +KEY_Hangul_MultipleCandidate: int = 65341 +KEY_Hangul_Nieun: int = 3748 +KEY_Hangul_NieunHieuh: int = 3750 +KEY_Hangul_NieunJieuj: int = 3749 +KEY_Hangul_O: int = 3783 +KEY_Hangul_OE: int = 3786 +KEY_Hangul_PanSios: int = 3826 +KEY_Hangul_Phieuf: int = 3773 +KEY_Hangul_Pieub: int = 3762 +KEY_Hangul_PieubSios: int = 3764 +KEY_Hangul_PostHanja: int = 65339 +KEY_Hangul_PreHanja: int = 65338 +KEY_Hangul_PreviousCandidate: int = 65342 +KEY_Hangul_Rieul: int = 3753 +KEY_Hangul_RieulHieuh: int = 3760 +KEY_Hangul_RieulKiyeog: int = 3754 +KEY_Hangul_RieulMieum: int = 3755 +KEY_Hangul_RieulPhieuf: int = 3759 +KEY_Hangul_RieulPieub: int = 3756 +KEY_Hangul_RieulSios: int = 3757 +KEY_Hangul_RieulTieut: int = 3758 +KEY_Hangul_RieulYeorinHieuh: int = 3823 +KEY_Hangul_Romaja: int = 65334 +KEY_Hangul_SingleCandidate: int = 65340 +KEY_Hangul_Sios: int = 3765 +KEY_Hangul_Special: int = 65343 +KEY_Hangul_SsangDikeud: int = 3752 +KEY_Hangul_SsangJieuj: int = 3769 +KEY_Hangul_SsangKiyeog: int = 3746 +KEY_Hangul_SsangPieub: int = 3763 +KEY_Hangul_SsangSios: int = 3766 +KEY_Hangul_Start: int = 65330 +KEY_Hangul_SunkyeongeumMieum: int = 3824 +KEY_Hangul_SunkyeongeumPhieuf: int = 3828 +KEY_Hangul_SunkyeongeumPieub: int = 3825 +KEY_Hangul_Tieut: int = 3772 +KEY_Hangul_U: int = 3788 +KEY_Hangul_WA: int = 3784 +KEY_Hangul_WAE: int = 3785 +KEY_Hangul_WE: int = 3790 +KEY_Hangul_WEO: int = 3789 +KEY_Hangul_WI: int = 3791 +KEY_Hangul_YA: int = 3777 +KEY_Hangul_YAE: int = 3778 +KEY_Hangul_YE: int = 3782 +KEY_Hangul_YEO: int = 3781 +KEY_Hangul_YI: int = 3794 +KEY_Hangul_YO: int = 3787 +KEY_Hangul_YU: int = 3792 +KEY_Hangul_YeorinHieuh: int = 3829 +KEY_Hangul_switch: int = 65406 +KEY_Hankaku: int = 65321 +KEY_Hcircumflex: int = 678 +KEY_Hebrew_switch: int = 65406 +KEY_Help: int = 65386 +KEY_Henkan: int = 65315 +KEY_Henkan_Mode: int = 65315 +KEY_Hibernate: int = 269025192 +KEY_Hiragana: int = 65317 +KEY_Hiragana_Katakana: int = 65319 +KEY_History: int = 269025079 +KEY_Home: int = 65360 +KEY_HomePage: int = 269025048 +KEY_HotLinks: int = 269025082 +KEY_Hstroke: int = 673 +KEY_Hyper_L: int = 65517 +KEY_Hyper_R: int = 65518 +KEY_I: int = 73 +KEY_ISO_Center_Object: int = 65075 +KEY_ISO_Continuous_Underline: int = 65072 +KEY_ISO_Discontinuous_Underline: int = 65073 +KEY_ISO_Emphasize: int = 65074 +KEY_ISO_Enter: int = 65076 +KEY_ISO_Fast_Cursor_Down: int = 65071 +KEY_ISO_Fast_Cursor_Left: int = 65068 +KEY_ISO_Fast_Cursor_Right: int = 65069 +KEY_ISO_Fast_Cursor_Up: int = 65070 +KEY_ISO_First_Group: int = 65036 +KEY_ISO_First_Group_Lock: int = 65037 +KEY_ISO_Group_Latch: int = 65030 +KEY_ISO_Group_Lock: int = 65031 +KEY_ISO_Group_Shift: int = 65406 +KEY_ISO_Last_Group: int = 65038 +KEY_ISO_Last_Group_Lock: int = 65039 +KEY_ISO_Left_Tab: int = 65056 +KEY_ISO_Level2_Latch: int = 65026 +KEY_ISO_Level3_Latch: int = 65028 +KEY_ISO_Level3_Lock: int = 65029 +KEY_ISO_Level3_Shift: int = 65027 +KEY_ISO_Level5_Latch: int = 65042 +KEY_ISO_Level5_Lock: int = 65043 +KEY_ISO_Level5_Shift: int = 65041 +KEY_ISO_Lock: int = 65025 +KEY_ISO_Move_Line_Down: int = 65058 +KEY_ISO_Move_Line_Up: int = 65057 +KEY_ISO_Next_Group: int = 65032 +KEY_ISO_Next_Group_Lock: int = 65033 +KEY_ISO_Partial_Line_Down: int = 65060 +KEY_ISO_Partial_Line_Up: int = 65059 +KEY_ISO_Partial_Space_Left: int = 65061 +KEY_ISO_Partial_Space_Right: int = 65062 +KEY_ISO_Prev_Group: int = 65034 +KEY_ISO_Prev_Group_Lock: int = 65035 +KEY_ISO_Release_Both_Margins: int = 65067 +KEY_ISO_Release_Margin_Left: int = 65065 +KEY_ISO_Release_Margin_Right: int = 65066 +KEY_ISO_Set_Margin_Left: int = 65063 +KEY_ISO_Set_Margin_Right: int = 65064 +KEY_Iabovedot: int = 681 +KEY_Iacute: int = 205 +KEY_Ibelowdot: int = 16785098 +KEY_Ibreve: int = 16777516 +KEY_Icircumflex: int = 206 +KEY_Idiaeresis: int = 207 +KEY_Igrave: int = 204 +KEY_Ihook: int = 16785096 +KEY_Imacron: int = 975 +KEY_Insert: int = 65379 +KEY_Iogonek: int = 967 +KEY_Itilde: int = 933 +KEY_J: int = 74 +KEY_Jcircumflex: int = 684 +KEY_K: int = 75 +KEY_KP_0: int = 65456 +KEY_KP_1: int = 65457 +KEY_KP_2: int = 65458 +KEY_KP_3: int = 65459 +KEY_KP_4: int = 65460 +KEY_KP_5: int = 65461 +KEY_KP_6: int = 65462 +KEY_KP_7: int = 65463 +KEY_KP_8: int = 65464 +KEY_KP_9: int = 65465 +KEY_KP_Add: int = 65451 +KEY_KP_Begin: int = 65437 +KEY_KP_Decimal: int = 65454 +KEY_KP_Delete: int = 65439 +KEY_KP_Divide: int = 65455 +KEY_KP_Down: int = 65433 +KEY_KP_End: int = 65436 +KEY_KP_Enter: int = 65421 +KEY_KP_Equal: int = 65469 +KEY_KP_F1: int = 65425 +KEY_KP_F2: int = 65426 +KEY_KP_F3: int = 65427 +KEY_KP_F4: int = 65428 +KEY_KP_Home: int = 65429 +KEY_KP_Insert: int = 65438 +KEY_KP_Left: int = 65430 +KEY_KP_Multiply: int = 65450 +KEY_KP_Next: int = 65435 +KEY_KP_Page_Down: int = 65435 +KEY_KP_Page_Up: int = 65434 +KEY_KP_Prior: int = 65434 +KEY_KP_Right: int = 65432 +KEY_KP_Separator: int = 65452 +KEY_KP_Space: int = 65408 +KEY_KP_Subtract: int = 65453 +KEY_KP_Tab: int = 65417 +KEY_KP_Up: int = 65431 +KEY_Kana_Lock: int = 65325 +KEY_Kana_Shift: int = 65326 +KEY_Kanji: int = 65313 +KEY_Kanji_Bangou: int = 65335 +KEY_Katakana: int = 65318 +KEY_KbdBrightnessDown: int = 269025030 +KEY_KbdBrightnessUp: int = 269025029 +KEY_KbdLightOnOff: int = 269025028 +KEY_Kcedilla: int = 979 +KEY_Keyboard: int = 269025203 +KEY_Korean_Won: int = 3839 +KEY_L: int = 76 +KEY_L1: int = 65480 +KEY_L10: int = 65489 +KEY_L2: int = 65481 +KEY_L3: int = 65482 +KEY_L4: int = 65483 +KEY_L5: int = 65484 +KEY_L6: int = 65485 +KEY_L7: int = 65486 +KEY_L8: int = 65487 +KEY_L9: int = 65488 +KEY_Lacute: int = 453 +KEY_Last_Virtual_Screen: int = 65236 +KEY_Launch0: int = 269025088 +KEY_Launch1: int = 269025089 +KEY_Launch2: int = 269025090 +KEY_Launch3: int = 269025091 +KEY_Launch4: int = 269025092 +KEY_Launch5: int = 269025093 +KEY_Launch6: int = 269025094 +KEY_Launch7: int = 269025095 +KEY_Launch8: int = 269025096 +KEY_Launch9: int = 269025097 +KEY_LaunchA: int = 269025098 +KEY_LaunchB: int = 269025099 +KEY_LaunchC: int = 269025100 +KEY_LaunchD: int = 269025101 +KEY_LaunchE: int = 269025102 +KEY_LaunchF: int = 269025103 +KEY_Lbelowdot: int = 16784950 +KEY_Lcaron: int = 421 +KEY_Lcedilla: int = 934 +KEY_Left: int = 65361 +KEY_LightBulb: int = 269025077 +KEY_Linefeed: int = 65290 +KEY_LiraSign: int = 16785572 +KEY_LogGrabInfo: int = 269024805 +KEY_LogOff: int = 269025121 +KEY_LogWindowTree: int = 269024804 +KEY_Lstroke: int = 419 +KEY_M: int = 77 +KEY_Mabovedot: int = 16784960 +KEY_Macedonia_DSE: int = 1717 +KEY_Macedonia_GJE: int = 1714 +KEY_Macedonia_KJE: int = 1724 +KEY_Macedonia_dse: int = 1701 +KEY_Macedonia_gje: int = 1698 +KEY_Macedonia_kje: int = 1708 +KEY_Mae_Koho: int = 65342 +KEY_Mail: int = 269025049 +KEY_MailForward: int = 269025168 +KEY_Market: int = 269025122 +KEY_Massyo: int = 65324 +KEY_Meeting: int = 269025123 +KEY_Memo: int = 269025054 +KEY_Menu: int = 65383 +KEY_MenuKB: int = 269025125 +KEY_MenuPB: int = 269025126 +KEY_Messenger: int = 269025166 +KEY_Meta_L: int = 65511 +KEY_Meta_R: int = 65512 +KEY_MillSign: int = 16785573 +KEY_ModeLock: int = 269025025 +KEY_Mode_switch: int = 65406 +KEY_MonBrightnessDown: int = 269025027 +KEY_MonBrightnessUp: int = 269025026 +KEY_MouseKeys_Accel_Enable: int = 65143 +KEY_MouseKeys_Enable: int = 65142 +KEY_Muhenkan: int = 65314 +KEY_Multi_key: int = 65312 +KEY_MultipleCandidate: int = 65341 +KEY_Music: int = 269025170 +KEY_MyComputer: int = 269025075 +KEY_MySites: int = 269025127 +KEY_N: int = 78 +KEY_Nacute: int = 465 +KEY_NairaSign: int = 16785574 +KEY_Ncaron: int = 466 +KEY_Ncedilla: int = 977 +KEY_New: int = 269025128 +KEY_NewSheqelSign: int = 16785578 +KEY_News: int = 269025129 +KEY_Next: int = 65366 +KEY_Next_VMode: int = 269024802 +KEY_Next_Virtual_Screen: int = 65234 +KEY_Ntilde: int = 209 +KEY_Num_Lock: int = 65407 +KEY_O: int = 79 +KEY_OE: int = 5052 +KEY_Oacute: int = 211 +KEY_Obarred: int = 16777631 +KEY_Obelowdot: int = 16785100 +KEY_Ocaron: int = 16777681 +KEY_Ocircumflex: int = 212 +KEY_Ocircumflexacute: int = 16785104 +KEY_Ocircumflexbelowdot: int = 16785112 +KEY_Ocircumflexgrave: int = 16785106 +KEY_Ocircumflexhook: int = 16785108 +KEY_Ocircumflextilde: int = 16785110 +KEY_Odiaeresis: int = 214 +KEY_Odoubleacute: int = 469 +KEY_OfficeHome: int = 269025130 +KEY_Ograve: int = 210 +KEY_Ohook: int = 16785102 +KEY_Ohorn: int = 16777632 +KEY_Ohornacute: int = 16785114 +KEY_Ohornbelowdot: int = 16785122 +KEY_Ohorngrave: int = 16785116 +KEY_Ohornhook: int = 16785118 +KEY_Ohorntilde: int = 16785120 +KEY_Omacron: int = 978 +KEY_Ooblique: int = 216 +KEY_Open: int = 269025131 +KEY_OpenURL: int = 269025080 +KEY_Option: int = 269025132 +KEY_Oslash: int = 216 +KEY_Otilde: int = 213 +KEY_Overlay1_Enable: int = 65144 +KEY_Overlay2_Enable: int = 65145 +KEY_P: int = 80 +KEY_Pabovedot: int = 16784982 +KEY_Page_Down: int = 65366 +KEY_Page_Up: int = 65365 +KEY_Paste: int = 269025133 +KEY_Pause: int = 65299 +KEY_PesetaSign: int = 16785575 +KEY_Phone: int = 269025134 +KEY_Pictures: int = 269025169 +KEY_Pointer_Accelerate: int = 65274 +KEY_Pointer_Button1: int = 65257 +KEY_Pointer_Button2: int = 65258 +KEY_Pointer_Button3: int = 65259 +KEY_Pointer_Button4: int = 65260 +KEY_Pointer_Button5: int = 65261 +KEY_Pointer_Button_Dflt: int = 65256 +KEY_Pointer_DblClick1: int = 65263 +KEY_Pointer_DblClick2: int = 65264 +KEY_Pointer_DblClick3: int = 65265 +KEY_Pointer_DblClick4: int = 65266 +KEY_Pointer_DblClick5: int = 65267 +KEY_Pointer_DblClick_Dflt: int = 65262 +KEY_Pointer_DfltBtnNext: int = 65275 +KEY_Pointer_DfltBtnPrev: int = 65276 +KEY_Pointer_Down: int = 65251 +KEY_Pointer_DownLeft: int = 65254 +KEY_Pointer_DownRight: int = 65255 +KEY_Pointer_Drag1: int = 65269 +KEY_Pointer_Drag2: int = 65270 +KEY_Pointer_Drag3: int = 65271 +KEY_Pointer_Drag4: int = 65272 +KEY_Pointer_Drag5: int = 65277 +KEY_Pointer_Drag_Dflt: int = 65268 +KEY_Pointer_EnableKeys: int = 65273 +KEY_Pointer_Left: int = 65248 +KEY_Pointer_Right: int = 65249 +KEY_Pointer_Up: int = 65250 +KEY_Pointer_UpLeft: int = 65252 +KEY_Pointer_UpRight: int = 65253 +KEY_PowerDown: int = 269025057 +KEY_PowerOff: int = 269025066 +KEY_Prev_VMode: int = 269024803 +KEY_Prev_Virtual_Screen: int = 65233 +KEY_PreviousCandidate: int = 65342 +KEY_Print: int = 65377 +KEY_Prior: int = 65365 +KEY_Q: int = 81 +KEY_R: int = 82 +KEY_R1: int = 65490 +KEY_R10: int = 65499 +KEY_R11: int = 65500 +KEY_R12: int = 65501 +KEY_R13: int = 65502 +KEY_R14: int = 65503 +KEY_R15: int = 65504 +KEY_R2: int = 65491 +KEY_R3: int = 65492 +KEY_R4: int = 65493 +KEY_R5: int = 65494 +KEY_R6: int = 65495 +KEY_R7: int = 65496 +KEY_R8: int = 65497 +KEY_R9: int = 65498 +KEY_RFKill: int = 269025205 +KEY_Racute: int = 448 +KEY_Rcaron: int = 472 +KEY_Rcedilla: int = 931 +KEY_Red: int = 269025187 +KEY_Redo: int = 65382 +KEY_Refresh: int = 269025065 +KEY_Reload: int = 269025139 +KEY_RepeatKeys_Enable: int = 65138 +KEY_Reply: int = 269025138 +KEY_Return: int = 65293 +KEY_Right: int = 65363 +KEY_RockerDown: int = 269025060 +KEY_RockerEnter: int = 269025061 +KEY_RockerUp: int = 269025059 +KEY_Romaji: int = 65316 +KEY_RotateWindows: int = 269025140 +KEY_RotationKB: int = 269025142 +KEY_RotationPB: int = 269025141 +KEY_RupeeSign: int = 16785576 +KEY_S: int = 83 +KEY_SCHWA: int = 16777615 +KEY_Sabovedot: int = 16784992 +KEY_Sacute: int = 422 +KEY_Save: int = 269025143 +KEY_Scaron: int = 425 +KEY_Scedilla: int = 426 +KEY_Scircumflex: int = 734 +KEY_ScreenSaver: int = 269025069 +KEY_ScrollClick: int = 269025146 +KEY_ScrollDown: int = 269025145 +KEY_ScrollUp: int = 269025144 +KEY_Scroll_Lock: int = 65300 +KEY_Search: int = 269025051 +KEY_Select: int = 65376 +KEY_SelectButton: int = 269025184 +KEY_Send: int = 269025147 +KEY_Serbian_DJE: int = 1713 +KEY_Serbian_DZE: int = 1727 +KEY_Serbian_JE: int = 1720 +KEY_Serbian_LJE: int = 1721 +KEY_Serbian_NJE: int = 1722 +KEY_Serbian_TSHE: int = 1723 +KEY_Serbian_dje: int = 1697 +KEY_Serbian_dze: int = 1711 +KEY_Serbian_je: int = 1704 +KEY_Serbian_lje: int = 1705 +KEY_Serbian_nje: int = 1706 +KEY_Serbian_tshe: int = 1707 +KEY_Shift_L: int = 65505 +KEY_Shift_Lock: int = 65510 +KEY_Shift_R: int = 65506 +KEY_Shop: int = 269025078 +KEY_SingleCandidate: int = 65340 +KEY_Sinh_a: int = 16780677 +KEY_Sinh_aa: int = 16780678 +KEY_Sinh_aa2: int = 16780751 +KEY_Sinh_ae: int = 16780679 +KEY_Sinh_ae2: int = 16780752 +KEY_Sinh_aee: int = 16780680 +KEY_Sinh_aee2: int = 16780753 +KEY_Sinh_ai: int = 16780691 +KEY_Sinh_ai2: int = 16780763 +KEY_Sinh_al: int = 16780746 +KEY_Sinh_au: int = 16780694 +KEY_Sinh_au2: int = 16780766 +KEY_Sinh_ba: int = 16780726 +KEY_Sinh_bha: int = 16780727 +KEY_Sinh_ca: int = 16780704 +KEY_Sinh_cha: int = 16780705 +KEY_Sinh_dda: int = 16780713 +KEY_Sinh_ddha: int = 16780714 +KEY_Sinh_dha: int = 16780719 +KEY_Sinh_dhha: int = 16780720 +KEY_Sinh_e: int = 16780689 +KEY_Sinh_e2: int = 16780761 +KEY_Sinh_ee: int = 16780690 +KEY_Sinh_ee2: int = 16780762 +KEY_Sinh_fa: int = 16780742 +KEY_Sinh_ga: int = 16780700 +KEY_Sinh_gha: int = 16780701 +KEY_Sinh_h2: int = 16780675 +KEY_Sinh_ha: int = 16780740 +KEY_Sinh_i: int = 16780681 +KEY_Sinh_i2: int = 16780754 +KEY_Sinh_ii: int = 16780682 +KEY_Sinh_ii2: int = 16780755 +KEY_Sinh_ja: int = 16780706 +KEY_Sinh_jha: int = 16780707 +KEY_Sinh_jnya: int = 16780709 +KEY_Sinh_ka: int = 16780698 +KEY_Sinh_kha: int = 16780699 +KEY_Sinh_kunddaliya: int = 16780788 +KEY_Sinh_la: int = 16780733 +KEY_Sinh_lla: int = 16780741 +KEY_Sinh_lu: int = 16780687 +KEY_Sinh_lu2: int = 16780767 +KEY_Sinh_luu: int = 16780688 +KEY_Sinh_luu2: int = 16780787 +KEY_Sinh_ma: int = 16780728 +KEY_Sinh_mba: int = 16780729 +KEY_Sinh_na: int = 16780721 +KEY_Sinh_ndda: int = 16780716 +KEY_Sinh_ndha: int = 16780723 +KEY_Sinh_ng: int = 16780674 +KEY_Sinh_ng2: int = 16780702 +KEY_Sinh_nga: int = 16780703 +KEY_Sinh_nja: int = 16780710 +KEY_Sinh_nna: int = 16780715 +KEY_Sinh_nya: int = 16780708 +KEY_Sinh_o: int = 16780692 +KEY_Sinh_o2: int = 16780764 +KEY_Sinh_oo: int = 16780693 +KEY_Sinh_oo2: int = 16780765 +KEY_Sinh_pa: int = 16780724 +KEY_Sinh_pha: int = 16780725 +KEY_Sinh_ra: int = 16780731 +KEY_Sinh_ri: int = 16780685 +KEY_Sinh_rii: int = 16780686 +KEY_Sinh_ru2: int = 16780760 +KEY_Sinh_ruu2: int = 16780786 +KEY_Sinh_sa: int = 16780739 +KEY_Sinh_sha: int = 16780737 +KEY_Sinh_ssha: int = 16780738 +KEY_Sinh_tha: int = 16780717 +KEY_Sinh_thha: int = 16780718 +KEY_Sinh_tta: int = 16780711 +KEY_Sinh_ttha: int = 16780712 +KEY_Sinh_u: int = 16780683 +KEY_Sinh_u2: int = 16780756 +KEY_Sinh_uu: int = 16780684 +KEY_Sinh_uu2: int = 16780758 +KEY_Sinh_va: int = 16780736 +KEY_Sinh_ya: int = 16780730 +KEY_Sleep: int = 269025071 +KEY_SlowKeys_Enable: int = 65139 +KEY_Spell: int = 269025148 +KEY_SplitScreen: int = 269025149 +KEY_Standby: int = 269025040 +KEY_Start: int = 269025050 +KEY_StickyKeys_Enable: int = 65141 +KEY_Stop: int = 269025064 +KEY_Subtitle: int = 269025178 +KEY_Super_L: int = 65515 +KEY_Super_R: int = 65516 +KEY_Support: int = 269025150 +KEY_Suspend: int = 269025191 +KEY_Switch_VT_1: int = 269024769 +KEY_Switch_VT_10: int = 269024778 +KEY_Switch_VT_11: int = 269024779 +KEY_Switch_VT_12: int = 269024780 +KEY_Switch_VT_2: int = 269024770 +KEY_Switch_VT_3: int = 269024771 +KEY_Switch_VT_4: int = 269024772 +KEY_Switch_VT_5: int = 269024773 +KEY_Switch_VT_6: int = 269024774 +KEY_Switch_VT_7: int = 269024775 +KEY_Switch_VT_8: int = 269024776 +KEY_Switch_VT_9: int = 269024777 +KEY_Sys_Req: int = 65301 +KEY_T: int = 84 +KEY_THORN: int = 222 +KEY_Tab: int = 65289 +KEY_Tabovedot: int = 16785002 +KEY_TaskPane: int = 269025151 +KEY_Tcaron: int = 427 +KEY_Tcedilla: int = 478 +KEY_Terminal: int = 269025152 +KEY_Terminate_Server: int = 65237 +KEY_Thai_baht: int = 3551 +KEY_Thai_bobaimai: int = 3514 +KEY_Thai_chochan: int = 3496 +KEY_Thai_chochang: int = 3498 +KEY_Thai_choching: int = 3497 +KEY_Thai_chochoe: int = 3500 +KEY_Thai_dochada: int = 3502 +KEY_Thai_dodek: int = 3508 +KEY_Thai_fofa: int = 3517 +KEY_Thai_fofan: int = 3519 +KEY_Thai_hohip: int = 3531 +KEY_Thai_honokhuk: int = 3534 +KEY_Thai_khokhai: int = 3490 +KEY_Thai_khokhon: int = 3493 +KEY_Thai_khokhuat: int = 3491 +KEY_Thai_khokhwai: int = 3492 +KEY_Thai_khorakhang: int = 3494 +KEY_Thai_kokai: int = 3489 +KEY_Thai_lakkhangyao: int = 3557 +KEY_Thai_lekchet: int = 3575 +KEY_Thai_lekha: int = 3573 +KEY_Thai_lekhok: int = 3574 +KEY_Thai_lekkao: int = 3577 +KEY_Thai_leknung: int = 3569 +KEY_Thai_lekpaet: int = 3576 +KEY_Thai_leksam: int = 3571 +KEY_Thai_leksi: int = 3572 +KEY_Thai_leksong: int = 3570 +KEY_Thai_leksun: int = 3568 +KEY_Thai_lochula: int = 3532 +KEY_Thai_loling: int = 3525 +KEY_Thai_lu: int = 3526 +KEY_Thai_maichattawa: int = 3563 +KEY_Thai_maiek: int = 3560 +KEY_Thai_maihanakat: int = 3537 +KEY_Thai_maihanakat_maitho: int = 3550 +KEY_Thai_maitaikhu: int = 3559 +KEY_Thai_maitho: int = 3561 +KEY_Thai_maitri: int = 3562 +KEY_Thai_maiyamok: int = 3558 +KEY_Thai_moma: int = 3521 +KEY_Thai_ngongu: int = 3495 +KEY_Thai_nikhahit: int = 3565 +KEY_Thai_nonen: int = 3507 +KEY_Thai_nonu: int = 3513 +KEY_Thai_oang: int = 3533 +KEY_Thai_paiyannoi: int = 3535 +KEY_Thai_phinthu: int = 3546 +KEY_Thai_phophan: int = 3518 +KEY_Thai_phophung: int = 3516 +KEY_Thai_phosamphao: int = 3520 +KEY_Thai_popla: int = 3515 +KEY_Thai_rorua: int = 3523 +KEY_Thai_ru: int = 3524 +KEY_Thai_saraa: int = 3536 +KEY_Thai_saraaa: int = 3538 +KEY_Thai_saraae: int = 3553 +KEY_Thai_saraaimaimalai: int = 3556 +KEY_Thai_saraaimaimuan: int = 3555 +KEY_Thai_saraam: int = 3539 +KEY_Thai_sarae: int = 3552 +KEY_Thai_sarai: int = 3540 +KEY_Thai_saraii: int = 3541 +KEY_Thai_sarao: int = 3554 +KEY_Thai_sarau: int = 3544 +KEY_Thai_saraue: int = 3542 +KEY_Thai_sarauee: int = 3543 +KEY_Thai_sarauu: int = 3545 +KEY_Thai_sorusi: int = 3529 +KEY_Thai_sosala: int = 3528 +KEY_Thai_soso: int = 3499 +KEY_Thai_sosua: int = 3530 +KEY_Thai_thanthakhat: int = 3564 +KEY_Thai_thonangmontho: int = 3505 +KEY_Thai_thophuthao: int = 3506 +KEY_Thai_thothahan: int = 3511 +KEY_Thai_thothan: int = 3504 +KEY_Thai_thothong: int = 3512 +KEY_Thai_thothung: int = 3510 +KEY_Thai_topatak: int = 3503 +KEY_Thai_totao: int = 3509 +KEY_Thai_wowaen: int = 3527 +KEY_Thai_yoyak: int = 3522 +KEY_Thai_yoying: int = 3501 +KEY_Thorn: int = 222 +KEY_Time: int = 269025183 +KEY_ToDoList: int = 269025055 +KEY_Tools: int = 269025153 +KEY_TopMenu: int = 269025186 +KEY_TouchpadOff: int = 269025201 +KEY_TouchpadOn: int = 269025200 +KEY_TouchpadToggle: int = 269025193 +KEY_Touroku: int = 65323 +KEY_Travel: int = 269025154 +KEY_Tslash: int = 940 +KEY_U: int = 85 +KEY_UWB: int = 269025174 +KEY_Uacute: int = 218 +KEY_Ubelowdot: int = 16785124 +KEY_Ubreve: int = 733 +KEY_Ucircumflex: int = 219 +KEY_Udiaeresis: int = 220 +KEY_Udoubleacute: int = 475 +KEY_Ugrave: int = 217 +KEY_Uhook: int = 16785126 +KEY_Uhorn: int = 16777647 +KEY_Uhornacute: int = 16785128 +KEY_Uhornbelowdot: int = 16785136 +KEY_Uhorngrave: int = 16785130 +KEY_Uhornhook: int = 16785132 +KEY_Uhorntilde: int = 16785134 +KEY_Ukrainian_GHE_WITH_UPTURN: int = 1725 +KEY_Ukrainian_I: int = 1718 +KEY_Ukrainian_IE: int = 1716 +KEY_Ukrainian_YI: int = 1719 +KEY_Ukrainian_ghe_with_upturn: int = 1709 +KEY_Ukrainian_i: int = 1702 +KEY_Ukrainian_ie: int = 1700 +KEY_Ukrainian_yi: int = 1703 +KEY_Ukranian_I: int = 1718 +KEY_Ukranian_JE: int = 1716 +KEY_Ukranian_YI: int = 1719 +KEY_Ukranian_i: int = 1702 +KEY_Ukranian_je: int = 1700 +KEY_Ukranian_yi: int = 1703 +KEY_Umacron: int = 990 +KEY_Undo: int = 65381 +KEY_Ungrab: int = 269024800 +KEY_Uogonek: int = 985 +KEY_Up: int = 65362 +KEY_Uring: int = 473 +KEY_User1KB: int = 269025157 +KEY_User2KB: int = 269025158 +KEY_UserPB: int = 269025156 +KEY_Utilde: int = 989 +KEY_V: int = 86 +KEY_VendorHome: int = 269025076 +KEY_Video: int = 269025159 +KEY_View: int = 269025185 +KEY_VoidSymbol: int = 16777215 +KEY_W: int = 87 +KEY_WLAN: int = 269025173 +KEY_WWAN: int = 269025204 +KEY_WWW: int = 269025070 +KEY_Wacute: int = 16785026 +KEY_WakeUp: int = 269025067 +KEY_Wcircumflex: int = 16777588 +KEY_Wdiaeresis: int = 16785028 +KEY_WebCam: int = 269025167 +KEY_Wgrave: int = 16785024 +KEY_WheelButton: int = 269025160 +KEY_WindowClear: int = 269025109 +KEY_WonSign: int = 16785577 +KEY_Word: int = 269025161 +KEY_X: int = 88 +KEY_Xabovedot: int = 16785034 +KEY_Xfer: int = 269025162 +KEY_Y: int = 89 +KEY_Yacute: int = 221 +KEY_Ybelowdot: int = 16785140 +KEY_Ycircumflex: int = 16777590 +KEY_Ydiaeresis: int = 5054 +KEY_Yellow: int = 269025189 +KEY_Ygrave: int = 16785138 +KEY_Yhook: int = 16785142 +KEY_Ytilde: int = 16785144 +KEY_Z: int = 90 +KEY_Zabovedot: int = 431 +KEY_Zacute: int = 428 +KEY_Zcaron: int = 430 +KEY_Zen_Koho: int = 65341 +KEY_Zenkaku: int = 65320 +KEY_Zenkaku_Hankaku: int = 65322 +KEY_ZoomIn: int = 269025163 +KEY_ZoomOut: int = 269025164 +KEY_Zstroke: int = 16777653 +KEY_a: int = 97 +KEY_aacute: int = 225 +KEY_abelowdot: int = 16785057 +KEY_abovedot: int = 511 +KEY_abreve: int = 483 +KEY_abreveacute: int = 16785071 +KEY_abrevebelowdot: int = 16785079 +KEY_abrevegrave: int = 16785073 +KEY_abrevehook: int = 16785075 +KEY_abrevetilde: int = 16785077 +KEY_acircumflex: int = 226 +KEY_acircumflexacute: int = 16785061 +KEY_acircumflexbelowdot: int = 16785069 +KEY_acircumflexgrave: int = 16785063 +KEY_acircumflexhook: int = 16785065 +KEY_acircumflextilde: int = 16785067 +KEY_acute: int = 180 +KEY_adiaeresis: int = 228 +KEY_ae: int = 230 +KEY_agrave: int = 224 +KEY_ahook: int = 16785059 +KEY_amacron: int = 992 +KEY_ampersand: int = 38 +KEY_aogonek: int = 433 +KEY_apostrophe: int = 39 +KEY_approxeq: int = 16785992 +KEY_approximate: int = 2248 +KEY_aring: int = 229 +KEY_asciicircum: int = 94 +KEY_asciitilde: int = 126 +KEY_asterisk: int = 42 +KEY_at: int = 64 +KEY_atilde: int = 227 +KEY_b: int = 98 +KEY_babovedot: int = 16784899 +KEY_backslash: int = 92 +KEY_ballotcross: int = 2804 +KEY_bar: int = 124 +KEY_because: int = 16785973 +KEY_blank: int = 2527 +KEY_botintegral: int = 2213 +KEY_botleftparens: int = 2220 +KEY_botleftsqbracket: int = 2216 +KEY_botleftsummation: int = 2226 +KEY_botrightparens: int = 2222 +KEY_botrightsqbracket: int = 2218 +KEY_botrightsummation: int = 2230 +KEY_bott: int = 2550 +KEY_botvertsummationconnector: int = 2228 +KEY_braceleft: int = 123 +KEY_braceright: int = 125 +KEY_bracketleft: int = 91 +KEY_bracketright: int = 93 +KEY_braille_blank: int = 16787456 +KEY_braille_dot_1: int = 65521 +KEY_braille_dot_10: int = 65530 +KEY_braille_dot_2: int = 65522 +KEY_braille_dot_3: int = 65523 +KEY_braille_dot_4: int = 65524 +KEY_braille_dot_5: int = 65525 +KEY_braille_dot_6: int = 65526 +KEY_braille_dot_7: int = 65527 +KEY_braille_dot_8: int = 65528 +KEY_braille_dot_9: int = 65529 +KEY_braille_dots_1: int = 16787457 +KEY_braille_dots_12: int = 16787459 +KEY_braille_dots_123: int = 16787463 +KEY_braille_dots_1234: int = 16787471 +KEY_braille_dots_12345: int = 16787487 +KEY_braille_dots_123456: int = 16787519 +KEY_braille_dots_1234567: int = 16787583 +KEY_braille_dots_12345678: int = 16787711 +KEY_braille_dots_1234568: int = 16787647 +KEY_braille_dots_123457: int = 16787551 +KEY_braille_dots_1234578: int = 16787679 +KEY_braille_dots_123458: int = 16787615 +KEY_braille_dots_12346: int = 16787503 +KEY_braille_dots_123467: int = 16787567 +KEY_braille_dots_1234678: int = 16787695 +KEY_braille_dots_123468: int = 16787631 +KEY_braille_dots_12347: int = 16787535 +KEY_braille_dots_123478: int = 16787663 +KEY_braille_dots_12348: int = 16787599 +KEY_braille_dots_1235: int = 16787479 +KEY_braille_dots_12356: int = 16787511 +KEY_braille_dots_123567: int = 16787575 +KEY_braille_dots_1235678: int = 16787703 +KEY_braille_dots_123568: int = 16787639 +KEY_braille_dots_12357: int = 16787543 +KEY_braille_dots_123578: int = 16787671 +KEY_braille_dots_12358: int = 16787607 +KEY_braille_dots_1236: int = 16787495 +KEY_braille_dots_12367: int = 16787559 +KEY_braille_dots_123678: int = 16787687 +KEY_braille_dots_12368: int = 16787623 +KEY_braille_dots_1237: int = 16787527 +KEY_braille_dots_12378: int = 16787655 +KEY_braille_dots_1238: int = 16787591 +KEY_braille_dots_124: int = 16787467 +KEY_braille_dots_1245: int = 16787483 +KEY_braille_dots_12456: int = 16787515 +KEY_braille_dots_124567: int = 16787579 +KEY_braille_dots_1245678: int = 16787707 +KEY_braille_dots_124568: int = 16787643 +KEY_braille_dots_12457: int = 16787547 +KEY_braille_dots_124578: int = 16787675 +KEY_braille_dots_12458: int = 16787611 +KEY_braille_dots_1246: int = 16787499 +KEY_braille_dots_12467: int = 16787563 +KEY_braille_dots_124678: int = 16787691 +KEY_braille_dots_12468: int = 16787627 +KEY_braille_dots_1247: int = 16787531 +KEY_braille_dots_12478: int = 16787659 +KEY_braille_dots_1248: int = 16787595 +KEY_braille_dots_125: int = 16787475 +KEY_braille_dots_1256: int = 16787507 +KEY_braille_dots_12567: int = 16787571 +KEY_braille_dots_125678: int = 16787699 +KEY_braille_dots_12568: int = 16787635 +KEY_braille_dots_1257: int = 16787539 +KEY_braille_dots_12578: int = 16787667 +KEY_braille_dots_1258: int = 16787603 +KEY_braille_dots_126: int = 16787491 +KEY_braille_dots_1267: int = 16787555 +KEY_braille_dots_12678: int = 16787683 +KEY_braille_dots_1268: int = 16787619 +KEY_braille_dots_127: int = 16787523 +KEY_braille_dots_1278: int = 16787651 +KEY_braille_dots_128: int = 16787587 +KEY_braille_dots_13: int = 16787461 +KEY_braille_dots_134: int = 16787469 +KEY_braille_dots_1345: int = 16787485 +KEY_braille_dots_13456: int = 16787517 +KEY_braille_dots_134567: int = 16787581 +KEY_braille_dots_1345678: int = 16787709 +KEY_braille_dots_134568: int = 16787645 +KEY_braille_dots_13457: int = 16787549 +KEY_braille_dots_134578: int = 16787677 +KEY_braille_dots_13458: int = 16787613 +KEY_braille_dots_1346: int = 16787501 +KEY_braille_dots_13467: int = 16787565 +KEY_braille_dots_134678: int = 16787693 +KEY_braille_dots_13468: int = 16787629 +KEY_braille_dots_1347: int = 16787533 +KEY_braille_dots_13478: int = 16787661 +KEY_braille_dots_1348: int = 16787597 +KEY_braille_dots_135: int = 16787477 +KEY_braille_dots_1356: int = 16787509 +KEY_braille_dots_13567: int = 16787573 +KEY_braille_dots_135678: int = 16787701 +KEY_braille_dots_13568: int = 16787637 +KEY_braille_dots_1357: int = 16787541 +KEY_braille_dots_13578: int = 16787669 +KEY_braille_dots_1358: int = 16787605 +KEY_braille_dots_136: int = 16787493 +KEY_braille_dots_1367: int = 16787557 +KEY_braille_dots_13678: int = 16787685 +KEY_braille_dots_1368: int = 16787621 +KEY_braille_dots_137: int = 16787525 +KEY_braille_dots_1378: int = 16787653 +KEY_braille_dots_138: int = 16787589 +KEY_braille_dots_14: int = 16787465 +KEY_braille_dots_145: int = 16787481 +KEY_braille_dots_1456: int = 16787513 +KEY_braille_dots_14567: int = 16787577 +KEY_braille_dots_145678: int = 16787705 +KEY_braille_dots_14568: int = 16787641 +KEY_braille_dots_1457: int = 16787545 +KEY_braille_dots_14578: int = 16787673 +KEY_braille_dots_1458: int = 16787609 +KEY_braille_dots_146: int = 16787497 +KEY_braille_dots_1467: int = 16787561 +KEY_braille_dots_14678: int = 16787689 +KEY_braille_dots_1468: int = 16787625 +KEY_braille_dots_147: int = 16787529 +KEY_braille_dots_1478: int = 16787657 +KEY_braille_dots_148: int = 16787593 +KEY_braille_dots_15: int = 16787473 +KEY_braille_dots_156: int = 16787505 +KEY_braille_dots_1567: int = 16787569 +KEY_braille_dots_15678: int = 16787697 +KEY_braille_dots_1568: int = 16787633 +KEY_braille_dots_157: int = 16787537 +KEY_braille_dots_1578: int = 16787665 +KEY_braille_dots_158: int = 16787601 +KEY_braille_dots_16: int = 16787489 +KEY_braille_dots_167: int = 16787553 +KEY_braille_dots_1678: int = 16787681 +KEY_braille_dots_168: int = 16787617 +KEY_braille_dots_17: int = 16787521 +KEY_braille_dots_178: int = 16787649 +KEY_braille_dots_18: int = 16787585 +KEY_braille_dots_2: int = 16787458 +KEY_braille_dots_23: int = 16787462 +KEY_braille_dots_234: int = 16787470 +KEY_braille_dots_2345: int = 16787486 +KEY_braille_dots_23456: int = 16787518 +KEY_braille_dots_234567: int = 16787582 +KEY_braille_dots_2345678: int = 16787710 +KEY_braille_dots_234568: int = 16787646 +KEY_braille_dots_23457: int = 16787550 +KEY_braille_dots_234578: int = 16787678 +KEY_braille_dots_23458: int = 16787614 +KEY_braille_dots_2346: int = 16787502 +KEY_braille_dots_23467: int = 16787566 +KEY_braille_dots_234678: int = 16787694 +KEY_braille_dots_23468: int = 16787630 +KEY_braille_dots_2347: int = 16787534 +KEY_braille_dots_23478: int = 16787662 +KEY_braille_dots_2348: int = 16787598 +KEY_braille_dots_235: int = 16787478 +KEY_braille_dots_2356: int = 16787510 +KEY_braille_dots_23567: int = 16787574 +KEY_braille_dots_235678: int = 16787702 +KEY_braille_dots_23568: int = 16787638 +KEY_braille_dots_2357: int = 16787542 +KEY_braille_dots_23578: int = 16787670 +KEY_braille_dots_2358: int = 16787606 +KEY_braille_dots_236: int = 16787494 +KEY_braille_dots_2367: int = 16787558 +KEY_braille_dots_23678: int = 16787686 +KEY_braille_dots_2368: int = 16787622 +KEY_braille_dots_237: int = 16787526 +KEY_braille_dots_2378: int = 16787654 +KEY_braille_dots_238: int = 16787590 +KEY_braille_dots_24: int = 16787466 +KEY_braille_dots_245: int = 16787482 +KEY_braille_dots_2456: int = 16787514 +KEY_braille_dots_24567: int = 16787578 +KEY_braille_dots_245678: int = 16787706 +KEY_braille_dots_24568: int = 16787642 +KEY_braille_dots_2457: int = 16787546 +KEY_braille_dots_24578: int = 16787674 +KEY_braille_dots_2458: int = 16787610 +KEY_braille_dots_246: int = 16787498 +KEY_braille_dots_2467: int = 16787562 +KEY_braille_dots_24678: int = 16787690 +KEY_braille_dots_2468: int = 16787626 +KEY_braille_dots_247: int = 16787530 +KEY_braille_dots_2478: int = 16787658 +KEY_braille_dots_248: int = 16787594 +KEY_braille_dots_25: int = 16787474 +KEY_braille_dots_256: int = 16787506 +KEY_braille_dots_2567: int = 16787570 +KEY_braille_dots_25678: int = 16787698 +KEY_braille_dots_2568: int = 16787634 +KEY_braille_dots_257: int = 16787538 +KEY_braille_dots_2578: int = 16787666 +KEY_braille_dots_258: int = 16787602 +KEY_braille_dots_26: int = 16787490 +KEY_braille_dots_267: int = 16787554 +KEY_braille_dots_2678: int = 16787682 +KEY_braille_dots_268: int = 16787618 +KEY_braille_dots_27: int = 16787522 +KEY_braille_dots_278: int = 16787650 +KEY_braille_dots_28: int = 16787586 +KEY_braille_dots_3: int = 16787460 +KEY_braille_dots_34: int = 16787468 +KEY_braille_dots_345: int = 16787484 +KEY_braille_dots_3456: int = 16787516 +KEY_braille_dots_34567: int = 16787580 +KEY_braille_dots_345678: int = 16787708 +KEY_braille_dots_34568: int = 16787644 +KEY_braille_dots_3457: int = 16787548 +KEY_braille_dots_34578: int = 16787676 +KEY_braille_dots_3458: int = 16787612 +KEY_braille_dots_346: int = 16787500 +KEY_braille_dots_3467: int = 16787564 +KEY_braille_dots_34678: int = 16787692 +KEY_braille_dots_3468: int = 16787628 +KEY_braille_dots_347: int = 16787532 +KEY_braille_dots_3478: int = 16787660 +KEY_braille_dots_348: int = 16787596 +KEY_braille_dots_35: int = 16787476 +KEY_braille_dots_356: int = 16787508 +KEY_braille_dots_3567: int = 16787572 +KEY_braille_dots_35678: int = 16787700 +KEY_braille_dots_3568: int = 16787636 +KEY_braille_dots_357: int = 16787540 +KEY_braille_dots_3578: int = 16787668 +KEY_braille_dots_358: int = 16787604 +KEY_braille_dots_36: int = 16787492 +KEY_braille_dots_367: int = 16787556 +KEY_braille_dots_3678: int = 16787684 +KEY_braille_dots_368: int = 16787620 +KEY_braille_dots_37: int = 16787524 +KEY_braille_dots_378: int = 16787652 +KEY_braille_dots_38: int = 16787588 +KEY_braille_dots_4: int = 16787464 +KEY_braille_dots_45: int = 16787480 +KEY_braille_dots_456: int = 16787512 +KEY_braille_dots_4567: int = 16787576 +KEY_braille_dots_45678: int = 16787704 +KEY_braille_dots_4568: int = 16787640 +KEY_braille_dots_457: int = 16787544 +KEY_braille_dots_4578: int = 16787672 +KEY_braille_dots_458: int = 16787608 +KEY_braille_dots_46: int = 16787496 +KEY_braille_dots_467: int = 16787560 +KEY_braille_dots_4678: int = 16787688 +KEY_braille_dots_468: int = 16787624 +KEY_braille_dots_47: int = 16787528 +KEY_braille_dots_478: int = 16787656 +KEY_braille_dots_48: int = 16787592 +KEY_braille_dots_5: int = 16787472 +KEY_braille_dots_56: int = 16787504 +KEY_braille_dots_567: int = 16787568 +KEY_braille_dots_5678: int = 16787696 +KEY_braille_dots_568: int = 16787632 +KEY_braille_dots_57: int = 16787536 +KEY_braille_dots_578: int = 16787664 +KEY_braille_dots_58: int = 16787600 +KEY_braille_dots_6: int = 16787488 +KEY_braille_dots_67: int = 16787552 +KEY_braille_dots_678: int = 16787680 +KEY_braille_dots_68: int = 16787616 +KEY_braille_dots_7: int = 16787520 +KEY_braille_dots_78: int = 16787648 +KEY_braille_dots_8: int = 16787584 +KEY_breve: int = 418 +KEY_brokenbar: int = 166 +KEY_c: int = 99 +KEY_c_h: int = 65187 +KEY_cabovedot: int = 741 +KEY_cacute: int = 486 +KEY_careof: int = 2744 +KEY_caret: int = 2812 +KEY_caron: int = 439 +KEY_ccaron: int = 488 +KEY_ccedilla: int = 231 +KEY_ccircumflex: int = 742 +KEY_cedilla: int = 184 +KEY_cent: int = 162 +KEY_ch: int = 65184 +KEY_checkerboard: int = 2529 +KEY_checkmark: int = 2803 +KEY_circle: int = 3023 +KEY_club: int = 2796 +KEY_colon: int = 58 +KEY_comma: int = 44 +KEY_containsas: int = 16785931 +KEY_copyright: int = 169 +KEY_cr: int = 2532 +KEY_crossinglines: int = 2542 +KEY_cuberoot: int = 16785947 +KEY_currency: int = 164 +KEY_cursor: int = 2815 +KEY_d: int = 100 +KEY_dabovedot: int = 16784907 +KEY_dagger: int = 2801 +KEY_dcaron: int = 495 +KEY_dead_A: int = 65153 +KEY_dead_E: int = 65155 +KEY_dead_I: int = 65157 +KEY_dead_O: int = 65159 +KEY_dead_U: int = 65161 +KEY_dead_a: int = 65152 +KEY_dead_abovecomma: int = 65124 +KEY_dead_abovedot: int = 65110 +KEY_dead_abovereversedcomma: int = 65125 +KEY_dead_abovering: int = 65112 +KEY_dead_aboveverticalline: int = 65169 +KEY_dead_acute: int = 65105 +KEY_dead_belowbreve: int = 65131 +KEY_dead_belowcircumflex: int = 65129 +KEY_dead_belowcomma: int = 65134 +KEY_dead_belowdiaeresis: int = 65132 +KEY_dead_belowdot: int = 65120 +KEY_dead_belowmacron: int = 65128 +KEY_dead_belowring: int = 65127 +KEY_dead_belowtilde: int = 65130 +KEY_dead_belowverticalline: int = 65170 +KEY_dead_breve: int = 65109 +KEY_dead_capital_schwa: int = 65163 +KEY_dead_caron: int = 65114 +KEY_dead_cedilla: int = 65115 +KEY_dead_circumflex: int = 65106 +KEY_dead_currency: int = 65135 +KEY_dead_dasia: int = 65125 +KEY_dead_diaeresis: int = 65111 +KEY_dead_doubleacute: int = 65113 +KEY_dead_doublegrave: int = 65126 +KEY_dead_e: int = 65154 +KEY_dead_grave: int = 65104 +KEY_dead_greek: int = 65164 +KEY_dead_hook: int = 65121 +KEY_dead_horn: int = 65122 +KEY_dead_i: int = 65156 +KEY_dead_invertedbreve: int = 65133 +KEY_dead_iota: int = 65117 +KEY_dead_longsolidusoverlay: int = 65171 +KEY_dead_lowline: int = 65168 +KEY_dead_macron: int = 65108 +KEY_dead_o: int = 65158 +KEY_dead_ogonek: int = 65116 +KEY_dead_perispomeni: int = 65107 +KEY_dead_psili: int = 65124 +KEY_dead_semivoiced_sound: int = 65119 +KEY_dead_small_schwa: int = 65162 +KEY_dead_stroke: int = 65123 +KEY_dead_tilde: int = 65107 +KEY_dead_u: int = 65160 +KEY_dead_voiced_sound: int = 65118 +KEY_decimalpoint: int = 2749 +KEY_degree: int = 176 +KEY_diaeresis: int = 168 +KEY_diamond: int = 2797 +KEY_digitspace: int = 2725 +KEY_dintegral: int = 16785964 +KEY_division: int = 247 +KEY_dollar: int = 36 +KEY_doubbaselinedot: int = 2735 +KEY_doubleacute: int = 445 +KEY_doubledagger: int = 2802 +KEY_doublelowquotemark: int = 2814 +KEY_downarrow: int = 2302 +KEY_downcaret: int = 2984 +KEY_downshoe: int = 3030 +KEY_downstile: int = 3012 +KEY_downtack: int = 3010 +KEY_dstroke: int = 496 +KEY_e: int = 101 +KEY_eabovedot: int = 1004 +KEY_eacute: int = 233 +KEY_ebelowdot: int = 16785081 +KEY_ecaron: int = 492 +KEY_ecircumflex: int = 234 +KEY_ecircumflexacute: int = 16785087 +KEY_ecircumflexbelowdot: int = 16785095 +KEY_ecircumflexgrave: int = 16785089 +KEY_ecircumflexhook: int = 16785091 +KEY_ecircumflextilde: int = 16785093 +KEY_ediaeresis: int = 235 +KEY_egrave: int = 232 +KEY_ehook: int = 16785083 +KEY_eightsubscript: int = 16785544 +KEY_eightsuperior: int = 16785528 +KEY_elementof: int = 16785928 +KEY_ellipsis: int = 2734 +KEY_em3space: int = 2723 +KEY_em4space: int = 2724 +KEY_emacron: int = 954 +KEY_emdash: int = 2729 +KEY_emfilledcircle: int = 2782 +KEY_emfilledrect: int = 2783 +KEY_emopencircle: int = 2766 +KEY_emopenrectangle: int = 2767 +KEY_emptyset: int = 16785925 +KEY_emspace: int = 2721 +KEY_endash: int = 2730 +KEY_enfilledcircbullet: int = 2790 +KEY_enfilledsqbullet: int = 2791 +KEY_eng: int = 959 +KEY_enopencircbullet: int = 2784 +KEY_enopensquarebullet: int = 2785 +KEY_enspace: int = 2722 +KEY_eogonek: int = 490 +KEY_equal: int = 61 +KEY_eth: int = 240 +KEY_etilde: int = 16785085 +KEY_exclam: int = 33 +KEY_exclamdown: int = 161 +KEY_ezh: int = 16777874 +KEY_f: int = 102 +KEY_fabovedot: int = 16784927 +KEY_femalesymbol: int = 2808 +KEY_ff: int = 2531 +KEY_figdash: int = 2747 +KEY_filledlefttribullet: int = 2780 +KEY_filledrectbullet: int = 2779 +KEY_filledrighttribullet: int = 2781 +KEY_filledtribulletdown: int = 2793 +KEY_filledtribulletup: int = 2792 +KEY_fiveeighths: int = 2757 +KEY_fivesixths: int = 2743 +KEY_fivesubscript: int = 16785541 +KEY_fivesuperior: int = 16785525 +KEY_fourfifths: int = 2741 +KEY_foursubscript: int = 16785540 +KEY_foursuperior: int = 16785524 +KEY_fourthroot: int = 16785948 +KEY_function: int = 2294 +KEY_g: int = 103 +KEY_gabovedot: int = 757 +KEY_gbreve: int = 699 +KEY_gcaron: int = 16777703 +KEY_gcedilla: int = 955 +KEY_gcircumflex: int = 760 +KEY_grave: int = 96 +KEY_greater: int = 62 +KEY_greaterthanequal: int = 2238 +KEY_guillemotleft: int = 171 +KEY_guillemotright: int = 187 +KEY_h: int = 104 +KEY_hairspace: int = 2728 +KEY_hcircumflex: int = 694 +KEY_heart: int = 2798 +KEY_hebrew_aleph: int = 3296 +KEY_hebrew_ayin: int = 3314 +KEY_hebrew_bet: int = 3297 +KEY_hebrew_beth: int = 3297 +KEY_hebrew_chet: int = 3303 +KEY_hebrew_dalet: int = 3299 +KEY_hebrew_daleth: int = 3299 +KEY_hebrew_doublelowline: int = 3295 +KEY_hebrew_finalkaph: int = 3306 +KEY_hebrew_finalmem: int = 3309 +KEY_hebrew_finalnun: int = 3311 +KEY_hebrew_finalpe: int = 3315 +KEY_hebrew_finalzade: int = 3317 +KEY_hebrew_finalzadi: int = 3317 +KEY_hebrew_gimel: int = 3298 +KEY_hebrew_gimmel: int = 3298 +KEY_hebrew_he: int = 3300 +KEY_hebrew_het: int = 3303 +KEY_hebrew_kaph: int = 3307 +KEY_hebrew_kuf: int = 3319 +KEY_hebrew_lamed: int = 3308 +KEY_hebrew_mem: int = 3310 +KEY_hebrew_nun: int = 3312 +KEY_hebrew_pe: int = 3316 +KEY_hebrew_qoph: int = 3319 +KEY_hebrew_resh: int = 3320 +KEY_hebrew_samech: int = 3313 +KEY_hebrew_samekh: int = 3313 +KEY_hebrew_shin: int = 3321 +KEY_hebrew_taf: int = 3322 +KEY_hebrew_taw: int = 3322 +KEY_hebrew_tet: int = 3304 +KEY_hebrew_teth: int = 3304 +KEY_hebrew_waw: int = 3301 +KEY_hebrew_yod: int = 3305 +KEY_hebrew_zade: int = 3318 +KEY_hebrew_zadi: int = 3318 +KEY_hebrew_zain: int = 3302 +KEY_hebrew_zayin: int = 3302 +KEY_hexagram: int = 2778 +KEY_horizconnector: int = 2211 +KEY_horizlinescan1: int = 2543 +KEY_horizlinescan3: int = 2544 +KEY_horizlinescan5: int = 2545 +KEY_horizlinescan7: int = 2546 +KEY_horizlinescan9: int = 2547 +KEY_hstroke: int = 689 +KEY_ht: int = 2530 +KEY_hyphen: int = 173 +KEY_i: int = 105 +KEY_iTouch: int = 269025120 +KEY_iacute: int = 237 +KEY_ibelowdot: int = 16785099 +KEY_ibreve: int = 16777517 +KEY_icircumflex: int = 238 +KEY_identical: int = 2255 +KEY_idiaeresis: int = 239 +KEY_idotless: int = 697 +KEY_ifonlyif: int = 2253 +KEY_igrave: int = 236 +KEY_ihook: int = 16785097 +KEY_imacron: int = 1007 +KEY_implies: int = 2254 +KEY_includedin: int = 2266 +KEY_includes: int = 2267 +KEY_infinity: int = 2242 +KEY_integral: int = 2239 +KEY_intersection: int = 2268 +KEY_iogonek: int = 999 +KEY_itilde: int = 949 +KEY_j: int = 106 +KEY_jcircumflex: int = 700 +KEY_jot: int = 3018 +KEY_k: int = 107 +KEY_kana_A: int = 1201 +KEY_kana_CHI: int = 1217 +KEY_kana_E: int = 1204 +KEY_kana_FU: int = 1228 +KEY_kana_HA: int = 1226 +KEY_kana_HE: int = 1229 +KEY_kana_HI: int = 1227 +KEY_kana_HO: int = 1230 +KEY_kana_HU: int = 1228 +KEY_kana_I: int = 1202 +KEY_kana_KA: int = 1206 +KEY_kana_KE: int = 1209 +KEY_kana_KI: int = 1207 +KEY_kana_KO: int = 1210 +KEY_kana_KU: int = 1208 +KEY_kana_MA: int = 1231 +KEY_kana_ME: int = 1234 +KEY_kana_MI: int = 1232 +KEY_kana_MO: int = 1235 +KEY_kana_MU: int = 1233 +KEY_kana_N: int = 1245 +KEY_kana_NA: int = 1221 +KEY_kana_NE: int = 1224 +KEY_kana_NI: int = 1222 +KEY_kana_NO: int = 1225 +KEY_kana_NU: int = 1223 +KEY_kana_O: int = 1205 +KEY_kana_RA: int = 1239 +KEY_kana_RE: int = 1242 +KEY_kana_RI: int = 1240 +KEY_kana_RO: int = 1243 +KEY_kana_RU: int = 1241 +KEY_kana_SA: int = 1211 +KEY_kana_SE: int = 1214 +KEY_kana_SHI: int = 1212 +KEY_kana_SO: int = 1215 +KEY_kana_SU: int = 1213 +KEY_kana_TA: int = 1216 +KEY_kana_TE: int = 1219 +KEY_kana_TI: int = 1217 +KEY_kana_TO: int = 1220 +KEY_kana_TSU: int = 1218 +KEY_kana_TU: int = 1218 +KEY_kana_U: int = 1203 +KEY_kana_WA: int = 1244 +KEY_kana_WO: int = 1190 +KEY_kana_YA: int = 1236 +KEY_kana_YO: int = 1238 +KEY_kana_YU: int = 1237 +KEY_kana_a: int = 1191 +KEY_kana_closingbracket: int = 1187 +KEY_kana_comma: int = 1188 +KEY_kana_conjunctive: int = 1189 +KEY_kana_e: int = 1194 +KEY_kana_fullstop: int = 1185 +KEY_kana_i: int = 1192 +KEY_kana_middledot: int = 1189 +KEY_kana_o: int = 1195 +KEY_kana_openingbracket: int = 1186 +KEY_kana_switch: int = 65406 +KEY_kana_tsu: int = 1199 +KEY_kana_tu: int = 1199 +KEY_kana_u: int = 1193 +KEY_kana_ya: int = 1196 +KEY_kana_yo: int = 1198 +KEY_kana_yu: int = 1197 +KEY_kappa: int = 930 +KEY_kcedilla: int = 1011 +KEY_kra: int = 930 +KEY_l: int = 108 +KEY_lacute: int = 485 +KEY_latincross: int = 2777 +KEY_lbelowdot: int = 16784951 +KEY_lcaron: int = 437 +KEY_lcedilla: int = 950 +KEY_leftanglebracket: int = 2748 +KEY_leftarrow: int = 2299 +KEY_leftcaret: int = 2979 +KEY_leftdoublequotemark: int = 2770 +KEY_leftmiddlecurlybrace: int = 2223 +KEY_leftopentriangle: int = 2764 +KEY_leftpointer: int = 2794 +KEY_leftradical: int = 2209 +KEY_leftshoe: int = 3034 +KEY_leftsinglequotemark: int = 2768 +KEY_leftt: int = 2548 +KEY_lefttack: int = 3036 +KEY_less: int = 60 +KEY_lessthanequal: int = 2236 +KEY_lf: int = 2533 +KEY_logicaland: int = 2270 +KEY_logicalor: int = 2271 +KEY_lowleftcorner: int = 2541 +KEY_lowrightcorner: int = 2538 +KEY_lstroke: int = 435 +KEY_m: int = 109 +KEY_mabovedot: int = 16784961 +KEY_macron: int = 175 +KEY_malesymbol: int = 2807 +KEY_maltesecross: int = 2800 +KEY_marker: int = 2751 +KEY_masculine: int = 186 +KEY_minus: int = 45 +KEY_minutes: int = 2774 +KEY_mu: int = 181 +KEY_multiply: int = 215 +KEY_musicalflat: int = 2806 +KEY_musicalsharp: int = 2805 +KEY_n: int = 110 +KEY_nabla: int = 2245 +KEY_nacute: int = 497 +KEY_ncaron: int = 498 +KEY_ncedilla: int = 1009 +KEY_ninesubscript: int = 16785545 +KEY_ninesuperior: int = 16785529 +KEY_nl: int = 2536 +KEY_nobreakspace: int = 160 +KEY_notapproxeq: int = 16785991 +KEY_notelementof: int = 16785929 +KEY_notequal: int = 2237 +KEY_notidentical: int = 16786018 +KEY_notsign: int = 172 +KEY_ntilde: int = 241 +KEY_numbersign: int = 35 +KEY_numerosign: int = 1712 +KEY_o: int = 111 +KEY_oacute: int = 243 +KEY_obarred: int = 16777845 +KEY_obelowdot: int = 16785101 +KEY_ocaron: int = 16777682 +KEY_ocircumflex: int = 244 +KEY_ocircumflexacute: int = 16785105 +KEY_ocircumflexbelowdot: int = 16785113 +KEY_ocircumflexgrave: int = 16785107 +KEY_ocircumflexhook: int = 16785109 +KEY_ocircumflextilde: int = 16785111 +KEY_odiaeresis: int = 246 +KEY_odoubleacute: int = 501 +KEY_oe: int = 5053 +KEY_ogonek: int = 434 +KEY_ograve: int = 242 +KEY_ohook: int = 16785103 +KEY_ohorn: int = 16777633 +KEY_ohornacute: int = 16785115 +KEY_ohornbelowdot: int = 16785123 +KEY_ohorngrave: int = 16785117 +KEY_ohornhook: int = 16785119 +KEY_ohorntilde: int = 16785121 +KEY_omacron: int = 1010 +KEY_oneeighth: int = 2755 +KEY_onefifth: int = 2738 +KEY_onehalf: int = 189 +KEY_onequarter: int = 188 +KEY_onesixth: int = 2742 +KEY_onesubscript: int = 16785537 +KEY_onesuperior: int = 185 +KEY_onethird: int = 2736 +KEY_ooblique: int = 248 +KEY_openrectbullet: int = 2786 +KEY_openstar: int = 2789 +KEY_opentribulletdown: int = 2788 +KEY_opentribulletup: int = 2787 +KEY_ordfeminine: int = 170 +KEY_oslash: int = 248 +KEY_otilde: int = 245 +KEY_overbar: int = 3008 +KEY_overline: int = 1150 +KEY_p: int = 112 +KEY_pabovedot: int = 16784983 +KEY_paragraph: int = 182 +KEY_parenleft: int = 40 +KEY_parenright: int = 41 +KEY_partdifferential: int = 16785922 +KEY_partialderivative: int = 2287 +KEY_percent: int = 37 +KEY_period: int = 46 +KEY_periodcentered: int = 183 +KEY_permille: int = 2773 +KEY_phonographcopyright: int = 2811 +KEY_plus: int = 43 +KEY_plusminus: int = 177 +KEY_prescription: int = 2772 +KEY_prolongedsound: int = 1200 +KEY_punctspace: int = 2726 +KEY_q: int = 113 +KEY_quad: int = 3020 +KEY_question: int = 63 +KEY_questiondown: int = 191 +KEY_quotedbl: int = 34 +KEY_quoteleft: int = 96 +KEY_quoteright: int = 39 +KEY_r: int = 114 +KEY_racute: int = 480 +KEY_radical: int = 2262 +KEY_rcaron: int = 504 +KEY_rcedilla: int = 947 +KEY_registered: int = 174 +KEY_rightanglebracket: int = 2750 +KEY_rightarrow: int = 2301 +KEY_rightcaret: int = 2982 +KEY_rightdoublequotemark: int = 2771 +KEY_rightmiddlecurlybrace: int = 2224 +KEY_rightmiddlesummation: int = 2231 +KEY_rightopentriangle: int = 2765 +KEY_rightpointer: int = 2795 +KEY_rightshoe: int = 3032 +KEY_rightsinglequotemark: int = 2769 +KEY_rightt: int = 2549 +KEY_righttack: int = 3068 +KEY_s: int = 115 +KEY_sabovedot: int = 16784993 +KEY_sacute: int = 438 +KEY_scaron: int = 441 +KEY_scedilla: int = 442 +KEY_schwa: int = 16777817 +KEY_scircumflex: int = 766 +KEY_script_switch: int = 65406 +KEY_seconds: int = 2775 +KEY_section: int = 167 +KEY_semicolon: int = 59 +KEY_semivoicedsound: int = 1247 +KEY_seveneighths: int = 2758 +KEY_sevensubscript: int = 16785543 +KEY_sevensuperior: int = 16785527 +KEY_signaturemark: int = 2762 +KEY_signifblank: int = 2732 +KEY_similarequal: int = 2249 +KEY_singlelowquotemark: int = 2813 +KEY_sixsubscript: int = 16785542 +KEY_sixsuperior: int = 16785526 +KEY_slash: int = 47 +KEY_soliddiamond: int = 2528 +KEY_space: int = 32 +KEY_squareroot: int = 16785946 +KEY_ssharp: int = 223 +KEY_sterling: int = 163 +KEY_stricteq: int = 16786019 +KEY_t: int = 116 +KEY_tabovedot: int = 16785003 +KEY_tcaron: int = 443 +KEY_tcedilla: int = 510 +KEY_telephone: int = 2809 +KEY_telephonerecorder: int = 2810 +KEY_therefore: int = 2240 +KEY_thinspace: int = 2727 +KEY_thorn: int = 254 +KEY_threeeighths: int = 2756 +KEY_threefifths: int = 2740 +KEY_threequarters: int = 190 +KEY_threesubscript: int = 16785539 +KEY_threesuperior: int = 179 +KEY_tintegral: int = 16785965 +KEY_topintegral: int = 2212 +KEY_topleftparens: int = 2219 +KEY_topleftradical: int = 2210 +KEY_topleftsqbracket: int = 2215 +KEY_topleftsummation: int = 2225 +KEY_toprightparens: int = 2221 +KEY_toprightsqbracket: int = 2217 +KEY_toprightsummation: int = 2229 +KEY_topt: int = 2551 +KEY_topvertsummationconnector: int = 2227 +KEY_trademark: int = 2761 +KEY_trademarkincircle: int = 2763 +KEY_tslash: int = 956 +KEY_twofifths: int = 2739 +KEY_twosubscript: int = 16785538 +KEY_twosuperior: int = 178 +KEY_twothirds: int = 2737 +KEY_u: int = 117 +KEY_uacute: int = 250 +KEY_ubelowdot: int = 16785125 +KEY_ubreve: int = 765 +KEY_ucircumflex: int = 251 +KEY_udiaeresis: int = 252 +KEY_udoubleacute: int = 507 +KEY_ugrave: int = 249 +KEY_uhook: int = 16785127 +KEY_uhorn: int = 16777648 +KEY_uhornacute: int = 16785129 +KEY_uhornbelowdot: int = 16785137 +KEY_uhorngrave: int = 16785131 +KEY_uhornhook: int = 16785133 +KEY_uhorntilde: int = 16785135 +KEY_umacron: int = 1022 +KEY_underbar: int = 3014 +KEY_underscore: int = 95 +KEY_union: int = 2269 +KEY_uogonek: int = 1017 +KEY_uparrow: int = 2300 +KEY_upcaret: int = 2985 +KEY_upleftcorner: int = 2540 +KEY_uprightcorner: int = 2539 +KEY_upshoe: int = 3011 +KEY_upstile: int = 3027 +KEY_uptack: int = 3022 +KEY_uring: int = 505 +KEY_utilde: int = 1021 +KEY_v: int = 118 +KEY_variation: int = 2241 +KEY_vertbar: int = 2552 +KEY_vertconnector: int = 2214 +KEY_voicedsound: int = 1246 +KEY_vt: int = 2537 +KEY_w: int = 119 +KEY_wacute: int = 16785027 +KEY_wcircumflex: int = 16777589 +KEY_wdiaeresis: int = 16785029 +KEY_wgrave: int = 16785025 +KEY_x: int = 120 +KEY_xabovedot: int = 16785035 +KEY_y: int = 121 +KEY_yacute: int = 253 +KEY_ybelowdot: int = 16785141 +KEY_ycircumflex: int = 16777591 +KEY_ydiaeresis: int = 255 +KEY_yen: int = 165 +KEY_ygrave: int = 16785139 +KEY_yhook: int = 16785143 +KEY_ytilde: int = 16785145 +KEY_z: int = 122 +KEY_zabovedot: int = 447 +KEY_zacute: int = 444 +KEY_zcaron: int = 446 +KEY_zerosubscript: int = 16785536 +KEY_zerosuperior: int = 16785520 +KEY_zstroke: int = 16777654 +MODIFIER_MASK: int = 469769999 +PRIORITY_REDRAW: int = 120 +_introspection_module = ... # FIXME Constant +_lock = ... # FIXME Constant +_namespace: str = "Gdk" +_overrides_module = ... # FIXME Constant +_version: str = "4.0" + +def cairo_draw_from_gl( + cr: cairo.Context[_SomeSurface], + surface: Surface, + source: int, + source_type: int, + buffer_scale: int, + x: int, + y: int, + width: int, + height: int, +) -> None: ... +def cairo_rectangle(cr: cairo.Context[_SomeSurface], rectangle: Rectangle) -> None: ... +def cairo_region(cr: cairo.Context[_SomeSurface], region: cairo.Region) -> None: ... +def cairo_region_create_from_surface(surface: cairo.Surface) -> cairo.Region: ... +def cairo_set_source_pixbuf( + cr: cairo.Context[_SomeSurface], + pixbuf: GdkPixbuf.Pixbuf, + pixbuf_x: float, + pixbuf_y: float, +) -> None: ... +def cairo_set_source_rgba(cr: cairo.Context[_SomeSurface], rgba: RGBA) -> None: ... +def content_deserialize_async( + stream: Gio.InputStream, + mime_type: str, + type: Type, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, +) -> None: ... +def content_deserialize_finish(result: Gio.AsyncResult) -> Tuple[bool, Any]: ... +def content_formats_parse(string: str) -> Optional[ContentFormats]: ... +def content_register_deserializer( + mime_type: str, type: Type, deserialize: Callable[..., None], *data: Any +) -> None: ... +def content_register_serializer( + type: Type, mime_type: str, serialize: Callable[..., None], *data: Any +) -> None: ... +def content_serialize_async( + stream: Gio.OutputStream, + mime_type: str, + value: Any, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, +) -> None: ... +def content_serialize_finish(result: Gio.AsyncResult) -> bool: ... +def drag_action_is_unique(action: DragAction) -> bool: ... +def events_get_angle(event1: Event, event2: Event) -> Tuple[bool, float]: ... +def events_get_center(event1: Event, event2: Event) -> Tuple[bool, float, float]: ... +def events_get_distance(event1: Event, event2: Event) -> Tuple[bool, float]: ... +def gl_error_quark() -> int: ... +def intern_mime_type(string: str) -> Optional[str]: ... +def keyval_convert_case(symbol: int) -> Tuple[int, int]: ... +def keyval_from_name(keyval_name: str) -> int: ... +def keyval_is_lower(keyval: int) -> bool: ... +def keyval_is_upper(keyval: int) -> bool: ... +def keyval_name(keyval: int) -> Optional[str]: ... +def keyval_to_lower(keyval: int) -> int: ... +def keyval_to_unicode(keyval: int) -> int: ... +def keyval_to_upper(keyval: int) -> int: ... +def paintable_new_empty(intrinsic_width: int, intrinsic_height: int) -> Paintable: ... +def pixbuf_get_from_surface( + surface: cairo.Surface, src_x: int, src_y: int, width: int, height: int +) -> Optional[GdkPixbuf.Pixbuf]: ... +def pixbuf_get_from_texture(texture: Texture) -> Optional[GdkPixbuf.Pixbuf]: ... +def set_allowed_backends(backends: str) -> None: ... +def texture_error_quark() -> int: ... +def toplevel_size_get_type() -> Type: ... +def unicode_to_keyval(wc: int) -> int: ... +def vulkan_error_quark() -> int: ... + +class AppLaunchContext(Gio.AppLaunchContext): + """ + :Constructors: + + :: + + AppLaunchContext(**properties) + + Object GdkAppLaunchContext + + Properties from GdkAppLaunchContext: + display -> GdkDisplay: display + + Signals from GAppLaunchContext: + launch-failed (gchararray) + launch-started (GAppInfo, GVariant) + launched (GAppInfo, GVariant) + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Display + + props: Props = ... + def __init__(self, display: Display = ...): ... + def get_display(self) -> Display: ... + def set_desktop(self, desktop: int) -> None: ... + def set_icon(self, icon: Optional[Gio.Icon] = None) -> None: ... + def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... + def set_timestamp(self, timestamp: int) -> None: ... + +class ButtonEvent(Event): + """ + :Constructors: + + :: + + ButtonEvent(**properties) + """ + + def get_button(self) -> int: ... + +class CairoContext(DrawContext): + """ + :Constructors: + + :: + + CairoContext(**properties) + + Object GdkCairoContext + + Properties from GdkDrawContext: + display -> GdkDisplay: display + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Optional[Display] + surface: Optional[Surface] + + props: Props = ... + def __init__(self, display: Display = ..., surface: Surface = ...): ... + def cairo_create(self) -> Optional[cairo.Context]: ... + +class Clipboard(GObject.Object): + """ + :Constructors: + + :: + + Clipboard(**properties) + + Object GdkClipboard + + Signals from GdkClipboard: + changed () + + Properties from GdkClipboard: + display -> GdkDisplay: display + formats -> GdkContentFormats: formats + local -> gboolean: local + content -> GdkContentProvider: content + + Signals from GObject: + notify (GParam) + """ + + class Props: + content: Optional[ContentProvider] + display: Display + formats: ContentFormats + local: bool + + props: Props = ... + def __init__(self, display: Display = ...): ... + def get_content(self) -> Optional[ContentProvider]: ... + def get_display(self) -> Display: ... + def get_formats(self) -> ContentFormats: ... + def is_local(self) -> bool: ... + def read_async( + self, + mime_types: Sequence[str], + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def read_finish( + self, result: Gio.AsyncResult + ) -> Tuple[Optional[Gio.InputStream], str]: ... + def read_text_async( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def read_text_finish(self, result: Gio.AsyncResult) -> Optional[str]: ... + def read_texture_async( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def read_texture_finish(self, result: Gio.AsyncResult) -> Optional[Texture]: ... + def read_value_async( + self, + type: Type, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def read_value_finish(self, result: Gio.AsyncResult) -> Any: ... + def set(self, value: Any) -> None: ... + def set_content(self, provider: Optional[ContentProvider] = None) -> bool: ... + def store_async( + self, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def store_finish(self, result: Gio.AsyncResult) -> bool: ... + +class ContentDeserializer(GObject.Object, Gio.AsyncResult): + """ + :Constructors: + + :: + + ContentDeserializer(**properties) + + Object GdkContentDeserializer + + Signals from GObject: + notify (GParam) + """ + + def get_cancellable(self) -> Optional[Gio.Cancellable]: ... + def get_gtype(self) -> Type: ... + def get_input_stream(self) -> Gio.InputStream: ... + def get_mime_type(self) -> str: ... + def get_priority(self) -> int: ... + def get_task_data(self) -> None: ... + def get_user_data(self) -> None: ... + def get_value(self) -> Any: ... + def return_error(self, error: GLib.Error) -> None: ... + def return_success(self) -> None: ... + def set_task_data(self, data: None, notify: Callable[[None], None]) -> None: ... + +class ContentFormats(GObject.GBoxed): + """ + :Constructors: + + :: + + new(mime_types:list=None) -> Gdk.ContentFormats + new_for_gtype(type:GType) -> Gdk.ContentFormats + """ + + def contain_gtype(self, type: Type) -> bool: ... + def contain_mime_type(self, mime_type: str) -> bool: ... + def get_gtypes(self) -> Optional[list[Type]]: ... + def get_mime_types(self) -> Optional[list[str]]: ... + def match(self, second: ContentFormats) -> bool: ... + def match_gtype(self, second: ContentFormats) -> Type: ... + def match_mime_type(self, second: ContentFormats) -> Optional[str]: ... + @classmethod + def new(cls, mime_types: Optional[Sequence[str]] = None) -> ContentFormats: ... + @classmethod + def new_for_gtype(cls, type: Type) -> ContentFormats: ... + @staticmethod + def parse(string: str) -> Optional[ContentFormats]: ... + def print_(self, string: GLib.String) -> None: ... + def ref(self) -> ContentFormats: ... + def to_string(self) -> str: ... + def union(self, second: ContentFormats) -> ContentFormats: ... + def union_deserialize_gtypes(self) -> ContentFormats: ... + def union_deserialize_mime_types(self) -> ContentFormats: ... + def union_serialize_gtypes(self) -> ContentFormats: ... + def union_serialize_mime_types(self) -> ContentFormats: ... + def unref(self) -> None: ... + +class ContentFormatsBuilder(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gdk.ContentFormatsBuilder + """ + + def add_formats(self, formats: ContentFormats) -> None: ... + def add_gtype(self, type: Type) -> None: ... + def add_mime_type(self, mime_type: str) -> None: ... + @classmethod + def new(cls) -> ContentFormatsBuilder: ... + def ref(self) -> ContentFormatsBuilder: ... + def to_formats(self) -> ContentFormats: ... + def unref(self) -> None: ... + +class ContentProvider(GObject.Object): + """ + :Constructors: + + :: + + ContentProvider(**properties) + new_for_bytes(mime_type:str, bytes:GLib.Bytes) -> Gdk.ContentProvider + new_for_value(value:GObject.Value) -> Gdk.ContentProvider + new_union(providers:list=None) -> Gdk.ContentProvider + + Object GdkContentProvider + + Signals from GdkContentProvider: + content-changed () + + Properties from GdkContentProvider: + formats -> GdkContentFormats: formats + storable-formats -> GdkContentFormats: storable-formats + + Signals from GObject: + notify (GParam) + """ + + class Props: + formats: ContentFormats + storable_formats: ContentFormats + + props: Props = ... + parent: GObject.Object = ... + def content_changed(self) -> None: ... + def do_attach_clipboard(self, clipboard: Clipboard) -> None: ... + def do_content_changed(self) -> None: ... + def do_detach_clipboard(self, clipboard: Clipboard) -> None: ... + def do_get_value(self) -> Tuple[bool, Any]: ... + def do_ref_formats(self) -> ContentFormats: ... + def do_ref_storable_formats(self) -> ContentFormats: ... + def do_write_mime_type_async( + self, + mime_type: str, + stream: Gio.OutputStream, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def do_write_mime_type_finish(self, result: Gio.AsyncResult) -> bool: ... + def get_value(self) -> Tuple[bool, Any]: ... + @classmethod + def new_for_bytes(cls, mime_type: str, bytes: GLib.Bytes) -> ContentProvider: ... + @classmethod + def new_for_value(cls, value: Any) -> ContentProvider: ... + @classmethod + def new_union( + cls, providers: Optional[Sequence[ContentProvider]] = None + ) -> ContentProvider: ... + def ref_formats(self) -> ContentFormats: ... + def ref_storable_formats(self) -> ContentFormats: ... + def write_mime_type_async( + self, + mime_type: str, + stream: Gio.OutputStream, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def write_mime_type_finish(self, result: Gio.AsyncResult) -> bool: ... + +class ContentProviderClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContentProviderClass() + """ + + parent_class: GObject.ObjectClass = ... + content_changed: Callable[[ContentProvider], None] = ... + attach_clipboard: Callable[[ContentProvider, Clipboard], None] = ... + detach_clipboard: Callable[[ContentProvider, Clipboard], None] = ... + ref_formats: Callable[[ContentProvider], ContentFormats] = ... + ref_storable_formats: Callable[[ContentProvider], ContentFormats] = ... + write_mime_type_async: Callable[..., None] = ... + write_mime_type_finish: Callable[[ContentProvider, Gio.AsyncResult], bool] = ... + get_value: Callable[[ContentProvider], Tuple[bool, Any]] = ... + padding: list[None] = ... + +class ContentSerializer(GObject.Object, Gio.AsyncResult): + """ + :Constructors: + + :: + + ContentSerializer(**properties) + + Object GdkContentSerializer + + Signals from GObject: + notify (GParam) + """ + + def get_cancellable(self) -> Optional[Gio.Cancellable]: ... + def get_gtype(self) -> Type: ... + def get_mime_type(self) -> str: ... + def get_output_stream(self) -> Gio.OutputStream: ... + def get_priority(self) -> int: ... + def get_task_data(self) -> None: ... + def get_user_data(self) -> None: ... + def get_value(self) -> Any: ... + def return_error(self, error: GLib.Error) -> None: ... + def return_success(self) -> None: ... + def set_task_data(self, data: None, notify: Callable[[None], None]) -> None: ... + +class CrossingEvent(Event): + """ + :Constructors: + + :: + + CrossingEvent(**properties) + """ + + def get_detail(self) -> NotifyType: ... + def get_focus(self) -> bool: ... + def get_mode(self) -> CrossingMode: ... + +class Cursor(GObject.Object): + """ + :Constructors: + + :: + + Cursor(**properties) + new_from_name(name:str, fallback:Gdk.Cursor=None) -> Gdk.Cursor or None + new_from_texture(texture:Gdk.Texture, hotspot_x:int, hotspot_y:int, fallback:Gdk.Cursor=None) -> Gdk.Cursor + + Object GdkCursor + + Properties from GdkCursor: + fallback -> GdkCursor: fallback + hotspot-x -> gint: hotspot-x + hotspot-y -> gint: hotspot-y + name -> gchararray: name + texture -> GdkTexture: texture + + Signals from GObject: + notify (GParam) + """ + + class Props: + fallback: Optional[Cursor] + hotspot_x: int + hotspot_y: int + name: Optional[str] + texture: Optional[Texture] + + props: Props = ... + def __init__( + self, + fallback: Cursor = ..., + hotspot_x: int = ..., + hotspot_y: int = ..., + name: str = ..., + texture: Texture = ..., + ): ... + def get_fallback(self) -> Optional[Cursor]: ... + def get_hotspot_x(self) -> int: ... + def get_hotspot_y(self) -> int: ... + def get_name(self) -> Optional[str]: ... + def get_texture(self) -> Optional[Texture]: ... + @classmethod + def new_from_name( + cls, name: str, fallback: Optional[Cursor] = None + ) -> Optional[Cursor]: ... + @classmethod + def new_from_texture( + cls, + texture: Texture, + hotspot_x: int, + hotspot_y: int, + fallback: Optional[Cursor] = None, + ) -> Cursor: ... + +class DNDEvent(Event): + """ + :Constructors: + + :: + + DNDEvent(**properties) + """ + + def get_drop(self) -> Optional[Drop]: ... + +class DeleteEvent(Event): ... + +class Device(GObject.Object): + """ + :Constructors: + + :: + + Device(**properties) + + Object GdkDevice + + Signals from GdkDevice: + changed () + tool-changed (GdkDeviceTool) + + Properties from GdkDevice: + display -> GdkDisplay: display + name -> gchararray: name + source -> GdkInputSource: source + has-cursor -> gboolean: has-cursor + n-axes -> guint: n-axes + vendor-id -> gchararray: vendor-id + product-id -> gchararray: product-id + seat -> GdkSeat: seat + num-touches -> guint: num-touches + tool -> GdkDeviceTool: tool + direction -> PangoDirection: direction + has-bidi-layouts -> gboolean: has-bidi-layouts + caps-lock-state -> gboolean: caps-lock-state + num-lock-state -> gboolean: num-lock-state + scroll-lock-state -> gboolean: scroll-lock-state + modifier-state -> GdkModifierType: modifier-state + + Signals from GObject: + notify (GParam) + """ + + class Props: + caps_lock_state: bool + direction: Pango.Direction + display: Display + has_bidi_layouts: bool + has_cursor: bool + modifier_state: ModifierType + n_axes: int + name: str + num_lock_state: bool + num_touches: int + product_id: Optional[str] + scroll_lock_state: bool + seat: Seat + source: InputSource + tool: DeviceTool + vendor_id: Optional[str] + + props: Props = ... + def __init__( + self, + display: Display = ..., + has_cursor: bool = ..., + name: str = ..., + num_touches: int = ..., + product_id: str = ..., + seat: Seat = ..., + source: InputSource = ..., + vendor_id: str = ..., + ): ... + def get_caps_lock_state(self) -> bool: ... + def get_device_tool(self) -> Optional[DeviceTool]: ... + def get_direction(self) -> Pango.Direction: ... + def get_display(self) -> Display: ... + def get_has_cursor(self) -> bool: ... + def get_modifier_state(self) -> ModifierType: ... + def get_name(self) -> str: ... + def get_num_lock_state(self) -> bool: ... + def get_num_touches(self) -> int: ... + def get_product_id(self) -> Optional[str]: ... + def get_scroll_lock_state(self) -> bool: ... + def get_seat(self) -> Seat: ... + def get_source(self) -> InputSource: ... + def get_surface_at_position(self) -> Tuple[Optional[Surface], float, float]: ... + def get_timestamp(self) -> int: ... + def get_vendor_id(self) -> Optional[str]: ... + def has_bidi_layouts(self) -> bool: ... + +class DevicePad(GObject.GInterface): + """ + Interface GdkDevicePad + + Signals from GObject: + notify (GParam) + """ + + def get_feature_group(self, feature: DevicePadFeature, feature_idx: int) -> int: ... + def get_group_n_modes(self, group_idx: int) -> int: ... + def get_n_features(self, feature: DevicePadFeature) -> int: ... + def get_n_groups(self) -> int: ... + +class DevicePadInterface(GObject.GPointer): ... + +class DeviceTool(GObject.Object): + """ + :Constructors: + + :: + + DeviceTool(**properties) + + Object GdkDeviceTool + + Properties from GdkDeviceTool: + serial -> guint64: serial + tool-type -> GdkDeviceToolType: tool-type + axes -> GdkAxisFlags: axes + hardware-id -> guint64: hardware-id + + Signals from GObject: + notify (GParam) + """ + + class Props: + axes: AxisFlags + hardware_id: int + serial: int + tool_type: DeviceToolType + + props: Props = ... + def __init__( + self, + axes: AxisFlags = ..., + hardware_id: int = ..., + serial: int = ..., + tool_type: DeviceToolType = ..., + ): ... + def get_axes(self) -> AxisFlags: ... + def get_hardware_id(self) -> int: ... + def get_serial(self) -> int: ... + def get_tool_type(self) -> DeviceToolType: ... + +class Display(GObject.Object): + """ + :Constructors: + + :: + + Display(**properties) + + Object GdkDisplay + + Signals from GdkDisplay: + opened () + closed (gboolean) + seat-added (GdkSeat) + seat-removed (GdkSeat) + setting-changed (gchararray) + + Properties from GdkDisplay: + composited -> gboolean: composited + rgba -> gboolean: rgba + input-shapes -> gboolean: input-shapes + + Signals from GObject: + notify (GParam) + """ + + class Props: + composited: bool + input_shapes: bool + rgba: bool + + props: Props = ... + def beep(self) -> None: ... + def close(self) -> None: ... + def create_gl_context(self) -> GLContext: ... + def device_is_grabbed(self, device: Device) -> bool: ... + def flush(self) -> None: ... + def get_app_launch_context(self) -> AppLaunchContext: ... + def get_clipboard(self) -> Clipboard: ... + @staticmethod + def get_default() -> Optional[Display]: ... + def get_default_seat(self) -> Optional[Seat]: ... + def get_monitor_at_surface(self, surface: Surface) -> Optional[Monitor]: ... + def get_monitors(self) -> Gio.ListModel: ... + def get_name(self) -> str: ... + def get_primary_clipboard(self) -> Clipboard: ... + def get_setting(self, name: str, value: Any) -> bool: ... + def get_startup_notification_id(self) -> Optional[str]: ... + def is_closed(self) -> bool: ... + def is_composited(self) -> bool: ... + def is_rgba(self) -> bool: ... + def list_seats(self) -> list[Seat]: ... + def map_keycode(self, keycode: int) -> Tuple[bool, list[KeymapKey], list[int]]: ... + def map_keyval(self, keyval: int) -> Tuple[bool, list[KeymapKey]]: ... + def notify_startup_complete(self, startup_id: str) -> None: ... + @staticmethod + def open(display_name: Optional[str] = None) -> Optional[Display]: ... + def prepare_gl(self) -> bool: ... + def put_event(self, event: Event) -> None: ... + def supports_input_shapes(self) -> bool: ... + def sync(self) -> None: ... + def translate_key( + self, keycode: int, state: ModifierType, group: int + ) -> Tuple[bool, int, int, int, ModifierType]: ... + +class DisplayManager(GObject.Object): + """ + :Constructors: + + :: + + DisplayManager(**properties) + + Object GdkDisplayManager + + Signals from GdkDisplayManager: + display-opened (GdkDisplay) + + Properties from GdkDisplayManager: + default-display -> GdkDisplay: default-display + + Signals from GObject: + notify (GParam) + """ + + class Props: + default_display: Optional[Display] + + props: Props = ... + def __init__(self, default_display: Display = ...): ... + @staticmethod + def get() -> DisplayManager: ... + def get_default_display(self) -> Optional[Display]: ... + def list_displays(self) -> list[Display]: ... + def open_display(self, name: str) -> Optional[Display]: ... + def set_default_display(self, display: Display) -> None: ... + +class Drag(GObject.Object): + """ + :Constructors: + + :: + + Drag(**properties) + + Object GdkDrag + + Signals from GdkDrag: + cancel (GdkDragCancelReason) + drop-performed () + dnd-finished () + + Properties from GdkDrag: + content -> GdkContentProvider: content + device -> GdkDevice: device + display -> GdkDisplay: display + formats -> GdkContentFormats: formats + selected-action -> GdkDragAction: selected-action + actions -> GdkDragAction: actions + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + + class Props: + actions: DragAction + content: ContentProvider + device: Device + display: Display + formats: ContentFormats + selected_action: DragAction + surface: Surface + + props: Props = ... + def __init__( + self, + actions: DragAction = ..., + content: ContentProvider = ..., + device: Device = ..., + formats: ContentFormats = ..., + selected_action: DragAction = ..., + surface: Surface = ..., + ): ... + @staticmethod + def begin( + surface: Surface, + device: Device, + content: ContentProvider, + actions: DragAction, + dx: float, + dy: float, + ) -> Optional[Drag]: ... + def drop_done(self, success: bool) -> None: ... + def get_actions(self) -> DragAction: ... + def get_content(self) -> ContentProvider: ... + def get_device(self) -> Device: ... + def get_display(self) -> Display: ... + def get_drag_surface(self) -> Optional[Surface]: ... + def get_formats(self) -> ContentFormats: ... + def get_selected_action(self) -> DragAction: ... + def get_surface(self) -> Surface: ... + def set_hotspot(self, hot_x: int, hot_y: int) -> None: ... + +class DragSurface(GObject.GInterface): + """ + Interface GdkDragSurface + + Signals from GObject: + notify (GParam) + """ + + def present(self, width: int, height: int) -> bool: ... + +class DragSurfaceInterface(GObject.GPointer): ... + +class DrawContext(GObject.Object): + """ + :Constructors: + + :: + + DrawContext(**properties) + + Object GdkDrawContext + + Properties from GdkDrawContext: + display -> GdkDisplay: display + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Optional[Display] + surface: Optional[Surface] + + props: Props = ... + def __init__(self, display: Display = ..., surface: Surface = ...): ... + def begin_frame(self, region: cairo.Region) -> None: ... + def end_frame(self) -> None: ... + def get_display(self) -> Optional[Display]: ... + def get_frame_region(self) -> Optional[cairo.Region]: ... + def get_surface(self) -> Optional[Surface]: ... + def is_in_frame(self) -> bool: ... + +class Drop(GObject.Object): + """ + :Constructors: + + :: + + Drop(**properties) + + Object GdkDrop + + Properties from GdkDrop: + actions -> GdkDragAction: actions + device -> GdkDevice: device + display -> GdkDisplay: display + drag -> GdkDrag: drag + formats -> GdkContentFormats: formats + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + + class Props: + actions: DragAction + device: Device + display: Display + drag: Optional[Drag] + formats: ContentFormats + surface: Surface + + props: Props = ... + def __init__( + self, + actions: DragAction = ..., + device: Device = ..., + drag: Drag = ..., + formats: ContentFormats = ..., + surface: Surface = ..., + ): ... + def finish(self, action: DragAction) -> None: ... + def get_actions(self) -> DragAction: ... + def get_device(self) -> Device: ... + def get_display(self) -> Display: ... + def get_drag(self) -> Optional[Drag]: ... + def get_formats(self) -> ContentFormats: ... + def get_surface(self) -> Surface: ... + def read_async( + self, + mime_types: Sequence[str], + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def read_finish( + self, result: Gio.AsyncResult + ) -> Tuple[Optional[Gio.InputStream], str]: ... + def read_value_async( + self, + type: Type, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def read_value_finish(self, result: Gio.AsyncResult) -> Any: ... + def status(self, actions: DragAction, preferred: DragAction) -> None: ... + +class Event: + """ + :Constructors: + + :: + + Event(**properties) + """ + + def get_axes(self) -> Tuple[bool, list[float]]: ... + def get_axis(self, axis_use: AxisUse) -> Tuple[bool, float]: ... + def get_device(self) -> Optional[Device]: ... + def get_device_tool(self) -> Optional[DeviceTool]: ... + def get_display(self) -> Optional[Display]: ... + def get_event_sequence(self) -> EventSequence: ... + def get_event_type(self) -> EventType: ... + def get_history(self) -> Optional[list[TimeCoord]]: ... + def get_modifier_state(self) -> ModifierType: ... + def get_pointer_emulated(self) -> bool: ... + def get_position(self) -> Tuple[bool, float, float]: ... + def get_seat(self) -> Optional[Seat]: ... + def get_surface(self) -> Optional[Surface]: ... + def get_time(self) -> int: ... + def ref(self) -> Event: ... + def triggers_context_menu(self) -> bool: ... + def unref(self) -> None: ... + +class EventSequence(GObject.GBoxed): ... + +class FileList(GObject.GBoxed): + """ + :Constructors: + + :: + + new_from_array(files:list) -> Gdk.FileList + new_from_list(files:list) -> Gdk.FileList + """ + + def get_files(self) -> list[Gio.File]: ... + @classmethod + def new_from_array(cls, files: Sequence[Gio.File]) -> FileList: ... + @classmethod + def new_from_list(cls, files: list[Gio.File]) -> FileList: ... + +class FocusEvent(Event): + """ + :Constructors: + + :: + + FocusEvent(**properties) + """ + + def get_in(self) -> bool: ... + +class FrameClock(GObject.Object): + """ + :Constructors: + + :: + + FrameClock(**properties) + + Object GdkFrameClock + + Signals from GdkFrameClock: + flush-events () + before-paint () + update () + layout () + paint () + after-paint () + resume-events () + + Signals from GObject: + notify (GParam) + """ + + def begin_updating(self) -> None: ... + def end_updating(self) -> None: ... + def get_current_timings(self) -> Optional[FrameTimings]: ... + def get_fps(self) -> float: ... + def get_frame_counter(self) -> int: ... + def get_frame_time(self) -> int: ... + def get_history_start(self) -> int: ... + def get_refresh_info(self, base_time: int) -> Tuple[int, int]: ... + def get_timings(self, frame_counter: int) -> Optional[FrameTimings]: ... + def request_phase(self, phase: FrameClockPhase) -> None: ... + +class FrameClockClass(GObject.GPointer): ... +class FrameClockPrivate(GObject.GPointer): ... + +class FrameTimings(GObject.GBoxed): + def get_complete(self) -> bool: ... + def get_frame_counter(self) -> int: ... + def get_frame_time(self) -> int: ... + def get_predicted_presentation_time(self) -> int: ... + def get_presentation_time(self) -> int: ... + def get_refresh_interval(self) -> int: ... + def ref(self) -> FrameTimings: ... + def unref(self) -> None: ... + +class GLContext(DrawContext): + """ + :Constructors: + + :: + + GLContext(**properties) + + Object GdkGLContext + + Properties from GdkGLContext: + allowed-apis -> GdkGLAPI: allowed-apis + api -> GdkGLAPI: api + shared-context -> GdkGLContext: shared-context + + Properties from GdkDrawContext: + display -> GdkDisplay: display + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + + class Props: + allowed_apis: GLAPI + api: GLAPI + shared_context: Optional[GLContext] + display: Optional[Display] + surface: Optional[Surface] + + props: Props = ... + def __init__( + self, + allowed_apis: GLAPI = ..., + shared_context: GLContext = ..., + display: Display = ..., + surface: Surface = ..., + ): ... + @staticmethod + def clear_current() -> None: ... + def get_allowed_apis(self) -> GLAPI: ... + def get_api(self) -> GLAPI: ... + @staticmethod + def get_current() -> Optional[GLContext]: ... + def get_debug_enabled(self) -> bool: ... + def get_display(self) -> Optional[Display]: ... + def get_forward_compatible(self) -> bool: ... + def get_required_version(self) -> Tuple[int, int]: ... + def get_shared_context(self) -> Optional[GLContext]: ... + def get_surface(self) -> Optional[Surface]: ... + def get_use_es(self) -> bool: ... + def get_version(self) -> Tuple[int, int]: ... + def is_legacy(self) -> bool: ... + def is_shared(self, other: GLContext) -> bool: ... + def make_current(self) -> None: ... + def realize(self) -> bool: ... + def set_allowed_apis(self, apis: GLAPI) -> None: ... + def set_debug_enabled(self, enabled: bool) -> None: ... + def set_forward_compatible(self, compatible: bool) -> None: ... + def set_required_version(self, major: int, minor: int) -> None: ... + def set_use_es(self, use_es: int) -> None: ... + +class GLTexture(Texture, Paintable, Gio.Icon, Gio.LoadableIcon): + """ + :Constructors: + + :: + + GLTexture(**properties) + new(context:Gdk.GLContext, id:int, width:int, height:int, destroy:GLib.DestroyNotify, data=None) -> Gdk.GLTexture + + Object GdkGLTexture + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Properties from GdkTexture: + width -> gint: width + height -> gint: height + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Signals from GObject: + notify (GParam) + """ + + class Props: + height: int + width: int + + props: Props = ... + def __init__(self, height: int = ..., width: int = ...): ... + @classmethod + def new( + cls, + context: GLContext, + id: int, + width: int, + height: int, + destroy: Callable[[None], None], + data: None, + ) -> GLTexture: ... + def release(self) -> None: ... + +class GLTextureClass(GObject.GPointer): ... + +class GrabBrokenEvent(Event): + """ + :Constructors: + + :: + + GrabBrokenEvent(**properties) + """ + + def get_grab_surface(self) -> Surface: ... + def get_implicit(self) -> bool: ... + +class KeyEvent(Event): + """ + :Constructors: + + :: + + KeyEvent(**properties) + """ + + def get_consumed_modifiers(self) -> ModifierType: ... + def get_keycode(self) -> int: ... + def get_keyval(self) -> int: ... + def get_layout(self) -> int: ... + def get_level(self) -> int: ... + def get_match(self) -> Tuple[bool, int, ModifierType]: ... + def is_modifier(self) -> bool: ... + def matches(self, keyval: int, modifiers: ModifierType) -> KeyMatch: ... + +class KeymapKey(GObject.GPointer): + """ + :Constructors: + + :: + + KeymapKey() + """ + + keycode: int = ... + group: int = ... + level: int = ... + +class MemoryTexture(Texture, Paintable, Gio.Icon, Gio.LoadableIcon): + """ + :Constructors: + + :: + + MemoryTexture(**properties) + new(width:int, height:int, format:Gdk.MemoryFormat, bytes:GLib.Bytes, stride:int) -> Gdk.MemoryTexture + + Object GdkMemoryTexture + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Properties from GdkTexture: + width -> gint: width + height -> gint: height + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Signals from GObject: + notify (GParam) + """ + + class Props: + height: int + width: int + + props: Props = ... + def __init__(self, height: int = ..., width: int = ...): ... + @classmethod + def new( + cls, + width: int, + height: int, + format: MemoryFormat, + bytes: GLib.Bytes, + stride: int, + ) -> MemoryTexture: ... + +class MemoryTextureClass(GObject.GPointer): ... + +class Monitor(GObject.Object): + """ + :Constructors: + + :: + + Monitor(**properties) + + Object GdkMonitor + + Signals from GdkMonitor: + invalidate () + + Properties from GdkMonitor: + description -> gchararray: description + display -> GdkDisplay: display + manufacturer -> gchararray: manufacturer + model -> gchararray: model + connector -> gchararray: connector + scale-factor -> gint: scale-factor + geometry -> GdkRectangle: geometry + width-mm -> gint: width-mm + height-mm -> gint: height-mm + refresh-rate -> gint: refresh-rate + subpixel-layout -> GdkSubpixelLayout: subpixel-layout + valid -> gboolean: valid + + Signals from GObject: + notify (GParam) + """ + + class Props: + connector: Optional[str] + description: Optional[str] + display: Display + geometry: Rectangle + height_mm: int + manufacturer: Optional[str] + model: Optional[str] + refresh_rate: int + scale_factor: int + subpixel_layout: SubpixelLayout + valid: bool + width_mm: int + + props: Props = ... + def __init__(self, display: Display = ...): ... + def get_connector(self) -> Optional[str]: ... + def get_description(self) -> Optional[str]: ... + def get_display(self) -> Display: ... + def get_geometry(self) -> Rectangle: ... + def get_height_mm(self) -> int: ... + def get_manufacturer(self) -> Optional[str]: ... + def get_model(self) -> Optional[str]: ... + def get_refresh_rate(self) -> int: ... + def get_scale_factor(self) -> int: ... + def get_subpixel_layout(self) -> SubpixelLayout: ... + def get_width_mm(self) -> int: ... + def is_valid(self) -> bool: ... + +class MonitorClass(GObject.GPointer): ... +class MotionEvent(Event): ... + +class PadEvent(Event): + """ + :Constructors: + + :: + + PadEvent(**properties) + """ + + def get_axis_value(self) -> Tuple[int, float]: ... + def get_button(self) -> int: ... + def get_group_mode(self) -> Tuple[int, int]: ... + +class Paintable(GObject.GInterface): + """ + Interface GdkPaintable + + Signals from GObject: + notify (GParam) + """ + + def compute_concrete_size( + self, + specified_width: float, + specified_height: float, + default_width: float, + default_height: float, + ) -> Tuple[float, float]: ... + def get_current_image(self) -> Paintable: ... + def get_flags(self) -> PaintableFlags: ... + def get_intrinsic_aspect_ratio(self) -> float: ... + def get_intrinsic_height(self) -> int: ... + def get_intrinsic_width(self) -> int: ... + def invalidate_contents(self) -> None: ... + def invalidate_size(self) -> None: ... + @staticmethod + def new_empty(intrinsic_width: int, intrinsic_height: int) -> Paintable: ... + def snapshot(self, snapshot: Snapshot, width: float, height: float) -> None: ... + +class PaintableInterface(GObject.GPointer): + """ + :Constructors: + + :: + + PaintableInterface() + """ + + g_iface: GObject.TypeInterface = ... + snapshot: Callable[[Paintable, Snapshot, float, float], None] = ... + get_current_image: Callable[[Paintable], Paintable] = ... + get_flags: Callable[[Paintable], PaintableFlags] = ... + get_intrinsic_width: Callable[[Paintable], int] = ... + get_intrinsic_height: Callable[[Paintable], int] = ... + get_intrinsic_aspect_ratio: Callable[[Paintable], float] = ... + +class Popup(GObject.GInterface): + """ + Interface GdkPopup + + Signals from GObject: + notify (GParam) + """ + + def get_autohide(self) -> bool: ... + def get_parent(self) -> Optional[Surface]: ... + def get_position_x(self) -> int: ... + def get_position_y(self) -> int: ... + def get_rect_anchor(self) -> Gravity: ... + def get_surface_anchor(self) -> Gravity: ... + def present(self, width: int, height: int, layout: PopupLayout) -> bool: ... + +class PopupInterface(GObject.GPointer): ... + +class PopupLayout(GObject.GBoxed): + """ + :Constructors: + + :: + + new(anchor_rect:Gdk.Rectangle, rect_anchor:Gdk.Gravity, surface_anchor:Gdk.Gravity) -> Gdk.PopupLayout + """ + + def copy(self) -> PopupLayout: ... + def equal(self, other: PopupLayout) -> bool: ... + def get_anchor_hints(self) -> AnchorHints: ... + def get_anchor_rect(self) -> Rectangle: ... + def get_offset(self) -> Tuple[int, int]: ... + def get_rect_anchor(self) -> Gravity: ... + def get_shadow_width(self) -> Tuple[int, int, int, int]: ... + def get_surface_anchor(self) -> Gravity: ... + @classmethod + def new( + cls, anchor_rect: Rectangle, rect_anchor: Gravity, surface_anchor: Gravity + ) -> PopupLayout: ... + def ref(self) -> PopupLayout: ... + def set_anchor_hints(self, anchor_hints: AnchorHints) -> None: ... + def set_anchor_rect(self, anchor_rect: Rectangle) -> None: ... + def set_offset(self, dx: int, dy: int) -> None: ... + def set_rect_anchor(self, anchor: Gravity) -> None: ... + def set_shadow_width( + self, left: int, right: int, top: int, bottom: int + ) -> None: ... + def set_surface_anchor(self, anchor: Gravity) -> None: ... + def unref(self) -> None: ... + +class ProximityEvent(Event): ... + +class RGBA(GObject.GBoxed): + """ + :Constructors: + + :: + + RGBA() + """ + + red: float = ... + green: float = ... + blue: float = ... + alpha: float = ... + def copy(self) -> RGBA: ... + def equal(self, p2: RGBA) -> bool: ... + def free(self) -> None: ... + def hash(self) -> int: ... + def is_clear(self) -> bool: ... + def is_opaque(self) -> bool: ... + def parse(self, spec: str) -> bool: ... + def to_string(self) -> str: ... + +class Rectangle(GObject.GBoxed): + """ + :Constructors: + + :: + + Rectangle() + """ + + x: int = ... + y: int = ... + width: int = ... + height: int = ... + def contains_point(self, x: int, y: int) -> bool: ... + def equal(self, rect2: Rectangle) -> bool: ... + def intersect(self, src2: Rectangle) -> Tuple[bool, Rectangle]: ... + def union(self, src2: Rectangle) -> Rectangle: ... + +class ScrollEvent(Event): + """ + :Constructors: + + :: + + ScrollEvent(**properties) + """ + + def get_deltas(self) -> Tuple[float, float]: ... + def get_direction(self) -> ScrollDirection: ... + def get_unit(self) -> ScrollUnit: ... + def is_stop(self) -> bool: ... + +class Seat(GObject.Object): + """ + :Constructors: + + :: + + Seat(**properties) + + Object GdkSeat + + Signals from GdkSeat: + device-added (GdkDevice) + device-removed (GdkDevice) + tool-added (GdkDeviceTool) + tool-removed (GdkDeviceTool) + + Properties from GdkSeat: + display -> GdkDisplay: display + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Display + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, display: Display = ...): ... + def get_capabilities(self) -> SeatCapabilities: ... + def get_devices(self, capabilities: SeatCapabilities) -> list[Device]: ... + def get_display(self) -> Display: ... + def get_keyboard(self) -> Optional[Device]: ... + def get_pointer(self) -> Optional[Device]: ... + def get_tools(self) -> list[DeviceTool]: ... + +class Snapshot(GObject.Object): ... +class SnapshotClass(GObject.GPointer): ... + +class Surface(GObject.Object): + """ + :Constructors: + + :: + + Surface(**properties) + new_popup(parent:Gdk.Surface, autohide:bool) -> Gdk.Surface + new_toplevel(display:Gdk.Display) -> Gdk.Surface + + Object GdkSurface + + Signals from GdkSurface: + layout (gint, gint) + render (CairoRegion) -> gboolean + event (gpointer) -> gboolean + enter-monitor (GdkMonitor) + leave-monitor (GdkMonitor) + + Properties from GdkSurface: + cursor -> GdkCursor: cursor + display -> GdkDisplay: display + frame-clock -> GdkFrameClock: frame-clock + mapped -> gboolean: mapped + width -> gint: width + height -> gint: height + scale-factor -> gint: scale-factor + + Signals from GObject: + notify (GParam) + """ + + class Props: + cursor: Optional[Cursor] + display: Display + frame_clock: FrameClock + height: int + mapped: bool + scale_factor: int + width: int + + props: Props = ... + def __init__( + self, + cursor: Optional[Cursor] = ..., + display: Display = ..., + frame_clock: FrameClock = ..., + ): ... + def beep(self) -> None: ... + def create_cairo_context(self) -> CairoContext: ... + def create_gl_context(self) -> GLContext: ... + def create_similar_surface( + self, content: cairo.Content, width: int, height: int + ) -> cairo.Surface: ... + def create_vulkan_context(self) -> VulkanContext: ... + def destroy(self) -> None: ... + def get_cursor(self) -> Optional[Cursor]: ... + def get_device_cursor(self, device: Device) -> Optional[Cursor]: ... + def get_device_position( + self, device: Device + ) -> Tuple[bool, float, float, ModifierType]: ... + def get_display(self) -> Display: ... + def get_frame_clock(self) -> FrameClock: ... + def get_height(self) -> int: ... + def get_mapped(self) -> bool: ... + def get_scale_factor(self) -> int: ... + def get_width(self) -> int: ... + def hide(self) -> None: ... + def is_destroyed(self) -> bool: ... + @classmethod + def new_popup(cls, parent: Surface, autohide: bool) -> Surface: ... + @classmethod + def new_toplevel(cls, display: Display) -> Surface: ... + def queue_render(self) -> None: ... + def request_layout(self) -> None: ... + def set_cursor(self, cursor: Optional[Cursor] = None) -> None: ... + def set_device_cursor(self, device: Device, cursor: Cursor) -> None: ... + def set_input_region(self, region: cairo.Region) -> None: ... + def set_opaque_region(self, region: Optional[cairo.Region] = None) -> None: ... + def translate_coordinates(self, to: Surface) -> Tuple[bool, float, float]: ... + +class SurfaceClass(GObject.GPointer): ... + +class Texture(GObject.Object, Paintable, Gio.Icon, Gio.LoadableIcon): + """ + :Constructors: + + :: + + Texture(**properties) + new_for_pixbuf(pixbuf:GdkPixbuf.Pixbuf) -> Gdk.Texture + new_from_bytes(bytes:GLib.Bytes) -> Gdk.Texture + new_from_file(file:Gio.File) -> Gdk.Texture + new_from_filename(path:str) -> Gdk.Texture + new_from_resource(resource_path:str) -> Gdk.Texture + + Object GdkTexture + + Properties from GdkTexture: + width -> gint: width + height -> gint: height + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Signals from GObject: + notify (GParam) + """ + + class Props: + height: int + width: int + + props: Props = ... + def __init__(self, height: int = ..., width: int = ...): ... + def download(self, data: Sequence[int], stride: int) -> None: ... + def get_format(self) -> MemoryFormat: ... + def get_height(self) -> int: ... + def get_width(self) -> int: ... + @classmethod + def new_for_pixbuf(cls, pixbuf: GdkPixbuf.Pixbuf) -> Texture: ... + @classmethod + def new_from_bytes(cls, bytes: GLib.Bytes) -> Texture: ... + @classmethod + def new_from_file(cls, file: Gio.File) -> Texture: ... + @classmethod + def new_from_filename(cls, path: str) -> Texture: ... + @classmethod + def new_from_resource(cls, resource_path: str) -> Texture: ... + def save_to_png(self, filename: str) -> bool: ... + def save_to_png_bytes(self) -> GLib.Bytes: ... + def save_to_tiff(self, filename: str) -> bool: ... + def save_to_tiff_bytes(self) -> GLib.Bytes: ... + +class TextureClass(GObject.GPointer): ... + +class TextureDownloader(GObject.GBoxed): + """ + :Constructors: + + :: + + new(texture:Gdk.Texture) -> Gdk.TextureDownloader + """ + + def copy(self) -> TextureDownloader: ... + def download_bytes(self) -> Tuple[GLib.Bytes, int]: ... + def download_into(self, data: Sequence[int], stride: int) -> None: ... + def free(self) -> None: ... + def get_format(self) -> MemoryFormat: ... + def get_texture(self) -> Texture: ... + @classmethod + def new(cls, texture: Texture) -> TextureDownloader: ... + def set_format(self, format: MemoryFormat) -> None: ... + def set_texture(self, texture: Texture) -> None: ... + +class TimeCoord(GObject.GPointer): + """ + :Constructors: + + :: + + TimeCoord() + """ + + time: int = ... + flags: AxisFlags = ... + axes: list[float] = ... + +class Toplevel(GObject.GInterface): + """ + Interface GdkToplevel + + Signals from GObject: + notify (GParam) + """ + + def begin_move( + self, device: Device, button: int, x: float, y: float, timestamp: int + ) -> None: ... + def begin_resize( + self, + edge: SurfaceEdge, + device: Optional[Device], + button: int, + x: float, + y: float, + timestamp: int, + ) -> None: ... + def focus(self, timestamp: int) -> None: ... + def get_state(self) -> ToplevelState: ... + def inhibit_system_shortcuts(self, event: Optional[Event] = None) -> None: ... + def lower(self) -> bool: ... + def minimize(self) -> bool: ... + def present(self, layout: ToplevelLayout) -> None: ... + def restore_system_shortcuts(self) -> None: ... + def set_decorated(self, decorated: bool) -> None: ... + def set_deletable(self, deletable: bool) -> None: ... + def set_icon_list(self, surfaces: list[Texture]) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def set_startup_id(self, startup_id: str) -> None: ... + def set_title(self, title: str) -> None: ... + def set_transient_for(self, parent: Surface) -> None: ... + def show_window_menu(self, event: Event) -> bool: ... + def supports_edge_constraints(self) -> bool: ... + def titlebar_gesture(self, gesture: TitlebarGesture) -> bool: ... + +class ToplevelInterface(GObject.GPointer): ... + +class ToplevelLayout(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gdk.ToplevelLayout + """ + + def copy(self) -> ToplevelLayout: ... + def equal(self, other: ToplevelLayout) -> bool: ... + def get_fullscreen(self) -> Tuple[bool, bool]: ... + def get_fullscreen_monitor(self) -> Optional[Monitor]: ... + def get_maximized(self) -> Tuple[bool, bool]: ... + def get_resizable(self) -> bool: ... + @classmethod + def new(cls) -> ToplevelLayout: ... + def ref(self) -> ToplevelLayout: ... + def set_fullscreen( + self, fullscreen: bool, monitor: Optional[Monitor] = None + ) -> None: ... + def set_maximized(self, maximized: bool) -> None: ... + def set_resizable(self, resizable: bool) -> None: ... + def unref(self) -> None: ... + +class ToplevelSize(GObject.GPointer): + def get_bounds(self) -> Tuple[int, int]: ... + def set_min_size(self, min_width: int, min_height: int) -> None: ... + def set_shadow_width( + self, left: int, right: int, top: int, bottom: int + ) -> None: ... + def set_size(self, width: int, height: int) -> None: ... + +class TouchEvent(Event): + """ + :Constructors: + + :: + + TouchEvent(**properties) + """ + + def get_emulating_pointer(self) -> bool: ... + +class TouchpadEvent(Event): + """ + :Constructors: + + :: + + TouchpadEvent(**properties) + """ + + def get_deltas(self) -> Tuple[float, float]: ... + def get_gesture_phase(self) -> TouchpadGesturePhase: ... + def get_n_fingers(self) -> int: ... + def get_pinch_angle_delta(self) -> float: ... + def get_pinch_scale(self) -> float: ... + +class VulkanContext(DrawContext, Gio.Initable): + """ + :Constructors: + + :: + + VulkanContext(**properties) + + Object GdkVulkanContext + + Signals from GdkVulkanContext: + images-updated () + + Properties from GdkDrawContext: + display -> GdkDisplay: display + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Optional[Display] + surface: Optional[Surface] + + props: Props = ... + def __init__(self, display: Display = ..., surface: Surface = ...): ... + +class AnchorHints(GObject.GFlags): + FLIP = 3 + FLIP_X = 1 + FLIP_Y = 2 + RESIZE = 48 + RESIZE_X = 16 + RESIZE_Y = 32 + SLIDE = 12 + SLIDE_X = 4 + SLIDE_Y = 8 + +class AxisFlags(GObject.GFlags): + DELTA_X = 8 + DELTA_Y = 16 + DISTANCE = 512 + PRESSURE = 32 + ROTATION = 1024 + SLIDER = 2048 + WHEEL = 256 + X = 2 + XTILT = 64 + Y = 4 + YTILT = 128 + +class DragAction(GObject.GFlags): + ASK = 8 + COPY = 1 + LINK = 4 + MOVE = 2 + @staticmethod + def is_unique(action: DragAction) -> bool: ... + +class FrameClockPhase(GObject.GFlags): + AFTER_PAINT = 64 + BEFORE_PAINT = 2 + FLUSH_EVENTS = 1 + LAYOUT = 8 + NONE = 0 + PAINT = 16 + RESUME_EVENTS = 32 + UPDATE = 4 + +class GLAPI(GObject.GFlags): + GL = 1 + GLES = 2 + +class ModifierType(GObject.GFlags): + ALT_MASK = 8 + BUTTON1_MASK = 256 + BUTTON2_MASK = 512 + BUTTON3_MASK = 1024 + BUTTON4_MASK = 2048 + BUTTON5_MASK = 4096 + CONTROL_MASK = 4 + HYPER_MASK = 134217728 + LOCK_MASK = 2 + META_MASK = 268435456 + SHIFT_MASK = 1 + SUPER_MASK = 67108864 + +class PaintableFlags(GObject.GFlags): + CONTENTS = 2 + SIZE = 1 + +class SeatCapabilities(GObject.GFlags): + ALL = 15 + ALL_POINTING = 7 + KEYBOARD = 8 + NONE = 0 + POINTER = 1 + TABLET_PAD = 16 + TABLET_STYLUS = 4 + TOUCH = 2 + +class ToplevelState(GObject.GFlags): + ABOVE = 16 + BELOW = 32 + BOTTOM_RESIZABLE = 8192 + BOTTOM_TILED = 4096 + FOCUSED = 64 + FULLSCREEN = 8 + LEFT_RESIZABLE = 32768 + LEFT_TILED = 16384 + MAXIMIZED = 2 + MINIMIZED = 1 + RIGHT_RESIZABLE = 2048 + RIGHT_TILED = 1024 + STICKY = 4 + TILED = 128 + TOP_RESIZABLE = 512 + TOP_TILED = 256 + +class AxisUse(GObject.GEnum): + DELTA_X = 3 + DELTA_Y = 4 + DISTANCE = 9 + IGNORE = 0 + LAST = 12 + PRESSURE = 5 + ROTATION = 10 + SLIDER = 11 + WHEEL = 8 + X = 1 + XTILT = 6 + Y = 2 + YTILT = 7 + +class CrossingMode(GObject.GEnum): + DEVICE_SWITCH = 8 + GRAB = 1 + GTK_GRAB = 3 + GTK_UNGRAB = 4 + NORMAL = 0 + STATE_CHANGED = 5 + TOUCH_BEGIN = 6 + TOUCH_END = 7 + UNGRAB = 2 + +class DevicePadFeature(GObject.GEnum): + BUTTON = 0 + RING = 1 + STRIP = 2 + +class DeviceToolType(GObject.GEnum): + AIRBRUSH = 5 + BRUSH = 3 + ERASER = 2 + LENS = 7 + MOUSE = 6 + PEN = 1 + PENCIL = 4 + UNKNOWN = 0 + +class DragCancelReason(GObject.GEnum): + ERROR = 2 + NO_TARGET = 0 + USER_CANCELLED = 1 + +class EventType(GObject.GEnum): + BUTTON_PRESS = 2 + BUTTON_RELEASE = 3 + DELETE = 0 + DRAG_ENTER = 11 + DRAG_LEAVE = 12 + DRAG_MOTION = 13 + DROP_START = 14 + ENTER_NOTIFY = 6 + EVENT_LAST = 29 + FOCUS_CHANGE = 8 + GRAB_BROKEN = 16 + KEY_PRESS = 4 + KEY_RELEASE = 5 + LEAVE_NOTIFY = 7 + MOTION_NOTIFY = 1 + PAD_BUTTON_PRESS = 23 + PAD_BUTTON_RELEASE = 24 + PAD_GROUP_MODE = 27 + PAD_RING = 25 + PAD_STRIP = 26 + PROXIMITY_IN = 9 + PROXIMITY_OUT = 10 + SCROLL = 15 + TOUCHPAD_HOLD = 28 + TOUCHPAD_PINCH = 22 + TOUCHPAD_SWIPE = 21 + TOUCH_BEGIN = 17 + TOUCH_CANCEL = 20 + TOUCH_END = 19 + TOUCH_UPDATE = 18 + +class FullscreenMode(GObject.GEnum): + ALL_MONITORS = 1 + CURRENT_MONITOR = 0 + +class GLError(GObject.GEnum): + COMPILATION_FAILED = 3 + LINK_FAILED = 4 + NOT_AVAILABLE = 0 + UNSUPPORTED_FORMAT = 1 + UNSUPPORTED_PROFILE = 2 + @staticmethod + def quark() -> int: ... + +class Gravity(GObject.GEnum): + CENTER = 5 + EAST = 6 + NORTH = 2 + NORTH_EAST = 3 + NORTH_WEST = 1 + SOUTH = 8 + SOUTH_EAST = 9 + SOUTH_WEST = 7 + STATIC = 10 + WEST = 4 + +class InputSource(GObject.GEnum): + KEYBOARD = 2 + MOUSE = 0 + PEN = 1 + TABLET_PAD = 6 + TOUCHPAD = 4 + TOUCHSCREEN = 3 + TRACKPOINT = 5 + +class KeyMatch(GObject.GEnum): + EXACT = 2 + NONE = 0 + PARTIAL = 1 + +class MemoryFormat(GObject.GEnum): + A8B8G8R8 = 6 + A8R8G8B8 = 4 + A8R8G8B8_PREMULTIPLIED = 1 + B8G8R8 = 8 + B8G8R8A8 = 3 + B8G8R8A8_PREMULTIPLIED = 0 + N_FORMATS = 18 + R16G16B16 = 9 + R16G16B16A16 = 11 + R16G16B16A16_FLOAT = 14 + R16G16B16A16_FLOAT_PREMULTIPLIED = 13 + R16G16B16A16_PREMULTIPLIED = 10 + R16G16B16_FLOAT = 12 + R32G32B32A32_FLOAT = 17 + R32G32B32A32_FLOAT_PREMULTIPLIED = 16 + R32G32B32_FLOAT = 15 + R8G8B8 = 7 + R8G8B8A8 = 5 + R8G8B8A8_PREMULTIPLIED = 2 + +class NotifyType(GObject.GEnum): + ANCESTOR = 0 + INFERIOR = 2 + NONLINEAR = 3 + NONLINEAR_VIRTUAL = 4 + UNKNOWN = 5 + VIRTUAL = 1 + +class ScrollDirection(GObject.GEnum): + DOWN = 1 + LEFT = 2 + RIGHT = 3 + SMOOTH = 4 + UP = 0 + +class ScrollUnit(GObject.GEnum): + SURFACE = 1 + WHEEL = 0 + +class SubpixelLayout(GObject.GEnum): + HORIZONTAL_BGR = 3 + HORIZONTAL_RGB = 2 + NONE = 1 + UNKNOWN = 0 + VERTICAL_BGR = 5 + VERTICAL_RGB = 4 + +class SurfaceEdge(GObject.GEnum): + EAST = 4 + NORTH = 1 + NORTH_EAST = 2 + NORTH_WEST = 0 + SOUTH = 6 + SOUTH_EAST = 7 + SOUTH_WEST = 5 + WEST = 3 + +class TextureError(GObject.GEnum): + CORRUPT_IMAGE = 1 + TOO_LARGE = 0 + UNSUPPORTED_CONTENT = 2 + UNSUPPORTED_FORMAT = 3 + @staticmethod + def quark() -> int: ... + +class TitlebarGesture(GObject.GEnum): + DOUBLE_CLICK = 1 + MIDDLE_CLICK = 3 + RIGHT_CLICK = 2 + +class TouchpadGesturePhase(GObject.GEnum): + BEGIN = 0 + CANCEL = 3 + END = 2 + UPDATE = 1 + +class VulkanError(GObject.GEnum): + NOT_AVAILABLE = 1 + UNSUPPORTED = 0 + @staticmethod + def quark() -> int: ... diff --git a/src/gi-stubs/repository/Gtk.pyi b/src/gi-stubs/repository/Gtk.pyi new file mode 100644 index 00000000..f42741e5 --- /dev/null +++ b/src/gi-stubs/repository/Gtk.pyi @@ -0,0 +1,34909 @@ +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar + +import cairo +from gi.repository import Gdk +from gi.repository import GdkPixbuf +from gi.repository import Gio +from gi.repository import GLib +from gi.repository import GObject +from gi.repository import Graphene +from gi.repository import Gsk +from gi.repository import Pango + +_SomeSurface = TypeVar("_SomeSurface", bound=cairo.Surface) + +ACCESSIBLE_ATTRIBUTE_BACKGROUND: str = "bg-color" +ACCESSIBLE_ATTRIBUTE_FAMILY: str = "family-name" +ACCESSIBLE_ATTRIBUTE_FOREGROUND: str = "fg-color" +ACCESSIBLE_ATTRIBUTE_OVERLINE: str = "overline" +ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE: str = "none" +ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE: str = "single" +ACCESSIBLE_ATTRIBUTE_SIZE: str = "size" +ACCESSIBLE_ATTRIBUTE_STRETCH: str = "stretch" +ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED: str = "condensed" +ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED: str = "expanded" +ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED: str = "extra_condensed" +ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED: str = "extra_expanded" +ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL: str = "normal" +ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED: str = "semi_condensed" +ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED: str = "semi_expanded" +ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED: str = "ultra_condensed" +ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED: str = "ultra_expanded" +ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH: str = "strikethrough" +ACCESSIBLE_ATTRIBUTE_STYLE: str = "style" +ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC: str = "italic" +ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL: str = "normal" +ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE: str = "oblique" +ACCESSIBLE_ATTRIBUTE_UNDERLINE: str = "underline" +ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE: str = "double" +ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR: str = "error" +ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE: str = "none" +ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE: str = "single" +ACCESSIBLE_ATTRIBUTE_VARIANT: str = "variant" +ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS: str = "all-petite-caps" +ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS: str = "all-small-caps" +ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS: str = "petite-caps" +ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS: str = "small-caps" +ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS: str = "title-caps" +ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE: str = "unicase" +ACCESSIBLE_ATTRIBUTE_WEIGHT: str = "weight" +ACCESSIBLE_VALUE_UNDEFINED: int = -1 +BINARY_AGE: int = 1401 +IM_MODULE_EXTENSION_POINT_NAME: str = "gtk-im-module" +INPUT_ERROR: int = -1 +INTERFACE_AGE: int = 1 +INVALID_LIST_POSITION: int = 4294967295 +LEVEL_BAR_OFFSET_FULL: str = "full" +LEVEL_BAR_OFFSET_HIGH: str = "high" +LEVEL_BAR_OFFSET_LOW: str = "low" +MAJOR_VERSION: int = 4 +MAX_COMPOSE_LEN: int = 7 +MEDIA_FILE_EXTENSION_POINT_NAME: str = "gtk-media-file" +MICRO_VERSION: int = 1 +MINOR_VERSION: int = 14 +PAPER_NAME_A3: str = "iso_a3" +PAPER_NAME_A4: str = "iso_a4" +PAPER_NAME_A5: str = "iso_a5" +PAPER_NAME_B5: str = "iso_b5" +PAPER_NAME_EXECUTIVE: str = "na_executive" +PAPER_NAME_LEGAL: str = "na_legal" +PAPER_NAME_LETTER: str = "na_letter" +PRINT_SETTINGS_COLLATE: str = "collate" +PRINT_SETTINGS_DEFAULT_SOURCE: str = "default-source" +PRINT_SETTINGS_DITHER: str = "dither" +PRINT_SETTINGS_DUPLEX: str = "duplex" +PRINT_SETTINGS_FINISHINGS: str = "finishings" +PRINT_SETTINGS_MEDIA_TYPE: str = "media-type" +PRINT_SETTINGS_NUMBER_UP: str = "number-up" +PRINT_SETTINGS_NUMBER_UP_LAYOUT: str = "number-up-layout" +PRINT_SETTINGS_N_COPIES: str = "n-copies" +PRINT_SETTINGS_ORIENTATION: str = "orientation" +PRINT_SETTINGS_OUTPUT_BASENAME: str = "output-basename" +PRINT_SETTINGS_OUTPUT_BIN: str = "output-bin" +PRINT_SETTINGS_OUTPUT_DIR: str = "output-dir" +PRINT_SETTINGS_OUTPUT_FILE_FORMAT: str = "output-file-format" +PRINT_SETTINGS_OUTPUT_URI: str = "output-uri" +PRINT_SETTINGS_PAGE_RANGES: str = "page-ranges" +PRINT_SETTINGS_PAGE_SET: str = "page-set" +PRINT_SETTINGS_PAPER_FORMAT: str = "paper-format" +PRINT_SETTINGS_PAPER_HEIGHT: str = "paper-height" +PRINT_SETTINGS_PAPER_WIDTH: str = "paper-width" +PRINT_SETTINGS_PRINTER: str = "printer" +PRINT_SETTINGS_PRINTER_LPI: str = "printer-lpi" +PRINT_SETTINGS_PRINT_PAGES: str = "print-pages" +PRINT_SETTINGS_QUALITY: str = "quality" +PRINT_SETTINGS_RESOLUTION: str = "resolution" +PRINT_SETTINGS_RESOLUTION_X: str = "resolution-x" +PRINT_SETTINGS_RESOLUTION_Y: str = "resolution-y" +PRINT_SETTINGS_REVERSE: str = "reverse" +PRINT_SETTINGS_SCALE: str = "scale" +PRINT_SETTINGS_USE_COLOR: str = "use-color" +PRINT_SETTINGS_WIN32_DRIVER_EXTRA: str = "win32-driver-extra" +PRINT_SETTINGS_WIN32_DRIVER_VERSION: str = "win32-driver-version" +PRIORITY_RESIZE: int = 110 +STYLE_PROVIDER_PRIORITY_APPLICATION: int = 600 +STYLE_PROVIDER_PRIORITY_FALLBACK: int = 1 +STYLE_PROVIDER_PRIORITY_SETTINGS: int = 400 +STYLE_PROVIDER_PRIORITY_THEME: int = 200 +STYLE_PROVIDER_PRIORITY_USER: int = 800 +TEXT_VIEW_PRIORITY_VALIDATE: int = 125 +TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID: int = -1 +TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID: int = -2 +_introspection_module = ... # FIXME Constant +_lock = ... # FIXME Constant +_namespace: str = "Gtk" +_overrides_module = ... # FIXME Constant +_version: str = "4.0" + +def accelerator_get_default_mod_mask() -> Gdk.ModifierType: ... +def accelerator_get_label( + accelerator_key: int, accelerator_mods: Gdk.ModifierType +) -> str: ... +def accelerator_get_label_with_keycode( + display: Optional[Gdk.Display], + accelerator_key: int, + keycode: int, + accelerator_mods: Gdk.ModifierType, +) -> str: ... +def accelerator_name( + accelerator_key: int, accelerator_mods: Gdk.ModifierType +) -> str: ... +def accelerator_name_with_keycode( + display: Optional[Gdk.Display], + accelerator_key: int, + keycode: int, + accelerator_mods: Gdk.ModifierType, +) -> str: ... +def accelerator_parse(accelerator: str) -> Tuple[bool, int, Gdk.ModifierType]: ... +def accelerator_parse_with_keycode( + accelerator: str, display: Optional[Gdk.Display] = None +) -> Tuple[bool, int, list[int], Gdk.ModifierType]: ... +def accelerator_valid(keyval: int, modifiers: Gdk.ModifierType) -> bool: ... +def accessible_property_init_value( + property: AccessibleProperty, value: Any +) -> None: ... +def accessible_relation_init_value( + relation: AccessibleRelation, value: Any +) -> None: ... +def accessible_state_init_value(state: AccessibleState, value: Any) -> None: ... +def bitset_iter_init_at(set: Bitset, target: int) -> Tuple[bool, BitsetIter, int]: ... +def bitset_iter_init_first(set: Bitset) -> Tuple[bool, BitsetIter, int]: ... +def bitset_iter_init_last(set: Bitset) -> Tuple[bool, BitsetIter, int]: ... +def builder_error_quark() -> int: ... +def check_version( + required_major: int, required_minor: int, required_micro: int +) -> Optional[str]: ... +def constraint_vfl_parser_error_quark() -> int: ... +def css_parser_error_quark() -> int: ... +def css_parser_warning_quark() -> int: ... +def dialog_error_quark() -> int: ... +def disable_setlocale() -> None: ... +def distribute_natural_allocation( + extra_space: int, sizes: Sequence[RequestedSize] +) -> int: ... +def editable_delegate_get_property( + object: GObject.Object, prop_id: int, value: Any, pspec: GObject.ParamSpec +) -> bool: ... +def editable_delegate_set_property( + object: GObject.Object, prop_id: int, value: Any, pspec: GObject.ParamSpec +) -> bool: ... +def editable_install_properties( + object_class: GObject.ObjectClass, first_prop: int +) -> int: ... +def enumerate_printers(func: Callable[..., bool], wait: bool, *data: Any) -> None: ... +def file_chooser_error_quark() -> int: ... +def get_binary_age() -> int: ... +def get_debug_flags() -> DebugFlags: ... +def get_default_language() -> Pango.Language: ... +def get_interface_age() -> int: ... +def get_locale_direction() -> TextDirection: ... +def get_major_version() -> int: ... +def get_micro_version() -> int: ... +def get_minor_version() -> int: ... +def hsv_to_rgb(h: float, s: float, v: float) -> Tuple[float, float, float]: ... +def icon_theme_error_quark() -> int: ... +def init() -> None: ... +def init_check() -> bool: ... +def is_initialized() -> bool: ... +def native_get_for_surface(surface: Gdk.Surface) -> Optional[Native]: ... +def paper_size_get_default() -> str: ... +def paper_size_get_paper_sizes(include_custom: bool) -> list[PaperSize]: ... +def param_spec_expression( + name: str, nick: str, blurb: str, flags: GObject.ParamFlags +) -> GObject.ParamSpec: ... +def print_error_quark() -> int: ... +def print_run_page_setup_dialog( + parent: Optional[Window], page_setup: Optional[PageSetup], settings: PrintSettings +) -> PageSetup: ... +def print_run_page_setup_dialog_async( + parent: Optional[Window], + page_setup: Optional[PageSetup], + settings: PrintSettings, + done_cb: Callable[..., None], + *data: Any, +) -> None: ... +def recent_manager_error_quark() -> int: ... +def render_activity( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def render_arrow( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + angle: float, + x: float, + y: float, + size: float, +) -> None: ... +def render_background( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def render_check( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def render_expander( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def render_focus( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def render_frame( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def render_handle( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def render_icon( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + texture: Gdk.Texture, + x: float, + y: float, +) -> None: ... +def render_layout( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + layout: Pango.Layout, +) -> None: ... +def render_line( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x0: float, + y0: float, + x1: float, + y1: float, +) -> None: ... +def render_option( + context: StyleContext, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + width: float, + height: float, +) -> None: ... +def rgb_to_hsv(r: float, g: float, b: float) -> Tuple[float, float, float]: ... +def set_debug_flags(flags: DebugFlags) -> None: ... +def show_uri(parent: Optional[Window], uri: str, timestamp: int) -> None: ... +def show_uri_full( + parent: Optional[Window], + uri: str, + timestamp: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, +) -> None: ... +def show_uri_full_finish(parent: Window, result: Gio.AsyncResult) -> bool: ... +def test_accessible_assertion_message_role( + domain: str, + file: str, + line: int, + func: str, + expr: str, + accessible: Accessible, + expected_role: AccessibleRole, + actual_role: AccessibleRole, +) -> None: ... +def test_accessible_has_property( + accessible: Accessible, property: AccessibleProperty +) -> bool: ... +def test_accessible_has_relation( + accessible: Accessible, relation: AccessibleRelation +) -> bool: ... +def test_accessible_has_role(accessible: Accessible, role: AccessibleRole) -> bool: ... +def test_accessible_has_state( + accessible: Accessible, state: AccessibleState +) -> bool: ... +def test_list_all_types() -> list[Type]: ... +def test_register_all_types() -> None: ... +def test_widget_wait_for_draw(widget: Widget) -> None: ... +def tree_create_row_drag_content( + tree_model: TreeModel, path: TreePath +) -> Gdk.ContentProvider: ... +def tree_get_row_drag_data(value: Any) -> Tuple[bool, TreeModel, TreePath]: ... +def tree_row_reference_deleted(proxy: GObject.Object, path: TreePath) -> None: ... +def tree_row_reference_inserted(proxy: GObject.Object, path: TreePath) -> None: ... +def value_dup_expression(value: Any) -> Optional[Expression]: ... +def value_get_expression(value: Any) -> Optional[Expression]: ... +def value_set_expression(value: Any, expression: Expression) -> None: ... +def value_take_expression( + value: Any, expression: Optional[Expression] = None +) -> None: ... + +class ATContext(GObject.Object): + """ + :Constructors: + + :: + + ATContext(**properties) + create(accessible_role:Gtk.AccessibleRole, accessible:Gtk.Accessible, display:Gdk.Display) -> Gtk.ATContext or None + + Object GtkATContext + + Signals from GtkATContext: + state-change () + + Properties from GtkATContext: + accessible-role -> GtkAccessibleRole: accessible-role + accessible -> GtkAccessible: accessible + display -> GdkDisplay: display + + Signals from GObject: + notify (GParam) + """ + + class Props: + accessible: Accessible + accessible_role: AccessibleRole + display: Gdk.Display + + props: Props = ... + def __init__( + self, + accessible: Accessible = ..., + accessible_role: AccessibleRole = ..., + display: Gdk.Display = ..., + ): ... + @classmethod + def create( + cls, + accessible_role: AccessibleRole, + accessible: Accessible, + display: Gdk.Display, + ) -> Optional[ATContext]: ... + def get_accessible(self) -> Accessible: ... + def get_accessible_role(self) -> AccessibleRole: ... + +class ATContextClass(GObject.GPointer): ... + +class AboutDialog( + Window, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + AboutDialog(**properties) + new() -> Gtk.Widget + + Object GtkAboutDialog + + Signals from GtkAboutDialog: + activate-link (gchararray) -> gboolean + + Properties from GtkAboutDialog: + program-name -> gchararray: program-name + version -> gchararray: version + copyright -> gchararray: copyright + comments -> gchararray: comments + website -> gchararray: website + website-label -> gchararray: website-label + license -> gchararray: license + system-information -> gchararray: system-information + authors -> GStrv: authors + documenters -> GStrv: documenters + translator-credits -> gchararray: translator-credits + artists -> GStrv: artists + logo -> GdkPaintable: logo + logo-icon-name -> gchararray: logo-icon-name + wrap-license -> gboolean: wrap-license + license-type -> GtkLicense: license-type + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + artists: list[str] + authors: list[str] + comments: Optional[str] + copyright: Optional[str] + documenters: list[str] + license: Optional[str] + license_type: License + logo: Optional[Gdk.Paintable] + logo_icon_name: Optional[str] + program_name: Optional[str] + system_information: Optional[str] + translator_credits: Optional[str] + version: Optional[str] + website: Optional[str] + website_label: Optional[str] + wrap_license: bool + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + def __init__( + self, + artists: Sequence[str] = ..., + authors: Sequence[str] = ..., + comments: Optional[str] = ..., + copyright: Optional[str] = ..., + documenters: Sequence[str] = ..., + license: Optional[str] = ..., + license_type: License = ..., + logo: Optional[Gdk.Paintable] = ..., + logo_icon_name: Optional[str] = ..., + program_name: Optional[str] = ..., + system_information: Optional[str] = ..., + translator_credits: Optional[str] = ..., + version: Optional[str] = ..., + website: Optional[str] = ..., + website_label: str = ..., + wrap_license: bool = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_credit_section(self, section_name: str, people: Sequence[str]) -> None: ... + def get_artists(self) -> list[str]: ... + def get_authors(self) -> list[str]: ... + def get_comments(self) -> Optional[str]: ... + def get_copyright(self) -> Optional[str]: ... + def get_documenters(self) -> list[str]: ... + def get_license(self) -> Optional[str]: ... + def get_license_type(self) -> License: ... + def get_logo(self) -> Optional[Gdk.Paintable]: ... + def get_logo_icon_name(self) -> Optional[str]: ... + def get_program_name(self) -> Optional[str]: ... + def get_system_information(self) -> Optional[str]: ... + def get_translator_credits(self) -> Optional[str]: ... + def get_version(self) -> Optional[str]: ... + def get_website(self) -> Optional[str]: ... + def get_website_label(self) -> Optional[str]: ... + def get_wrap_license(self) -> bool: ... + @classmethod + def new(cls) -> AboutDialog: ... + def set_artists(self, artists: Sequence[str]) -> None: ... + def set_authors(self, authors: Sequence[str]) -> None: ... + def set_comments(self, comments: Optional[str] = None) -> None: ... + def set_copyright(self, copyright: Optional[str] = None) -> None: ... + def set_documenters(self, documenters: Sequence[str]) -> None: ... + def set_license(self, license: Optional[str] = None) -> None: ... + def set_license_type(self, license_type: License) -> None: ... + def set_logo(self, logo: Optional[Gdk.Paintable] = None) -> None: ... + def set_logo_icon_name(self, icon_name: Optional[str] = None) -> None: ... + def set_program_name(self, name: Optional[str] = None) -> None: ... + def set_system_information( + self, system_information: Optional[str] = None + ) -> None: ... + def set_translator_credits( + self, translator_credits: Optional[str] = None + ) -> None: ... + def set_version(self, version: Optional[str] = None) -> None: ... + def set_website(self, website: Optional[str] = None) -> None: ... + def set_website_label(self, website_label: str) -> None: ... + def set_wrap_license(self, wrap_license: bool) -> None: ... + +class Accessible(GObject.GInterface): + """ + Interface GtkAccessible + + Signals from GObject: + notify (GParam) + """ + + def announce( + self, message: str, priority: AccessibleAnnouncementPriority + ) -> None: ... + def get_accessible_parent(self) -> Optional[Accessible]: ... + def get_accessible_role(self) -> AccessibleRole: ... + def get_at_context(self) -> ATContext: ... + def get_bounds(self) -> Tuple[bool, int, int, int, int]: ... + def get_first_accessible_child(self) -> Optional[Accessible]: ... + def get_next_accessible_sibling(self) -> Optional[Accessible]: ... + def get_platform_state(self, state: AccessiblePlatformState) -> bool: ... + def reset_property(self, property: AccessibleProperty) -> None: ... + def reset_relation(self, relation: AccessibleRelation) -> None: ... + def reset_state(self, state: AccessibleState) -> None: ... + def set_accessible_parent( + self, + parent: Optional[Accessible] = None, + next_sibling: Optional[Accessible] = None, + ) -> None: ... + def update_next_accessible_sibling( + self, new_sibling: Optional[Accessible] = None + ) -> None: ... + def update_property( + self, properties: Sequence[AccessibleProperty], values: Sequence[Any] + ) -> None: ... + def update_relation( + self, relations: Sequence[AccessibleRelation], values: Sequence[Any] + ) -> None: ... + def update_state( + self, states: Sequence[AccessibleState], values: Sequence[Any] + ) -> None: ... + +class AccessibleInterface(GObject.GPointer): + """ + :Constructors: + + :: + + AccessibleInterface() + """ + + g_iface: GObject.TypeInterface = ... + get_at_context: Callable[[Accessible], Optional[ATContext]] = ... + get_platform_state: Callable[[Accessible, AccessiblePlatformState], bool] = ... + get_accessible_parent: Callable[[Accessible], Optional[Accessible]] = ... + get_first_accessible_child: Callable[[Accessible], Optional[Accessible]] = ... + get_next_accessible_sibling: Callable[[Accessible], Optional[Accessible]] = ... + get_bounds: Callable[[Accessible], Tuple[bool, int, int, int, int]] = ... + +class AccessibleList(GObject.GBoxed): + """ + :Constructors: + + :: + + new_from_array(accessibles:list) -> Gtk.AccessibleList + new_from_list(list:list) -> Gtk.AccessibleList + """ + + def get_objects(self) -> list[Accessible]: ... + @classmethod + def new_from_array(cls, accessibles: Sequence[Accessible]) -> AccessibleList: ... + @classmethod + def new_from_list(cls, list: list[Accessible]) -> AccessibleList: ... + +class AccessibleRange(GObject.GInterface): ... + +class AccessibleRangeInterface(GObject.GPointer): + """ + :Constructors: + + :: + + AccessibleRangeInterface() + """ + + g_iface: GObject.TypeInterface = ... + set_current_value: Callable[[AccessibleRange, float], bool] = ... + +class AccessibleText(GObject.GInterface): + """ + Interface GtkAccessibleText + + Signals from GObject: + notify (GParam) + """ + + def update_caret_position(self) -> None: ... + def update_contents( + self, change: AccessibleTextContentChange, start: int, end: int + ) -> None: ... + def update_selection_bound(self) -> None: ... + +class AccessibleTextInterface(GObject.GPointer): + """ + :Constructors: + + :: + + AccessibleTextInterface() + """ + + g_iface: GObject.TypeInterface = ... + get_contents: Callable[[AccessibleText, int, int], GLib.Bytes] = ... + get_contents_at: Callable[ + [AccessibleText, int, AccessibleTextGranularity], Tuple[GLib.Bytes, int, int] + ] = ... + get_caret_position: Callable[[AccessibleText], int] = ... + get_selection: Callable[ + [AccessibleText], Tuple[bool, list[AccessibleTextRange]] + ] = ... + get_attributes: Callable[ + [AccessibleText, int], + Tuple[bool, list[AccessibleTextRange], list[str], list[str]], + ] = ... + get_default_attributes: Callable[[AccessibleText], Tuple[list[str], list[str]]] = ( + ... + ) + +class AccessibleTextRange(GObject.GPointer): + """ + :Constructors: + + :: + + AccessibleTextRange() + """ + + start: int = ... + length: int = ... + +class ActionBar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ActionBar(**properties) + new() -> Gtk.Widget + + Object GtkActionBar + + Properties from GtkActionBar: + revealed -> gboolean: revealed + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + revealed: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + revealed: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_center_widget(self) -> Optional[Widget]: ... + def get_revealed(self) -> bool: ... + @classmethod + def new(cls) -> ActionBar: ... + def pack_end(self, child: Widget) -> None: ... + def pack_start(self, child: Widget) -> None: ... + def remove(self, child: Widget) -> None: ... + def set_center_widget(self, center_widget: Optional[Widget] = None) -> None: ... + def set_revealed(self, revealed: bool) -> None: ... + +class Actionable(GObject.GInterface): + """ + Interface GtkActionable + + Signals from GObject: + notify (GParam) + """ + + def get_action_name(self) -> Optional[str]: ... + def get_action_target_value(self) -> Optional[GLib.Variant]: ... + def set_action_name(self, action_name: Optional[str] = None) -> None: ... + def set_action_target_value( + self, target_value: Optional[GLib.Variant] = None + ) -> None: ... + def set_detailed_action_name(self, detailed_action_name: str) -> None: ... + +class ActionableInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ActionableInterface() + """ + + g_iface: GObject.TypeInterface = ... + get_action_name: Callable[[Actionable], Optional[str]] = ... + set_action_name: Callable[[Actionable, Optional[str]], None] = ... + get_action_target_value: Callable[[Actionable], Optional[GLib.Variant]] = ... + set_action_target_value: Callable[[Actionable, Optional[GLib.Variant]], None] = ... + +class ActivateAction(ShortcutAction): + """ + :Constructors: + + :: + + ActivateAction(**properties) + + Object GtkActivateAction + + Signals from GObject: + notify (GParam) + """ + + @staticmethod + def get() -> ActivateAction: ... + +class ActivateActionClass(GObject.GPointer): ... + +class Adjustment(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + Adjustment(**properties) + new(value:float, lower:float, upper:float, step_increment:float, page_increment:float, page_size:float) -> Gtk.Adjustment + + Object GtkAdjustment + + Signals from GtkAdjustment: + changed () + value-changed () + + Properties from GtkAdjustment: + value -> gdouble: value + lower -> gdouble: lower + upper -> gdouble: upper + step-increment -> gdouble: step-increment + page-increment -> gdouble: page-increment + page-size -> gdouble: page-size + + Signals from GObject: + notify (GParam) + """ + + class Props: + lower: float + page_increment: float + page_size: float + step_increment: float + upper: float + value: float + + props: Props = ... + parent_instance: GObject.InitiallyUnowned = ... + def __init__( + self, + lower: float = ..., + page_increment: float = ..., + page_size: float = ..., + step_increment: float = ..., + upper: float = ..., + value: float = ..., + ): ... + def clamp_page(self, lower: float, upper: float) -> None: ... + def configure( + self, + value: float, + lower: float, + upper: float, + step_increment: float, + page_increment: float, + page_size: float, + ) -> None: ... + def do_changed(self) -> None: ... + def do_value_changed(self) -> None: ... + def get_lower(self) -> float: ... + def get_minimum_increment(self) -> float: ... + def get_page_increment(self) -> float: ... + def get_page_size(self) -> float: ... + def get_step_increment(self) -> float: ... + def get_upper(self) -> float: ... + def get_value(self) -> float: ... + @classmethod + def new( + cls, + value: float, + lower: float, + upper: float, + step_increment: float, + page_increment: float, + page_size: float, + ) -> Adjustment: ... + def set_lower(self, lower: float) -> None: ... + def set_page_increment(self, page_increment: float) -> None: ... + def set_page_size(self, page_size: float) -> None: ... + def set_step_increment(self, step_increment: float) -> None: ... + def set_upper(self, upper: float) -> None: ... + def set_value(self, value: float) -> None: ... + +class AdjustmentClass(GObject.GPointer): + """ + :Constructors: + + :: + + AdjustmentClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + changed: Callable[[Adjustment], None] = ... + value_changed: Callable[[Adjustment], None] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class AlertDialog(GObject.Object): + """ + :Constructors: + + :: + + AlertDialog(**properties) + + Object GtkAlertDialog + + Properties from GtkAlertDialog: + modal -> gboolean: modal + message -> gchararray: message + detail -> gchararray: detail + buttons -> GStrv: buttons + cancel-button -> gint: cancel-button + default-button -> gint: default-button + + Signals from GObject: + notify (GParam) + """ + + class Props: + buttons: Optional[list[str]] + cancel_button: int + default_button: int + detail: str + message: str + modal: bool + + props: Props = ... + def __init__( + self, + buttons: Sequence[str] = ..., + cancel_button: int = ..., + default_button: int = ..., + detail: str = ..., + message: str = ..., + modal: bool = ..., + ): ... + def choose( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def choose_finish(self, result: Gio.AsyncResult) -> int: ... + def get_buttons(self) -> Optional[list[str]]: ... + def get_cancel_button(self) -> int: ... + def get_default_button(self) -> int: ... + def get_detail(self) -> str: ... + def get_message(self) -> str: ... + def get_modal(self) -> bool: ... + def set_buttons(self, labels: Sequence[str]) -> None: ... + def set_cancel_button(self, button: int) -> None: ... + def set_default_button(self, button: int) -> None: ... + def set_detail(self, detail: str) -> None: ... + def set_message(self, message: str) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def show(self, parent: Optional[Window] = None) -> None: ... + +class AlertDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + AlertDialogClass() + """ + + parent_class: GObject.ObjectClass = ... + +class AlternativeTrigger(ShortcutTrigger): + """ + :Constructors: + + :: + + AlternativeTrigger(**properties) + new(first:Gtk.ShortcutTrigger, second:Gtk.ShortcutTrigger) -> Gtk.ShortcutTrigger + + Object GtkAlternativeTrigger + + Properties from GtkAlternativeTrigger: + first -> GtkShortcutTrigger: first + second -> GtkShortcutTrigger: second + + Signals from GObject: + notify (GParam) + """ + + class Props: + first: ShortcutTrigger + second: ShortcutTrigger + + props: Props = ... + def __init__(self, first: ShortcutTrigger = ..., second: ShortcutTrigger = ...): ... + def get_first(self) -> ShortcutTrigger: ... + def get_second(self) -> ShortcutTrigger: ... + @classmethod + def new( + cls, first: ShortcutTrigger, second: ShortcutTrigger + ) -> AlternativeTrigger: ... + +class AlternativeTriggerClass(GObject.GPointer): ... + +class AnyFilter(MultiFilter, Gio.ListModel, Buildable): + """ + :Constructors: + + :: + + AnyFilter(**properties) + new() -> Gtk.AnyFilter + + Object GtkAnyFilter + + Signals from GListModel: + items-changed (guint, guint, guint) + + Properties from GtkMultiFilter: + item-type -> GType: item-type + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + n_items: int + + props: Props = ... + @classmethod + def new(cls) -> AnyFilter: ... + +class AnyFilterClass(GObject.GPointer): ... + +class AppChooser(GObject.GInterface): + """ + Interface GtkAppChooser + + Signals from GObject: + notify (GParam) + """ + + def get_app_info(self) -> Optional[Gio.AppInfo]: ... + def get_content_type(self) -> str: ... + def refresh(self) -> None: ... + +class AppChooserButton(Widget, Accessible, AppChooser, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + AppChooserButton(**properties) + new(content_type:str) -> Gtk.Widget + + Object GtkAppChooserButton + + Signals from GtkAppChooserButton: + changed () + custom-item-activated (gchararray) + activate () + + Properties from GtkAppChooserButton: + show-dialog-item -> gboolean: show-dialog-item + show-default-item -> gboolean: show-default-item + heading -> gchararray: heading + modal -> gboolean: modal + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + heading: Optional[str] + modal: bool + show_default_item: bool + show_dialog_item: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + content_type: str + + props: Props = ... + def __init__( + self, + heading: str = ..., + modal: bool = ..., + show_default_item: bool = ..., + show_dialog_item: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + content_type: str = ..., + ): ... + def append_custom_item(self, name: str, label: str, icon: Gio.Icon) -> None: ... + def append_separator(self) -> None: ... + def get_heading(self) -> Optional[str]: ... + def get_modal(self) -> bool: ... + def get_show_default_item(self) -> bool: ... + def get_show_dialog_item(self) -> bool: ... + @classmethod + def new(cls, content_type: str) -> AppChooserButton: ... + def set_active_custom_item(self, name: str) -> None: ... + def set_heading(self, heading: str) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def set_show_default_item(self, setting: bool) -> None: ... + def set_show_dialog_item(self, setting: bool) -> None: ... + +class AppChooserDialog( + Dialog, + Accessible, + AppChooser, + Buildable, + ConstraintTarget, + Native, + Root, + ShortcutManager, +): + """ + :Constructors: + + :: + + AppChooserDialog(**properties) + new(parent:Gtk.Window=None, flags:Gtk.DialogFlags, file:Gio.File) -> Gtk.Widget + new_for_content_type(parent:Gtk.Window=None, flags:Gtk.DialogFlags, content_type:str) -> Gtk.Widget + + Object GtkAppChooserDialog + + Properties from GtkAppChooserDialog: + gfile -> GFile: gfile + heading -> gchararray: heading + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + gfile: Gio.File + heading: Optional[str] + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + content_type: str + startup_id: str + + props: Props = ... + def __init__( + self, + gfile: Gio.File = ..., + heading: str = ..., + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + content_type: str = ..., + ): ... + def get_heading(self) -> Optional[str]: ... + def get_widget(self) -> Widget: ... + @classmethod + def new( + cls, parent: Optional[Window], flags: DialogFlags, file: Gio.File + ) -> AppChooserDialog: ... + @classmethod + def new_for_content_type( + cls, parent: Optional[Window], flags: DialogFlags, content_type: str + ) -> AppChooserDialog: ... + def set_heading(self, heading: str) -> None: ... + +class AppChooserWidget(Widget, Accessible, AppChooser, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + AppChooserWidget(**properties) + new(content_type:str) -> Gtk.Widget + + Object GtkAppChooserWidget + + Signals from GtkAppChooserWidget: + application-selected (GAppInfo) + application-activated (GAppInfo) + + Properties from GtkAppChooserWidget: + show-default -> gboolean: show-default + show-recommended -> gboolean: show-recommended + show-fallback -> gboolean: show-fallback + show-other -> gboolean: show-other + show-all -> gboolean: show-all + default-text -> gchararray: default-text + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + default_text: Optional[str] + show_all: bool + show_default: bool + show_fallback: bool + show_other: bool + show_recommended: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + content_type: str + + props: Props = ... + def __init__( + self, + default_text: str = ..., + show_all: bool = ..., + show_default: bool = ..., + show_fallback: bool = ..., + show_other: bool = ..., + show_recommended: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + content_type: str = ..., + ): ... + def get_default_text(self) -> Optional[str]: ... + def get_show_all(self) -> bool: ... + def get_show_default(self) -> bool: ... + def get_show_fallback(self) -> bool: ... + def get_show_other(self) -> bool: ... + def get_show_recommended(self) -> bool: ... + @classmethod + def new(cls, content_type: str) -> AppChooserWidget: ... + def set_default_text(self, text: str) -> None: ... + def set_show_all(self, setting: bool) -> None: ... + def set_show_default(self, setting: bool) -> None: ... + def set_show_fallback(self, setting: bool) -> None: ... + def set_show_other(self, setting: bool) -> None: ... + def set_show_recommended(self, setting: bool) -> None: ... + +class Application(Gio.Application, Gio.ActionGroup, Gio.ActionMap): + """ + :Constructors: + + :: + + Application(**properties) + new(application_id:str=None, flags:Gio.ApplicationFlags) -> Gtk.Application + + Object GtkApplication + + Signals from GtkApplication: + window-added (GtkWindow) + window-removed (GtkWindow) + query-end () + + Properties from GtkApplication: + register-session -> gboolean: register-session + screensaver-active -> gboolean: screensaver-active + menubar -> GMenuModel: menubar + active-window -> GtkWindow: active-window + + Signals from GActionGroup: + action-added (gchararray) + action-removed (gchararray) + action-enabled-changed (gchararray, gboolean) + action-state-changed (gchararray, GVariant) + + Signals from GApplication: + activate () + startup () + shutdown () + open (gpointer, gint, gchararray) + command-line (GApplicationCommandLine) -> gint + handle-local-options (GVariantDict) -> gint + name-lost () -> gboolean + + Properties from GApplication: + application-id -> gchararray: application-id + version -> gchararray: version + flags -> GApplicationFlags: flags + resource-base-path -> gchararray: resource-base-path + is-registered -> gboolean: is-registered + is-remote -> gboolean: is-remote + inactivity-timeout -> guint: inactivity-timeout + action-group -> GActionGroup: action-group + is-busy -> gboolean: is-busy + + Signals from GActionGroup: + action-added (gchararray) + action-removed (gchararray) + action-enabled-changed (gchararray, gboolean) + action-state-changed (gchararray, GVariant) + + Signals from GObject: + notify (GParam) + """ + + class Props: + active_window: Optional[Window] + menubar: Optional[Gio.MenuModel] + register_session: bool + screensaver_active: bool + application_id: Optional[str] + flags: Gio.ApplicationFlags + inactivity_timeout: int + is_busy: bool + is_registered: bool + is_remote: bool + resource_base_path: Optional[str] + version: Optional[str] + action_group: Optional[Gio.ActionGroup] + + props: Props = ... + parent_instance: Gio.Application = ... + def __init__( + self, + menubar: Optional[Gio.MenuModel] = ..., + register_session: bool = ..., + action_group: Optional[Gio.ActionGroup] = ..., + application_id: Optional[str] = ..., + flags: Gio.ApplicationFlags = ..., + inactivity_timeout: int = ..., + resource_base_path: Optional[str] = ..., + version: str = ..., + ): ... + def add_window(self, window: Window) -> None: ... + def do_window_added(self, window: Window) -> None: ... + def do_window_removed(self, window: Window) -> None: ... + def get_accels_for_action(self, detailed_action_name: str) -> list[str]: ... + def get_actions_for_accel(self, accel: str) -> list[str]: ... + def get_active_window(self) -> Optional[Window]: ... + def get_menu_by_id(self, id: str) -> Optional[Gio.Menu]: ... + def get_menubar(self) -> Optional[Gio.MenuModel]: ... + def get_window_by_id(self, id: int) -> Optional[Window]: ... + def get_windows(self) -> list[Window]: ... + def inhibit( + self, + window: Optional[Window], + flags: ApplicationInhibitFlags, + reason: Optional[str] = None, + ) -> int: ... + def list_action_descriptions(self) -> list[str]: ... + @classmethod + def new( + cls, application_id: Optional[str], flags: Gio.ApplicationFlags + ) -> Application: ... + def remove_window(self, window: Window) -> None: ... + def set_accels_for_action( + self, detailed_action_name: str, accels: Sequence[str] + ) -> None: ... + def set_menubar(self, menubar: Optional[Gio.MenuModel] = None) -> None: ... + def uninhibit(self, cookie: int) -> None: ... + +class ApplicationClass(GObject.GPointer): + """ + :Constructors: + + :: + + ApplicationClass() + """ + + parent_class: Gio.ApplicationClass = ... + window_added: Callable[[Application, Window], None] = ... + window_removed: Callable[[Application, Window], None] = ... + padding: list[None] = ... + +class ApplicationWindow( + Window, + Gio.ActionGroup, + Gio.ActionMap, + Accessible, + Buildable, + ConstraintTarget, + Native, + Root, + ShortcutManager, +): + """ + :Constructors: + + :: + + ApplicationWindow(**properties) + new(application:Gtk.Application) -> Gtk.Widget + + Object GtkApplicationWindow + + Properties from GtkApplicationWindow: + show-menubar -> gboolean: show-menubar + + Signals from GActionGroup: + action-added (gchararray) + action-removed (gchararray) + action-enabled-changed (gchararray, gboolean) + action-state-changed (gchararray, GVariant) + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + show_menubar: bool + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + parent_instance: Window = ... + def __init__( + self, + show_menubar: bool = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_help_overlay(self) -> Optional[ShortcutsWindow]: ... + def get_id(self) -> int: ... + def get_show_menubar(self) -> bool: ... + @classmethod + def new(cls, application: Application) -> ApplicationWindow: ... + def set_help_overlay( + self, help_overlay: Optional[ShortcutsWindow] = None + ) -> None: ... + def set_show_menubar(self, show_menubar: bool) -> None: ... + +class ApplicationWindowClass(GObject.GPointer): + """ + :Constructors: + + :: + + ApplicationWindowClass() + """ + + parent_class: WindowClass = ... + padding: list[None] = ... + +class AspectFrame(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + AspectFrame(**properties) + new(xalign:float, yalign:float, ratio:float, obey_child:bool) -> Gtk.Widget + + Object GtkAspectFrame + + Properties from GtkAspectFrame: + xalign -> gfloat: xalign + yalign -> gfloat: yalign + ratio -> gfloat: ratio + obey-child -> gboolean: obey-child + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + obey_child: bool + ratio: float + xalign: float + yalign: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + obey_child: bool = ..., + ratio: float = ..., + xalign: float = ..., + yalign: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_obey_child(self) -> bool: ... + def get_ratio(self) -> float: ... + def get_xalign(self) -> float: ... + def get_yalign(self) -> float: ... + @classmethod + def new( + cls, xalign: float, yalign: float, ratio: float, obey_child: bool + ) -> AspectFrame: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_obey_child(self, obey_child: bool) -> None: ... + def set_ratio(self, ratio: float) -> None: ... + def set_xalign(self, xalign: float) -> None: ... + def set_yalign(self, yalign: float) -> None: ... + +class Assistant( + Window, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + Assistant(**properties) + new() -> Gtk.Widget + + Object GtkAssistant + + Signals from GtkAssistant: + close () + cancel () + prepare (GtkWidget) + apply () + escape () + + Properties from GtkAssistant: + use-header-bar -> gint: use-header-bar + pages -> GListModel: pages + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + pages: Gio.ListModel + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + def __init__( + self, + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_action_widget(self, child: Widget) -> None: ... + def append_page(self, page: Widget) -> int: ... + def commit(self) -> None: ... + def get_current_page(self) -> int: ... + def get_n_pages(self) -> int: ... + def get_nth_page(self, page_num: int) -> Optional[Widget]: ... + def get_page(self, child: Widget) -> AssistantPage: ... + def get_page_complete(self, page: Widget) -> bool: ... + def get_page_title(self, page: Widget) -> str: ... + def get_page_type(self, page: Widget) -> AssistantPageType: ... + def get_pages(self) -> Gio.ListModel: ... + def insert_page(self, page: Widget, position: int) -> int: ... + @classmethod + def new(cls) -> Assistant: ... + def next_page(self) -> None: ... + def prepend_page(self, page: Widget) -> int: ... + def previous_page(self) -> None: ... + def remove_action_widget(self, child: Widget) -> None: ... + def remove_page(self, page_num: int) -> None: ... + def set_current_page(self, page_num: int) -> None: ... + def set_forward_page_func( + self, page_func: Optional[Callable[..., int]] = None, *data: Any + ) -> None: ... + def set_page_complete(self, page: Widget, complete: bool) -> None: ... + def set_page_title(self, page: Widget, title: str) -> None: ... + def set_page_type(self, page: Widget, type: AssistantPageType) -> None: ... + def update_buttons_state(self) -> None: ... + +class AssistantPage(GObject.Object): + """ + :Constructors: + + :: + + AssistantPage(**properties) + + Object GtkAssistantPage + + Properties from GtkAssistantPage: + child -> GtkWidget: child + page-type -> GtkAssistantPageType: page-type + title -> gchararray: title + complete -> gboolean: complete + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Widget + complete: bool + page_type: AssistantPageType + title: str + + props: Props = ... + def __init__( + self, + child: Widget = ..., + complete: bool = ..., + page_type: AssistantPageType = ..., + title: str = ..., + ): ... + def get_child(self) -> Widget: ... + +class BinLayout(LayoutManager): + """ + :Constructors: + + :: + + BinLayout(**properties) + new() -> Gtk.LayoutManager + + Object GtkBinLayout + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new(cls) -> BinLayout: ... + +class BinLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + BinLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class Bitset(GObject.GBoxed): + """ + :Constructors: + + :: + + new_empty() -> Gtk.Bitset + new_range(start:int, n_items:int) -> Gtk.Bitset + """ + + def add(self, value: int) -> bool: ... + def add_range(self, start: int, n_items: int) -> None: ... + def add_range_closed(self, first: int, last: int) -> None: ... + def add_rectangle( + self, start: int, width: int, height: int, stride: int + ) -> None: ... + def contains(self, value: int) -> bool: ... + def copy(self) -> Bitset: ... + def difference(self, other: Bitset) -> None: ... + def equals(self, other: Bitset) -> bool: ... + def get_maximum(self) -> int: ... + def get_minimum(self) -> int: ... + def get_nth(self, nth: int) -> int: ... + def get_size(self) -> int: ... + def get_size_in_range(self, first: int, last: int) -> int: ... + def intersect(self, other: Bitset) -> None: ... + def is_empty(self) -> bool: ... + @classmethod + def new_empty(cls) -> Bitset: ... + @classmethod + def new_range(cls, start: int, n_items: int) -> Bitset: ... + def ref(self) -> Bitset: ... + def remove(self, value: int) -> bool: ... + def remove_all(self) -> None: ... + def remove_range(self, start: int, n_items: int) -> None: ... + def remove_range_closed(self, first: int, last: int) -> None: ... + def remove_rectangle( + self, start: int, width: int, height: int, stride: int + ) -> None: ... + def shift_left(self, amount: int) -> None: ... + def shift_right(self, amount: int) -> None: ... + def splice(self, position: int, removed: int, added: int) -> None: ... + def subtract(self, other: Bitset) -> None: ... + def union(self, other: Bitset) -> None: ... + def unref(self) -> None: ... + +class BitsetIter(GObject.GBoxed): + """ + :Constructors: + + :: + + BitsetIter() + """ + + private_data: list[None] = ... + def get_value(self) -> int: ... + @staticmethod + def init_at(set: Bitset, target: int) -> Tuple[bool, BitsetIter, int]: ... + @staticmethod + def init_first(set: Bitset) -> Tuple[bool, BitsetIter, int]: ... + @staticmethod + def init_last(set: Bitset) -> Tuple[bool, BitsetIter, int]: ... + def is_valid(self) -> bool: ... + def next(self) -> Tuple[bool, int]: ... + def previous(self) -> Tuple[bool, int]: ... + +class BookmarkList(GObject.Object, Gio.ListModel): + """ + :Constructors: + + :: + + BookmarkList(**properties) + new(filename:str=None, attributes:str=None) -> Gtk.BookmarkList + + Object GtkBookmarkList + + Properties from GtkBookmarkList: + filename -> gchararray: filename + attributes -> gchararray: attributes + io-priority -> gint: io-priority + item-type -> GType: item-type + loading -> gboolean: loading + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + attributes: Optional[str] + filename: str + io_priority: int + item_type: Type + loading: bool + n_items: int + + props: Props = ... + def __init__( + self, + attributes: Optional[str] = ..., + filename: str = ..., + io_priority: int = ..., + ): ... + def get_attributes(self) -> Optional[str]: ... + def get_filename(self) -> str: ... + def get_io_priority(self) -> int: ... + def is_loading(self) -> bool: ... + @classmethod + def new( + cls, filename: Optional[str] = None, attributes: Optional[str] = None + ) -> BookmarkList: ... + def set_attributes(self, attributes: Optional[str] = None) -> None: ... + def set_io_priority(self, io_priority: int) -> None: ... + +class BookmarkListClass(GObject.GPointer): + """ + :Constructors: + + :: + + BookmarkListClass() + """ + + parent_class: GObject.ObjectClass = ... + +class BoolFilter(Filter): + """ + :Constructors: + + :: + + BoolFilter(**properties) + new(expression:Gtk.Expression=None) -> Gtk.BoolFilter + + Object GtkBoolFilter + + Properties from GtkBoolFilter: + expression -> GtkExpression: expression + invert -> gboolean: invert + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + expression: Optional[Expression] + invert: bool + + props: Props = ... + def __init__(self, expression: Optional[Expression] = ..., invert: bool = ...): ... + def get_expression(self) -> Optional[Expression]: ... + def get_invert(self) -> bool: ... + @classmethod + def new(cls, expression: Optional[Expression] = None) -> BoolFilter: ... + def set_expression(self, expression: Optional[Expression] = None) -> None: ... + def set_invert(self, invert: bool) -> None: ... + +class BoolFilterClass(GObject.GPointer): + """ + :Constructors: + + :: + + BoolFilterClass() + """ + + parent_class: FilterClass = ... + +class Border(GObject.GBoxed): + """ + :Constructors: + + :: + + Border() + new() -> Gtk.Border + """ + + left: int = ... + right: int = ... + top: int = ... + bottom: int = ... + def copy(self) -> Border: ... + def free(self) -> None: ... + @classmethod + def new(cls) -> Border: ... + +class Box(Widget, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + Box(**properties) + new(orientation:Gtk.Orientation, spacing:int) -> Gtk.Widget + + Object GtkBox + + Properties from GtkBox: + spacing -> gint: spacing + homogeneous -> gboolean: homogeneous + baseline-child -> gint: baseline-child + baseline-position -> GtkBaselinePosition: baseline-position + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + baseline_child: int + baseline_position: BaselinePosition + homogeneous: bool + spacing: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + baseline_child: int = ..., + baseline_position: BaselinePosition = ..., + homogeneous: bool = ..., + spacing: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def append(self, child: Widget) -> None: ... + def get_baseline_child(self) -> int: ... + def get_baseline_position(self) -> BaselinePosition: ... + def get_homogeneous(self) -> bool: ... + def get_spacing(self) -> int: ... + def insert_child_after( + self, child: Widget, sibling: Optional[Widget] = None + ) -> None: ... + @classmethod + def new(cls, orientation: Orientation, spacing: int) -> Box: ... + def prepend(self, child: Widget) -> None: ... + def remove(self, child: Widget) -> None: ... + def reorder_child_after( + self, child: Widget, sibling: Optional[Widget] = None + ) -> None: ... + def set_baseline_child(self, child: int) -> None: ... + def set_baseline_position(self, position: BaselinePosition) -> None: ... + def set_homogeneous(self, homogeneous: bool) -> None: ... + def set_spacing(self, spacing: int) -> None: ... + +class BoxClass(GObject.GPointer): + """ + :Constructors: + + :: + + BoxClass() + """ + + parent_class: WidgetClass = ... + padding: list[None] = ... + +class BoxLayout(LayoutManager, Orientable): + """ + :Constructors: + + :: + + BoxLayout(**properties) + new(orientation:Gtk.Orientation) -> Gtk.LayoutManager + + Object GtkBoxLayout + + Properties from GtkBoxLayout: + homogeneous -> gboolean: homogeneous + spacing -> gint: spacing + baseline-child -> gint: baseline-child + baseline-position -> GtkBaselinePosition: baseline-position + + Signals from GObject: + notify (GParam) + """ + + class Props: + baseline_child: int + baseline_position: BaselinePosition + homogeneous: bool + spacing: int + orientation: Orientation + + props: Props = ... + def __init__( + self, + baseline_child: int = ..., + baseline_position: BaselinePosition = ..., + homogeneous: bool = ..., + spacing: int = ..., + orientation: Orientation = ..., + ): ... + def get_baseline_child(self) -> int: ... + def get_baseline_position(self) -> BaselinePosition: ... + def get_homogeneous(self) -> bool: ... + def get_spacing(self) -> int: ... + @classmethod + def new(cls, orientation: Orientation) -> BoxLayout: ... + def set_baseline_child(self, child: int) -> None: ... + def set_baseline_position(self, position: BaselinePosition) -> None: ... + def set_homogeneous(self, homogeneous: bool) -> None: ... + def set_spacing(self, spacing: int) -> None: ... + +class BoxLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + BoxLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class Buildable(GObject.GInterface): + """ + Interface GtkBuildable + + Signals from GObject: + notify (GParam) + """ + + def get_buildable_id(self) -> Optional[str]: ... + +class BuildableIface(GObject.GPointer): + """ + :Constructors: + + :: + + BuildableIface() + """ + + g_iface: GObject.TypeInterface = ... + set_id: Callable[[Buildable, str], None] = ... + get_id: Callable[[Buildable], str] = ... + add_child: Callable[[Buildable, Builder, GObject.Object, Optional[str]], None] = ... + set_buildable_property: Callable[[Buildable, Builder, str, Any], None] = ... + construct_child: None = ... + custom_tag_start: Callable[ + [Buildable, Builder, Optional[GObject.Object], str], + Tuple[bool, BuildableParser, None], + ] = ... + custom_tag_end: Callable[ + [Buildable, Builder, Optional[GObject.Object], str, None], None + ] = ... + custom_finished: Callable[ + [Buildable, Builder, Optional[GObject.Object], str, None], None + ] = ... + parser_finished: Callable[[Buildable, Builder], None] = ... + get_internal_child: Callable[[Buildable, Builder, str], GObject.Object] = ... + +class BuildableParseContext(GObject.GPointer): + def get_element(self) -> Optional[str]: ... + def get_element_stack(self) -> list[str]: ... + def get_position(self) -> Tuple[int, int]: ... + def pop(self) -> None: ... + def push(self, parser: BuildableParser, user_data: None) -> None: ... + +class BuildableParser(GObject.GPointer): + """ + :Constructors: + + :: + + BuildableParser() + """ + + start_element: Callable[..., None] = ... + end_element: Callable[..., None] = ... + text: Callable[..., None] = ... + error: Callable[..., None] = ... + padding: list[None] = ... + +class Builder(GObject.Object): + """ + :Constructors: + + :: + + Builder(**properties) + new() -> Gtk.Builder + new_from_file(filename:str) -> Gtk.Builder + new_from_resource(resource_path:str) -> Gtk.Builder + new_from_string(string:str, length:int) -> Gtk.Builder + + Object GtkBuilder + + Properties from GtkBuilder: + current-object -> GObject: current-object + scope -> GtkBuilderScope: scope + translation-domain -> gchararray: translation-domain + + Signals from GObject: + notify (GParam) + """ + + class Props: + current_object: Optional[GObject.Object] + scope: BuilderScope + translation_domain: Optional[str] + + props: Props = ... + def __init__( + self, + current_object: Optional[GObject.Object] = ..., + scope: Optional[BuilderScope] = ..., + translation_domain: Optional[str] = ..., + ): ... + def add_from_file(self, filename: str) -> bool: ... + def add_from_resource(self, resource_path: str) -> bool: ... + def add_from_string(self, buffer): ... # FIXME Function + def add_objects_from_file( + self, filename: str, object_ids: Sequence[str] + ) -> bool: ... + def add_objects_from_resource( + self, resource_path: str, object_ids: Sequence[str] + ) -> bool: ... + def add_objects_from_string(self, buffer, object_ids): ... # FIXME Function + def create_closure( + self, + function_name: str, + flags: BuilderClosureFlags, + object: Optional[GObject.Object] = None, + ) -> Optional[Callable[..., Any]]: ... + def define_builder_scope(): ... # FIXME Function + def expose_object(self, name: str, object: GObject.Object) -> None: ... + def extend_with_template( + self, object: GObject.Object, template_type: Type, buffer: str, length: int + ) -> bool: ... + def get_current_object(self) -> Optional[GObject.Object]: ... + def get_object(self, name: str) -> Optional[GObject.Object]: ... + def get_objects(self) -> list[GObject.Object]: ... + def get_scope(self) -> BuilderScope: ... + def get_translation_domain(self) -> Optional[str]: ... + def get_type_from_name(self, type_name: str) -> Type: ... + @classmethod + def new(cls) -> Builder: ... + @classmethod + def new_from_file(cls, filename: str) -> Builder: ... + @classmethod + def new_from_resource(cls, resource_path: str) -> Builder: ... + @classmethod + def new_from_string(cls, string: str, length: int) -> Builder: ... + def set_current_object( + self, current_object: Optional[GObject.Object] = None + ) -> None: ... + def set_scope(self, scope: Optional[BuilderScope] = None) -> None: ... + def set_translation_domain(self, domain: Optional[str] = None) -> None: ... + def value_from_string( + self, pspec: GObject.ParamSpec, string: str + ) -> Tuple[bool, Any]: ... + def value_from_string_type(self, type: Type, string: str) -> Tuple[bool, Any]: ... + + class BuilderScope: + """ + Object gi+_gtktemplate+BuilderScope + + Signals from GObject: + notify (GParam) + """ + + g_type_instance: GObject.TypeInstance = ... + ref_count: int = ... + qdata: GLib.Data = ... + def bind_property(self, *args, **kwargs): ... # FIXME Function + def bind_property_full(self, *args, **kargs): ... # FIXME Function + def compat_control(self, *args, **kargs): ... # FIXME Function + def do_create_closure( + self, builder, func_name, flags, obj + ): ... # FIXME Function + def force_floating(self, *args, **kargs): ... # FIXME Function + def freeze_notify(self): ... # FIXME Function + def get_data(self, *args, **kargs): ... # FIXME Function + def get_property(self, *args, **kwargs): ... # FIXME Function + def get_qdata(self, *args, **kargs): ... # FIXME Function + def getv(self, names: Sequence[str], values: Sequence[Any]) -> None: ... + def interface_find_property(self, *args, **kargs): ... # FIXME Function + def interface_install_property(self, *args, **kargs): ... # FIXME Function + def interface_list_properties(self, *args, **kargs): ... # FIXME Function + def is_floating(self) -> bool: ... + @classmethod + def newv( + cls, object_type: Type, parameters: Sequence[GObject.Parameter] + ) -> Object: ... + def notify(self, property_name: str) -> None: ... + def notify_by_pspec(self, *args, **kargs): ... # FIXME Function + def ref(self, *args, **kargs): ... # FIXME Function + def ref_sink(self, *args, **kargs): ... # FIXME Function + def run_dispose(self) -> None: ... + def set_data(self, *args, **kargs): ... # FIXME Function + def set_property(self, *args, **kwargs): ... # FIXME Function + def steal_data(self, *args, **kargs): ... # FIXME Function + def steal_qdata(self, *args, **kargs): ... # FIXME Function + def thaw_notify(self) -> None: ... + def unref(self, *args, **kargs): ... # FIXME Function + def watch_closure(self, *args, **kargs): ... # FIXME Function + +class BuilderCScope(GObject.Object, BuilderScope): + """ + :Constructors: + + :: + + BuilderCScope(**properties) + new() -> Gtk.BuilderCScope + + Object GtkBuilderCScope + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + def add_callback_symbol( + self, callback_name: str, callback_symbol: Callable[[], None] + ) -> None: ... + @classmethod + def new(cls) -> BuilderCScope: ... + +class BuilderCScopeClass(GObject.GPointer): + """ + :Constructors: + + :: + + BuilderCScopeClass() + """ + + parent_class: GObject.ObjectClass = ... + +class BuilderClass(GObject.GPointer): ... + +class BuilderListItemFactory(ListItemFactory): + """ + :Constructors: + + :: + + BuilderListItemFactory(**properties) + new_from_bytes(scope:Gtk.BuilderScope=None, bytes:GLib.Bytes) -> Gtk.ListItemFactory + new_from_resource(scope:Gtk.BuilderScope=None, resource_path:str) -> Gtk.ListItemFactory + + Object GtkBuilderListItemFactory + + Properties from GtkBuilderListItemFactory: + bytes -> GBytes: bytes + resource -> gchararray: resource + scope -> GtkBuilderScope: scope + + Signals from GObject: + notify (GParam) + """ + + class Props: + bytes: GLib.Bytes + resource: Optional[str] + scope: Optional[BuilderScope] + + props: Props = ... + def __init__( + self, bytes: GLib.Bytes = ..., resource: str = ..., scope: BuilderScope = ... + ): ... + def get_bytes(self) -> GLib.Bytes: ... + def get_resource(self) -> Optional[str]: ... + def get_scope(self) -> Optional[BuilderScope]: ... + @classmethod + def new_from_bytes( + cls, scope: Optional[BuilderScope], bytes: GLib.Bytes + ) -> BuilderListItemFactory: ... + @classmethod + def new_from_resource( + cls, scope: Optional[BuilderScope], resource_path: str + ) -> BuilderListItemFactory: ... + +class BuilderListItemFactoryClass(GObject.GPointer): ... +class BuilderScope(GObject.GInterface): ... + +class BuilderScopeInterface(GObject.GPointer): + """ + :Constructors: + + :: + + BuilderScopeInterface() + """ + + g_iface: GObject.TypeInterface = ... + get_type_from_name: Callable[[BuilderScope, Builder, str], Type] = ... + get_type_from_function: Callable[[BuilderScope, Builder, str], Type] = ... + create_closure: Callable[ + [BuilderScope, Builder, str, BuilderClosureFlags, GObject.Object], + Callable[..., Any], + ] = ... + +class Button(Widget, Accessible, Actionable, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Button(**properties) + new() -> Gtk.Widget + new_from_icon_name(icon_name:str) -> Gtk.Widget + new_with_label(label:str) -> Gtk.Widget + new_with_mnemonic(label:str) -> Gtk.Widget + + Object GtkButton + + Signals from GtkButton: + activate () + clicked () + + Properties from GtkButton: + label -> gchararray: label + has-frame -> gboolean: has-frame + use-underline -> gboolean: use-underline + icon-name -> gchararray: icon-name + child -> GtkWidget: child + can-shrink -> gboolean: can-shrink + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + can_shrink: bool + child: Optional[Widget] + has_frame: bool + icon_name: Optional[str] + label: Optional[str] + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action_name: Optional[str] + action_target: GLib.Variant + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + can_shrink: bool = ..., + child: Optional[Widget] = ..., + has_frame: bool = ..., + icon_name: str = ..., + label: str = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + ): ... + def do_activate(self) -> None: ... + def do_clicked(self) -> None: ... + def get_can_shrink(self) -> bool: ... + def get_child(self) -> Optional[Widget]: ... + def get_has_frame(self) -> bool: ... + def get_icon_name(self) -> Optional[str]: ... + def get_label(self) -> Optional[str]: ... + def get_use_underline(self) -> bool: ... + @classmethod + def new(cls) -> Button: ... + @classmethod + def new_from_icon_name(cls, icon_name: str) -> Button: ... + @classmethod + def new_with_label(cls, label: str) -> Button: ... + @classmethod + def new_with_mnemonic(cls, label: str) -> Button: ... + def set_can_shrink(self, can_shrink: bool) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_has_frame(self, has_frame: bool) -> None: ... + def set_icon_name(self, icon_name: str) -> None: ... + def set_label(self, label: str) -> None: ... + def set_use_underline(self, use_underline: bool) -> None: ... + +class ButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + ButtonClass() + """ + + parent_class: WidgetClass = ... + clicked: Callable[[Button], None] = ... + activate: Callable[[Button], None] = ... + padding: list[None] = ... + +class ButtonPrivate(GObject.GPointer): ... + +class CClosureExpression(Expression): + """ + :Constructors: + + :: + + CClosureExpression(**properties) + new(value_type:GType, marshal:GObject.ClosureMarshal=None, params:list, callback_func:GObject.Callback, user_data=None) -> Gtk.CClosureExpression + """ + + @classmethod + def new( + cls, + value_type: Type, + marshal: Optional[ + Callable[ + [Callable[..., Any], Optional[Any], Sequence[Any], None, None], None + ] + ], + params: Sequence[Expression], + callback_func: Callable[..., None], + *user_data: Any, + ) -> CClosureExpression: ... + +class Calendar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Calendar(**properties) + new() -> Gtk.Widget + + Object GtkCalendar + + Signals from GtkCalendar: + day-selected () + prev-month () + next-month () + prev-year () + next-year () + + Properties from GtkCalendar: + year -> gint: year + month -> gint: month + day -> gint: day + show-heading -> gboolean: show-heading + show-day-names -> gboolean: show-day-names + show-week-numbers -> gboolean: show-week-numbers + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + day: int + month: int + show_day_names: bool + show_heading: bool + show_week_numbers: bool + year: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + day: int = ..., + month: int = ..., + show_day_names: bool = ..., + show_heading: bool = ..., + show_week_numbers: bool = ..., + year: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def clear_marks(self) -> None: ... + def get_date(self) -> GLib.DateTime: ... + def get_day(self) -> int: ... + def get_day_is_marked(self, day: int) -> bool: ... + def get_month(self) -> int: ... + def get_show_day_names(self) -> bool: ... + def get_show_heading(self) -> bool: ... + def get_show_week_numbers(self) -> bool: ... + def get_year(self) -> int: ... + def mark_day(self, day: int) -> None: ... + @classmethod + def new(cls) -> Calendar: ... + def select_day(self, date: GLib.DateTime) -> None: ... + def set_day(self, day: int) -> None: ... + def set_month(self, month: int) -> None: ... + def set_show_day_names(self, value: bool) -> None: ... + def set_show_heading(self, value: bool) -> None: ... + def set_show_week_numbers(self, value: bool) -> None: ... + def set_year(self, year: int) -> None: ... + def unmark_day(self, day: int) -> None: ... + +class CallbackAction(ShortcutAction): + """ + :Constructors: + + :: + + CallbackAction(**properties) + new(callback:Gtk.ShortcutFunc=None) -> Gtk.CallbackAction + + Object GtkCallbackAction + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new( + cls, callback: Optional[Callable[..., bool]] = None, *data: Any + ) -> CallbackAction: ... + +class CallbackActionClass(GObject.GPointer): ... + +class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): + """ + :Constructors: + + :: + + CellArea(**properties) + + Object GtkCellArea + + Signals from GtkCellArea: + apply-attributes (GtkTreeModel, GtkTreeIter, gboolean, gboolean) + add-editable (GtkCellRenderer, GtkCellEditable, GdkRectangle, gchararray) + remove-editable (GtkCellRenderer, GtkCellEditable) + focus-changed (GtkCellRenderer, gchararray) + + Properties from GtkCellArea: + focus-cell -> GtkCellRenderer: focus-cell + edited-cell -> GtkCellRenderer: edited-cell + edit-widget -> GtkCellEditable: edit-widget + + Signals from GObject: + notify (GParam) + """ + + class Props: + edit_widget: Optional[CellEditable] + edited_cell: Optional[CellRenderer] + focus_cell: Optional[CellRenderer] + + props: Props = ... + parent_instance: GObject.InitiallyUnowned = ... + def __init__(self, focus_cell: Optional[CellRenderer] = ...): ... + def activate( + self, + context: CellAreaContext, + widget: Widget, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + edit_only: bool, + ) -> bool: ... + def activate_cell( + self, + widget: Widget, + renderer: CellRenderer, + event: Gdk.Event, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> bool: ... + def add(self, renderer: CellRenderer) -> None: ... + def add_focus_sibling( + self, renderer: CellRenderer, sibling: CellRenderer + ) -> None: ... + def apply_attributes( + self, + tree_model: TreeModel, + iter: TreeIter, + is_expander: bool, + is_expanded: bool, + ) -> None: ... + def attribute_connect( + self, renderer: CellRenderer, attribute: str, column: int + ) -> None: ... + def attribute_disconnect(self, renderer: CellRenderer, attribute: str) -> None: ... + def attribute_get_column(self, renderer: CellRenderer, attribute: str) -> int: ... + def cell_get_property( + self, renderer: CellRenderer, property_name: str, value: Any + ) -> None: ... + def cell_set_property( + self, renderer: CellRenderer, property_name: str, value: Any + ) -> None: ... + def copy_context(self, context: CellAreaContext) -> CellAreaContext: ... + def create_context(self) -> CellAreaContext: ... + def do_activate( + self, + context: CellAreaContext, + widget: Widget, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + edit_only: bool, + ) -> bool: ... + def do_add(self, renderer: CellRenderer) -> None: ... + def do_apply_attributes( + self, + tree_model: TreeModel, + iter: TreeIter, + is_expander: bool, + is_expanded: bool, + ) -> None: ... + def do_copy_context(self, context: CellAreaContext) -> CellAreaContext: ... + def do_create_context(self) -> CellAreaContext: ... + def do_event( + self, + context: CellAreaContext, + widget: Widget, + event: Gdk.Event, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> int: ... + def do_focus(self, direction: DirectionType) -> bool: ... + def do_foreach( + self, callback: Callable[..., bool], *callback_data: Any + ) -> None: ... + def do_foreach_alloc( + self, + context: CellAreaContext, + widget: Widget, + cell_area: Gdk.Rectangle, + background_area: Gdk.Rectangle, + callback: Callable[..., bool], + *callback_data: Any, + ) -> None: ... + def do_get_cell_property( + self, + renderer: CellRenderer, + property_id: int, + value: Any, + pspec: GObject.ParamSpec, + ) -> None: ... + def do_get_preferred_height( + self, context: CellAreaContext, widget: Widget + ) -> Tuple[int, int]: ... + def do_get_preferred_height_for_width( + self, context: CellAreaContext, widget: Widget, width: int + ) -> Tuple[int, int]: ... + def do_get_preferred_width( + self, context: CellAreaContext, widget: Widget + ) -> Tuple[int, int]: ... + def do_get_preferred_width_for_height( + self, context: CellAreaContext, widget: Widget, height: int + ) -> Tuple[int, int]: ... + def do_get_request_mode(self) -> SizeRequestMode: ... + def do_is_activatable(self) -> bool: ... + def do_remove(self, renderer: CellRenderer) -> None: ... + def do_set_cell_property( + self, + renderer: CellRenderer, + property_id: int, + value: Any, + pspec: GObject.ParamSpec, + ) -> None: ... + def do_snapshot( + self, + context: CellAreaContext, + widget: Widget, + snapshot: Snapshot, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + paint_focus: bool, + ) -> None: ... + def event( + self, + context: CellAreaContext, + widget: Widget, + event: Gdk.Event, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> int: ... + def find_cell_property(self, property_name: str) -> GObject.ParamSpec: ... + def focus(self, direction: DirectionType) -> bool: ... + def foreach(self, callback: Callable[..., bool], *callback_data: Any) -> None: ... + def foreach_alloc( + self, + context: CellAreaContext, + widget: Widget, + cell_area: Gdk.Rectangle, + background_area: Gdk.Rectangle, + callback: Callable[..., bool], + *callback_data: Any, + ) -> None: ... + def get_cell_allocation( + self, + context: CellAreaContext, + widget: Widget, + renderer: CellRenderer, + cell_area: Gdk.Rectangle, + ) -> Gdk.Rectangle: ... + def get_cell_at_position( + self, + context: CellAreaContext, + widget: Widget, + cell_area: Gdk.Rectangle, + x: int, + y: int, + ) -> Tuple[CellRenderer, Gdk.Rectangle]: ... + def get_current_path_string(self) -> str: ... + def get_edit_widget(self) -> Optional[CellEditable]: ... + def get_edited_cell(self) -> Optional[CellRenderer]: ... + def get_focus_cell(self) -> Optional[CellRenderer]: ... + def get_focus_from_sibling( + self, renderer: CellRenderer + ) -> Optional[CellRenderer]: ... + def get_focus_siblings(self, renderer: CellRenderer) -> list[CellRenderer]: ... + def get_preferred_height( + self, context: CellAreaContext, widget: Widget + ) -> Tuple[int, int]: ... + def get_preferred_height_for_width( + self, context: CellAreaContext, widget: Widget, width: int + ) -> Tuple[int, int]: ... + def get_preferred_width( + self, context: CellAreaContext, widget: Widget + ) -> Tuple[int, int]: ... + def get_preferred_width_for_height( + self, context: CellAreaContext, widget: Widget, height: int + ) -> Tuple[int, int]: ... + def get_request_mode(self) -> SizeRequestMode: ... + def has_renderer(self, renderer: CellRenderer) -> bool: ... + def inner_cell_area( + self, widget: Widget, cell_area: Gdk.Rectangle + ) -> Gdk.Rectangle: ... + def install_cell_property( + self, property_id: int, pspec: GObject.ParamSpec + ) -> None: ... + def is_activatable(self) -> bool: ... + def is_focus_sibling( + self, renderer: CellRenderer, sibling: CellRenderer + ) -> bool: ... + def list_cell_properties(self) -> list[GObject.ParamSpec]: ... + def remove(self, renderer: CellRenderer) -> None: ... + def remove_focus_sibling( + self, renderer: CellRenderer, sibling: CellRenderer + ) -> None: ... + def request_renderer( + self, + renderer: CellRenderer, + orientation: Orientation, + widget: Widget, + for_size: int, + ) -> Tuple[int, int]: ... + def set_focus_cell(self, renderer: Optional[CellRenderer] = None) -> None: ... + def snapshot( + self, + context: CellAreaContext, + widget: Widget, + snapshot: Snapshot, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + paint_focus: bool, + ) -> None: ... + def stop_editing(self, canceled: bool) -> None: ... + +class CellAreaBox(CellArea, Buildable, CellLayout, Orientable): + """ + :Constructors: + + :: + + CellAreaBox(**properties) + new() -> Gtk.CellArea + + Object GtkCellAreaBox + + Properties from GtkCellAreaBox: + spacing -> gint: spacing + + Signals from GtkCellArea: + apply-attributes (GtkTreeModel, GtkTreeIter, gboolean, gboolean) + add-editable (GtkCellRenderer, GtkCellEditable, GdkRectangle, gchararray) + remove-editable (GtkCellRenderer, GtkCellEditable) + focus-changed (GtkCellRenderer, gchararray) + + Properties from GtkCellArea: + focus-cell -> GtkCellRenderer: focus-cell + edited-cell -> GtkCellRenderer: edited-cell + edit-widget -> GtkCellEditable: edit-widget + + Signals from GObject: + notify (GParam) + """ + + class Props: + spacing: int + edit_widget: Optional[CellEditable] + edited_cell: Optional[CellRenderer] + focus_cell: Optional[CellRenderer] + orientation: Orientation + + props: Props = ... + def __init__( + self, + spacing: int = ..., + focus_cell: Optional[CellRenderer] = ..., + orientation: Orientation = ..., + ): ... + def get_spacing(self) -> int: ... + @classmethod + def new(cls) -> CellAreaBox: ... + def pack_end( + self, renderer: CellRenderer, expand: bool, align: bool, fixed: bool + ) -> None: ... + def pack_start( + self, renderer: CellRenderer, expand: bool, align: bool, fixed: bool + ) -> None: ... + def set_spacing(self, spacing: int) -> None: ... + +class CellAreaClass(GObject.GPointer): + """ + :Constructors: + + :: + + CellAreaClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + add: Callable[[CellArea, CellRenderer], None] = ... + remove: Callable[[CellArea, CellRenderer], None] = ... + foreach: Callable[..., None] = ... + foreach_alloc: Callable[..., None] = ... + event: Callable[ + [ + CellArea, + CellAreaContext, + Widget, + Gdk.Event, + Gdk.Rectangle, + CellRendererState, + ], + int, + ] = ... + snapshot: Callable[ + [ + CellArea, + CellAreaContext, + Widget, + Snapshot, + Gdk.Rectangle, + Gdk.Rectangle, + CellRendererState, + bool, + ], + None, + ] = ... + apply_attributes: Callable[[CellArea, TreeModel, TreeIter, bool, bool], None] = ... + create_context: Callable[[CellArea], CellAreaContext] = ... + copy_context: Callable[[CellArea, CellAreaContext], CellAreaContext] = ... + get_request_mode: Callable[[CellArea], SizeRequestMode] = ... + get_preferred_width: Callable[ + [CellArea, CellAreaContext, Widget], Tuple[int, int] + ] = ... + get_preferred_height_for_width: Callable[ + [CellArea, CellAreaContext, Widget, int], Tuple[int, int] + ] = ... + get_preferred_height: Callable[ + [CellArea, CellAreaContext, Widget], Tuple[int, int] + ] = ... + get_preferred_width_for_height: Callable[ + [CellArea, CellAreaContext, Widget, int], Tuple[int, int] + ] = ... + set_cell_property: Callable[ + [CellArea, CellRenderer, int, Any, GObject.ParamSpec], None + ] = ... + get_cell_property: Callable[ + [CellArea, CellRenderer, int, Any, GObject.ParamSpec], None + ] = ... + focus: Callable[[CellArea, DirectionType], bool] = ... + is_activatable: Callable[[CellArea], bool] = ... + activate: Callable[ + [CellArea, CellAreaContext, Widget, Gdk.Rectangle, CellRendererState, bool], + bool, + ] = ... + padding: list[None] = ... + def find_cell_property(self, property_name: str) -> GObject.ParamSpec: ... + def install_cell_property( + self, property_id: int, pspec: GObject.ParamSpec + ) -> None: ... + def list_cell_properties(self) -> list[GObject.ParamSpec]: ... + +class CellAreaContext(GObject.Object): + """ + :Constructors: + + :: + + CellAreaContext(**properties) + + Object GtkCellAreaContext + + Properties from GtkCellAreaContext: + area -> GtkCellArea: area + minimum-width -> gint: minimum-width + natural-width -> gint: natural-width + minimum-height -> gint: minimum-height + natural-height -> gint: natural-height + + Signals from GObject: + notify (GParam) + """ + + class Props: + area: CellArea + minimum_height: int + minimum_width: int + natural_height: int + natural_width: int + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, area: CellArea = ...): ... + def allocate(self, width: int, height: int) -> None: ... + def do_allocate(self, width: int, height: int) -> None: ... + def do_get_preferred_height_for_width(self, width: int) -> Tuple[int, int]: ... + def do_get_preferred_width_for_height(self, height: int) -> Tuple[int, int]: ... + def do_reset(self) -> None: ... + def get_allocation(self) -> Tuple[int, int]: ... + def get_area(self) -> CellArea: ... + def get_preferred_height(self) -> Tuple[int, int]: ... + def get_preferred_height_for_width(self, width: int) -> Tuple[int, int]: ... + def get_preferred_width(self) -> Tuple[int, int]: ... + def get_preferred_width_for_height(self, height: int) -> Tuple[int, int]: ... + def push_preferred_height( + self, minimum_height: int, natural_height: int + ) -> None: ... + def push_preferred_width(self, minimum_width: int, natural_width: int) -> None: ... + def reset(self) -> None: ... + +class CellAreaContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + CellAreaContextClass() + """ + + parent_class: GObject.ObjectClass = ... + allocate: Callable[[CellAreaContext, int, int], None] = ... + reset: Callable[[CellAreaContext], None] = ... + get_preferred_height_for_width: Callable[ + [CellAreaContext, int], Tuple[int, int] + ] = ... + get_preferred_width_for_height: Callable[ + [CellAreaContext, int], Tuple[int, int] + ] = ... + padding: list[None] = ... + +class CellAreaContextPrivate(GObject.GPointer): ... + +class CellEditable(GObject.GInterface): + """ + Interface GtkCellEditable + + Signals from GObject: + notify (GParam) + """ + + def editing_done(self) -> None: ... + def remove_widget(self) -> None: ... + def start_editing(self, event: Optional[Gdk.Event] = None) -> None: ... + +class CellEditableIface(GObject.GPointer): + """ + :Constructors: + + :: + + CellEditableIface() + """ + + g_iface: GObject.TypeInterface = ... + editing_done: Callable[[CellEditable], None] = ... + remove_widget: Callable[[CellEditable], None] = ... + start_editing: Callable[[CellEditable, Optional[Gdk.Event]], None] = ... + +class CellLayout(GObject.GInterface): + """ + Interface GtkCellLayout + + Signals from GObject: + notify (GParam) + """ + + def add_attribute( + self, cell: CellRenderer, attribute: str, column: int + ) -> None: ... + def clear(self) -> None: ... + def clear_attributes(self, cell: CellRenderer) -> None: ... + def get_area(self) -> Optional[CellArea]: ... + def get_cells(self) -> list[CellRenderer]: ... + def pack_end(self, cell: CellRenderer, expand: bool) -> None: ... + def pack_start(self, cell: CellRenderer, expand: bool) -> None: ... + def reorder(self, cell: CellRenderer, position: int) -> None: ... + def set_cell_data_func( + self, + cell: CellRenderer, + func: Optional[Callable[..., None]] = None, + *func_data: Any, + ) -> None: ... + +class CellLayoutIface(GObject.GPointer): + """ + :Constructors: + + :: + + CellLayoutIface() + """ + + g_iface: GObject.TypeInterface = ... + pack_start: Callable[[CellLayout, CellRenderer, bool], None] = ... + pack_end: Callable[[CellLayout, CellRenderer, bool], None] = ... + clear: Callable[[CellLayout], None] = ... + add_attribute: Callable[[CellLayout, CellRenderer, str, int], None] = ... + set_cell_data_func: Callable[..., None] = ... + clear_attributes: Callable[[CellLayout, CellRenderer], None] = ... + reorder: Callable[[CellLayout, CellRenderer, int], None] = ... + get_cells: Callable[[CellLayout], list[CellRenderer]] = ... + get_area: Callable[[CellLayout], Optional[CellArea]] = ... + +class CellRenderer(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + CellRenderer(**properties) + + Object GtkCellRenderer + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + cell_background: str + + props: Props = ... + parent_instance: GObject.InitiallyUnowned = ... + priv: CellRendererPrivate = ... + def __init__( + self, + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + def activate( + self, + event: Gdk.Event, + widget: Widget, + path: str, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> bool: ... + def do_activate( + self, + event: Gdk.Event, + widget: Widget, + path: str, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> bool: ... + def do_editing_canceled(self) -> None: ... + def do_editing_started(self, editable: CellEditable, path: str) -> None: ... + def do_get_aligned_area( + self, widget: Widget, flags: CellRendererState, cell_area: Gdk.Rectangle + ) -> Gdk.Rectangle: ... + def do_get_preferred_height(self, widget: Widget) -> Tuple[int, int]: ... + def do_get_preferred_height_for_width( + self, widget: Widget, width: int + ) -> Tuple[int, int]: ... + def do_get_preferred_width(self, widget: Widget) -> Tuple[int, int]: ... + def do_get_preferred_width_for_height( + self, widget: Widget, height: int + ) -> Tuple[int, int]: ... + def do_get_request_mode(self) -> SizeRequestMode: ... + def do_snapshot( + self, + snapshot: Snapshot, + widget: Widget, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> None: ... + def do_start_editing( + self, + event: Optional[Gdk.Event], + widget: Widget, + path: str, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> Optional[CellEditable]: ... + def get_aligned_area( + self, widget: Widget, flags: CellRendererState, cell_area: Gdk.Rectangle + ) -> Gdk.Rectangle: ... + def get_alignment(self) -> Tuple[float, float]: ... + def get_fixed_size(self) -> Tuple[int, int]: ... + def get_is_expanded(self) -> bool: ... + def get_is_expander(self) -> bool: ... + def get_padding(self) -> Tuple[int, int]: ... + def get_preferred_height(self, widget: Widget) -> Tuple[int, int]: ... + def get_preferred_height_for_width( + self, widget: Widget, width: int + ) -> Tuple[int, int]: ... + def get_preferred_size(self, widget: Widget) -> Tuple[Requisition, Requisition]: ... + def get_preferred_width(self, widget: Widget) -> Tuple[int, int]: ... + def get_preferred_width_for_height( + self, widget: Widget, height: int + ) -> Tuple[int, int]: ... + def get_request_mode(self) -> SizeRequestMode: ... + def get_sensitive(self) -> bool: ... + def get_state( + self, widget: Optional[Widget], cell_state: CellRendererState + ) -> StateFlags: ... + def get_visible(self) -> bool: ... + def is_activatable(self) -> bool: ... + def set_alignment(self, xalign: float, yalign: float) -> None: ... + def set_fixed_size(self, width: int, height: int) -> None: ... + def set_is_expanded(self, is_expanded: bool) -> None: ... + def set_is_expander(self, is_expander: bool) -> None: ... + def set_padding(self, xpad: int, ypad: int) -> None: ... + def set_sensitive(self, sensitive: bool) -> None: ... + def set_visible(self, visible: bool) -> None: ... + def snapshot( + self, + snapshot: Snapshot, + widget: Widget, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> None: ... + def start_editing( + self, + event: Optional[Gdk.Event], + widget: Widget, + path: str, + background_area: Gdk.Rectangle, + cell_area: Gdk.Rectangle, + flags: CellRendererState, + ) -> Optional[CellEditable]: ... + def stop_editing(self, canceled: bool) -> None: ... + +class CellRendererAccel(CellRendererText): + """ + :Constructors: + + :: + + CellRendererAccel(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererAccel + + Signals from GtkCellRendererAccel: + accel-edited (gchararray, guint, GdkModifierType, guint) + accel-cleared (gchararray) + + Properties from GtkCellRendererAccel: + accel-key -> guint: accel-key + accel-mods -> GdkModifierType: accel-mods + keycode -> guint: keycode + accel-mode -> GtkCellRendererAccelMode: accel-mode + + Signals from GtkCellRendererText: + edited (gchararray, gchararray) + + Properties from GtkCellRendererText: + text -> gchararray: text + markup -> gchararray: markup + attributes -> PangoAttrList: attributes + single-paragraph-mode -> gboolean: single-paragraph-mode + width-chars -> gint: width-chars + max-width-chars -> gint: max-width-chars + wrap-width -> gint: wrap-width + alignment -> PangoAlignment: alignment + placeholder-text -> gchararray: placeholder-text + background -> gchararray: background + foreground -> gchararray: foreground + background-rgba -> GdkRGBA: background-rgba + foreground-rgba -> GdkRGBA: foreground-rgba + font -> gchararray: font + font-desc -> PangoFontDescription: font-desc + family -> gchararray: family + style -> PangoStyle: style + variant -> PangoVariant: variant + weight -> gint: weight + stretch -> PangoStretch: stretch + size -> gint: size + size-points -> gdouble: size-points + scale -> gdouble: scale + editable -> gboolean: editable + strikethrough -> gboolean: strikethrough + underline -> PangoUnderline: underline + rise -> gint: rise + language -> gchararray: language + ellipsize -> PangoEllipsizeMode: ellipsize + wrap-mode -> PangoWrapMode: wrap-mode + background-set -> gboolean: background-set + foreground-set -> gboolean: foreground-set + family-set -> gboolean: family-set + style-set -> gboolean: style-set + variant-set -> gboolean: variant-set + weight-set -> gboolean: weight-set + stretch-set -> gboolean: stretch-set + size-set -> gboolean: size-set + scale-set -> gboolean: scale-set + editable-set -> gboolean: editable-set + strikethrough-set -> gboolean: strikethrough-set + underline-set -> gboolean: underline-set + rise-set -> gboolean: rise-set + language-set -> gboolean: language-set + ellipsize-set -> gboolean: ellipsize-set + align-set -> gboolean: align-set + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + accel_key: int + accel_mode: CellRendererAccelMode + accel_mods: Gdk.ModifierType + keycode: int + align_set: bool + alignment: Pango.Alignment + attributes: Pango.AttrList + background_rgba: Gdk.RGBA + background_set: bool + editable: bool + editable_set: bool + ellipsize: Pango.EllipsizeMode + ellipsize_set: bool + family: str + family_set: bool + font: str + font_desc: Pango.FontDescription + foreground_rgba: Gdk.RGBA + foreground_set: bool + language: str + language_set: bool + max_width_chars: int + placeholder_text: str + rise: int + rise_set: bool + scale: float + scale_set: bool + single_paragraph_mode: bool + size: int + size_points: float + size_set: bool + stretch: Pango.Stretch + stretch_set: bool + strikethrough: bool + strikethrough_set: bool + style: Pango.Style + style_set: bool + text: str + underline: Pango.Underline + underline_set: bool + variant: Pango.Variant + variant_set: bool + weight: int + weight_set: bool + width_chars: int + wrap_mode: Pango.WrapMode + wrap_width: int + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + background: str + foreground: str + markup: str + cell_background: str + + props: Props = ... + def __init__( + self, + accel_key: int = ..., + accel_mode: CellRendererAccelMode = ..., + accel_mods: Gdk.ModifierType = ..., + keycode: int = ..., + align_set: bool = ..., + alignment: Pango.Alignment = ..., + attributes: Pango.AttrList = ..., + background: str = ..., + background_rgba: Gdk.RGBA = ..., + background_set: bool = ..., + editable: bool = ..., + editable_set: bool = ..., + ellipsize: Pango.EllipsizeMode = ..., + ellipsize_set: bool = ..., + family: str = ..., + family_set: bool = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + foreground: str = ..., + foreground_rgba: Gdk.RGBA = ..., + foreground_set: bool = ..., + language: str = ..., + language_set: bool = ..., + markup: str = ..., + max_width_chars: int = ..., + placeholder_text: str = ..., + rise: int = ..., + rise_set: bool = ..., + scale: float = ..., + scale_set: bool = ..., + single_paragraph_mode: bool = ..., + size: int = ..., + size_points: float = ..., + size_set: bool = ..., + stretch: Pango.Stretch = ..., + stretch_set: bool = ..., + strikethrough: bool = ..., + strikethrough_set: bool = ..., + style: Pango.Style = ..., + style_set: bool = ..., + text: str = ..., + underline: Pango.Underline = ..., + underline_set: bool = ..., + variant: Pango.Variant = ..., + variant_set: bool = ..., + weight: int = ..., + weight_set: bool = ..., + width_chars: int = ..., + wrap_mode: Pango.WrapMode = ..., + wrap_width: int = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + @classmethod + def new(cls) -> CellRendererAccel: ... + +class CellRendererClass(GObject.GPointer): + """ + :Constructors: + + :: + + CellRendererClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + get_request_mode: Callable[[CellRenderer], SizeRequestMode] = ... + get_preferred_width: Callable[[CellRenderer, Widget], Tuple[int, int]] = ... + get_preferred_height_for_width: Callable[ + [CellRenderer, Widget, int], Tuple[int, int] + ] = ... + get_preferred_height: Callable[[CellRenderer, Widget], Tuple[int, int]] = ... + get_preferred_width_for_height: Callable[ + [CellRenderer, Widget, int], Tuple[int, int] + ] = ... + get_aligned_area: Callable[ + [CellRenderer, Widget, CellRendererState, Gdk.Rectangle], Gdk.Rectangle + ] = ... + snapshot: Callable[ + [ + CellRenderer, + Snapshot, + Widget, + Gdk.Rectangle, + Gdk.Rectangle, + CellRendererState, + ], + None, + ] = ... + activate: Callable[ + [ + CellRenderer, + Gdk.Event, + Widget, + str, + Gdk.Rectangle, + Gdk.Rectangle, + CellRendererState, + ], + bool, + ] = ... + start_editing: Callable[ + [ + CellRenderer, + Optional[Gdk.Event], + Widget, + str, + Gdk.Rectangle, + Gdk.Rectangle, + CellRendererState, + ], + Optional[CellEditable], + ] = ... + editing_canceled: Callable[[CellRenderer], None] = ... + editing_started: Callable[[CellRenderer, CellEditable, str], None] = ... + padding: list[None] = ... + +class CellRendererClassPrivate(GObject.GPointer): ... + +class CellRendererCombo(CellRendererText): + """ + :Constructors: + + :: + + CellRendererCombo(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererCombo + + Signals from GtkCellRendererCombo: + changed (gchararray, GtkTreeIter) + + Properties from GtkCellRendererCombo: + model -> GtkTreeModel: model + text-column -> gint: text-column + has-entry -> gboolean: has-entry + + Signals from GtkCellRendererText: + edited (gchararray, gchararray) + + Properties from GtkCellRendererText: + text -> gchararray: text + markup -> gchararray: markup + attributes -> PangoAttrList: attributes + single-paragraph-mode -> gboolean: single-paragraph-mode + width-chars -> gint: width-chars + max-width-chars -> gint: max-width-chars + wrap-width -> gint: wrap-width + alignment -> PangoAlignment: alignment + placeholder-text -> gchararray: placeholder-text + background -> gchararray: background + foreground -> gchararray: foreground + background-rgba -> GdkRGBA: background-rgba + foreground-rgba -> GdkRGBA: foreground-rgba + font -> gchararray: font + font-desc -> PangoFontDescription: font-desc + family -> gchararray: family + style -> PangoStyle: style + variant -> PangoVariant: variant + weight -> gint: weight + stretch -> PangoStretch: stretch + size -> gint: size + size-points -> gdouble: size-points + scale -> gdouble: scale + editable -> gboolean: editable + strikethrough -> gboolean: strikethrough + underline -> PangoUnderline: underline + rise -> gint: rise + language -> gchararray: language + ellipsize -> PangoEllipsizeMode: ellipsize + wrap-mode -> PangoWrapMode: wrap-mode + background-set -> gboolean: background-set + foreground-set -> gboolean: foreground-set + family-set -> gboolean: family-set + style-set -> gboolean: style-set + variant-set -> gboolean: variant-set + weight-set -> gboolean: weight-set + stretch-set -> gboolean: stretch-set + size-set -> gboolean: size-set + scale-set -> gboolean: scale-set + editable-set -> gboolean: editable-set + strikethrough-set -> gboolean: strikethrough-set + underline-set -> gboolean: underline-set + rise-set -> gboolean: rise-set + language-set -> gboolean: language-set + ellipsize-set -> gboolean: ellipsize-set + align-set -> gboolean: align-set + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + has_entry: bool + model: TreeModel + text_column: int + align_set: bool + alignment: Pango.Alignment + attributes: Pango.AttrList + background_rgba: Gdk.RGBA + background_set: bool + editable: bool + editable_set: bool + ellipsize: Pango.EllipsizeMode + ellipsize_set: bool + family: str + family_set: bool + font: str + font_desc: Pango.FontDescription + foreground_rgba: Gdk.RGBA + foreground_set: bool + language: str + language_set: bool + max_width_chars: int + placeholder_text: str + rise: int + rise_set: bool + scale: float + scale_set: bool + single_paragraph_mode: bool + size: int + size_points: float + size_set: bool + stretch: Pango.Stretch + stretch_set: bool + strikethrough: bool + strikethrough_set: bool + style: Pango.Style + style_set: bool + text: str + underline: Pango.Underline + underline_set: bool + variant: Pango.Variant + variant_set: bool + weight: int + weight_set: bool + width_chars: int + wrap_mode: Pango.WrapMode + wrap_width: int + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + background: str + foreground: str + markup: str + cell_background: str + + props: Props = ... + def __init__( + self, + has_entry: bool = ..., + model: TreeModel = ..., + text_column: int = ..., + align_set: bool = ..., + alignment: Pango.Alignment = ..., + attributes: Pango.AttrList = ..., + background: str = ..., + background_rgba: Gdk.RGBA = ..., + background_set: bool = ..., + editable: bool = ..., + editable_set: bool = ..., + ellipsize: Pango.EllipsizeMode = ..., + ellipsize_set: bool = ..., + family: str = ..., + family_set: bool = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + foreground: str = ..., + foreground_rgba: Gdk.RGBA = ..., + foreground_set: bool = ..., + language: str = ..., + language_set: bool = ..., + markup: str = ..., + max_width_chars: int = ..., + placeholder_text: str = ..., + rise: int = ..., + rise_set: bool = ..., + scale: float = ..., + scale_set: bool = ..., + single_paragraph_mode: bool = ..., + size: int = ..., + size_points: float = ..., + size_set: bool = ..., + stretch: Pango.Stretch = ..., + stretch_set: bool = ..., + strikethrough: bool = ..., + strikethrough_set: bool = ..., + style: Pango.Style = ..., + style_set: bool = ..., + text: str = ..., + underline: Pango.Underline = ..., + underline_set: bool = ..., + variant: Pango.Variant = ..., + variant_set: bool = ..., + weight: int = ..., + weight_set: bool = ..., + width_chars: int = ..., + wrap_mode: Pango.WrapMode = ..., + wrap_width: int = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + @classmethod + def new(cls) -> CellRendererCombo: ... + +class CellRendererPixbuf(CellRenderer): + """ + :Constructors: + + :: + + CellRendererPixbuf(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererPixbuf + + Properties from GtkCellRendererPixbuf: + pixbuf -> GdkPixbuf: pixbuf + pixbuf-expander-open -> GdkPixbuf: pixbuf-expander-open + pixbuf-expander-closed -> GdkPixbuf: pixbuf-expander-closed + texture -> GdkTexture: texture + icon-size -> GtkIconSize: icon-size + icon-name -> gchararray: icon-name + gicon -> GIcon: gicon + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + gicon: Gio.Icon + icon_name: str + icon_size: IconSize + pixbuf_expander_closed: GdkPixbuf.Pixbuf + pixbuf_expander_open: GdkPixbuf.Pixbuf + texture: Gdk.Texture + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + pixbuf: GdkPixbuf.Pixbuf + cell_background: str + + props: Props = ... + def __init__( + self, + gicon: Gio.Icon = ..., + icon_name: str = ..., + icon_size: IconSize = ..., + pixbuf: GdkPixbuf.Pixbuf = ..., + pixbuf_expander_closed: GdkPixbuf.Pixbuf = ..., + pixbuf_expander_open: GdkPixbuf.Pixbuf = ..., + texture: Gdk.Texture = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + @classmethod + def new(cls) -> CellRendererPixbuf: ... + +class CellRendererPrivate(GObject.GPointer): ... + +class CellRendererProgress(CellRenderer, Orientable): + """ + :Constructors: + + :: + + CellRendererProgress(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererProgress + + Properties from GtkCellRendererProgress: + value -> gint: value + text -> gchararray: text + pulse -> gint: pulse + text-xalign -> gfloat: text-xalign + text-yalign -> gfloat: text-yalign + inverted -> gboolean: inverted + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + inverted: bool + pulse: int + text: str + text_xalign: float + text_yalign: float + value: int + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + orientation: Orientation + cell_background: str + + props: Props = ... + def __init__( + self, + inverted: bool = ..., + pulse: int = ..., + text: str = ..., + text_xalign: float = ..., + text_yalign: float = ..., + value: int = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + orientation: Orientation = ..., + ): ... + @classmethod + def new(cls) -> CellRendererProgress: ... + +class CellRendererSpin(CellRendererText): + """ + :Constructors: + + :: + + CellRendererSpin(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererSpin + + Properties from GtkCellRendererSpin: + adjustment -> GtkAdjustment: adjustment + climb-rate -> gdouble: climb-rate + digits -> guint: digits + + Signals from GtkCellRendererText: + edited (gchararray, gchararray) + + Properties from GtkCellRendererText: + text -> gchararray: text + markup -> gchararray: markup + attributes -> PangoAttrList: attributes + single-paragraph-mode -> gboolean: single-paragraph-mode + width-chars -> gint: width-chars + max-width-chars -> gint: max-width-chars + wrap-width -> gint: wrap-width + alignment -> PangoAlignment: alignment + placeholder-text -> gchararray: placeholder-text + background -> gchararray: background + foreground -> gchararray: foreground + background-rgba -> GdkRGBA: background-rgba + foreground-rgba -> GdkRGBA: foreground-rgba + font -> gchararray: font + font-desc -> PangoFontDescription: font-desc + family -> gchararray: family + style -> PangoStyle: style + variant -> PangoVariant: variant + weight -> gint: weight + stretch -> PangoStretch: stretch + size -> gint: size + size-points -> gdouble: size-points + scale -> gdouble: scale + editable -> gboolean: editable + strikethrough -> gboolean: strikethrough + underline -> PangoUnderline: underline + rise -> gint: rise + language -> gchararray: language + ellipsize -> PangoEllipsizeMode: ellipsize + wrap-mode -> PangoWrapMode: wrap-mode + background-set -> gboolean: background-set + foreground-set -> gboolean: foreground-set + family-set -> gboolean: family-set + style-set -> gboolean: style-set + variant-set -> gboolean: variant-set + weight-set -> gboolean: weight-set + stretch-set -> gboolean: stretch-set + size-set -> gboolean: size-set + scale-set -> gboolean: scale-set + editable-set -> gboolean: editable-set + strikethrough-set -> gboolean: strikethrough-set + underline-set -> gboolean: underline-set + rise-set -> gboolean: rise-set + language-set -> gboolean: language-set + ellipsize-set -> gboolean: ellipsize-set + align-set -> gboolean: align-set + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + adjustment: Adjustment + climb_rate: float + digits: int + align_set: bool + alignment: Pango.Alignment + attributes: Pango.AttrList + background_rgba: Gdk.RGBA + background_set: bool + editable: bool + editable_set: bool + ellipsize: Pango.EllipsizeMode + ellipsize_set: bool + family: str + family_set: bool + font: str + font_desc: Pango.FontDescription + foreground_rgba: Gdk.RGBA + foreground_set: bool + language: str + language_set: bool + max_width_chars: int + placeholder_text: str + rise: int + rise_set: bool + scale: float + scale_set: bool + single_paragraph_mode: bool + size: int + size_points: float + size_set: bool + stretch: Pango.Stretch + stretch_set: bool + strikethrough: bool + strikethrough_set: bool + style: Pango.Style + style_set: bool + text: str + underline: Pango.Underline + underline_set: bool + variant: Pango.Variant + variant_set: bool + weight: int + weight_set: bool + width_chars: int + wrap_mode: Pango.WrapMode + wrap_width: int + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + background: str + foreground: str + markup: str + cell_background: str + + props: Props = ... + def __init__( + self, + adjustment: Adjustment = ..., + climb_rate: float = ..., + digits: int = ..., + align_set: bool = ..., + alignment: Pango.Alignment = ..., + attributes: Pango.AttrList = ..., + background: str = ..., + background_rgba: Gdk.RGBA = ..., + background_set: bool = ..., + editable: bool = ..., + editable_set: bool = ..., + ellipsize: Pango.EllipsizeMode = ..., + ellipsize_set: bool = ..., + family: str = ..., + family_set: bool = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + foreground: str = ..., + foreground_rgba: Gdk.RGBA = ..., + foreground_set: bool = ..., + language: str = ..., + language_set: bool = ..., + markup: str = ..., + max_width_chars: int = ..., + placeholder_text: str = ..., + rise: int = ..., + rise_set: bool = ..., + scale: float = ..., + scale_set: bool = ..., + single_paragraph_mode: bool = ..., + size: int = ..., + size_points: float = ..., + size_set: bool = ..., + stretch: Pango.Stretch = ..., + stretch_set: bool = ..., + strikethrough: bool = ..., + strikethrough_set: bool = ..., + style: Pango.Style = ..., + style_set: bool = ..., + text: str = ..., + underline: Pango.Underline = ..., + underline_set: bool = ..., + variant: Pango.Variant = ..., + variant_set: bool = ..., + weight: int = ..., + weight_set: bool = ..., + width_chars: int = ..., + wrap_mode: Pango.WrapMode = ..., + wrap_width: int = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + @classmethod + def new(cls) -> CellRendererSpin: ... + +class CellRendererSpinner(CellRenderer): + """ + :Constructors: + + :: + + CellRendererSpinner(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererSpinner + + Properties from GtkCellRendererSpinner: + active -> gboolean: active + pulse -> guint: pulse + size -> GtkIconSize: size + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: bool + pulse: int + size: IconSize + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + cell_background: str + + props: Props = ... + def __init__( + self, + active: bool = ..., + pulse: int = ..., + size: IconSize = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + @classmethod + def new(cls) -> CellRendererSpinner: ... + +class CellRendererText(CellRenderer): + """ + :Constructors: + + :: + + CellRendererText(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererText + + Signals from GtkCellRendererText: + edited (gchararray, gchararray) + + Properties from GtkCellRendererText: + text -> gchararray: text + markup -> gchararray: markup + attributes -> PangoAttrList: attributes + single-paragraph-mode -> gboolean: single-paragraph-mode + width-chars -> gint: width-chars + max-width-chars -> gint: max-width-chars + wrap-width -> gint: wrap-width + alignment -> PangoAlignment: alignment + placeholder-text -> gchararray: placeholder-text + background -> gchararray: background + foreground -> gchararray: foreground + background-rgba -> GdkRGBA: background-rgba + foreground-rgba -> GdkRGBA: foreground-rgba + font -> gchararray: font + font-desc -> PangoFontDescription: font-desc + family -> gchararray: family + style -> PangoStyle: style + variant -> PangoVariant: variant + weight -> gint: weight + stretch -> PangoStretch: stretch + size -> gint: size + size-points -> gdouble: size-points + scale -> gdouble: scale + editable -> gboolean: editable + strikethrough -> gboolean: strikethrough + underline -> PangoUnderline: underline + rise -> gint: rise + language -> gchararray: language + ellipsize -> PangoEllipsizeMode: ellipsize + wrap-mode -> PangoWrapMode: wrap-mode + background-set -> gboolean: background-set + foreground-set -> gboolean: foreground-set + family-set -> gboolean: family-set + style-set -> gboolean: style-set + variant-set -> gboolean: variant-set + weight-set -> gboolean: weight-set + stretch-set -> gboolean: stretch-set + size-set -> gboolean: size-set + scale-set -> gboolean: scale-set + editable-set -> gboolean: editable-set + strikethrough-set -> gboolean: strikethrough-set + underline-set -> gboolean: underline-set + rise-set -> gboolean: rise-set + language-set -> gboolean: language-set + ellipsize-set -> gboolean: ellipsize-set + align-set -> gboolean: align-set + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + align_set: bool + alignment: Pango.Alignment + attributes: Pango.AttrList + background_rgba: Gdk.RGBA + background_set: bool + editable: bool + editable_set: bool + ellipsize: Pango.EllipsizeMode + ellipsize_set: bool + family: str + family_set: bool + font: str + font_desc: Pango.FontDescription + foreground_rgba: Gdk.RGBA + foreground_set: bool + language: str + language_set: bool + max_width_chars: int + placeholder_text: str + rise: int + rise_set: bool + scale: float + scale_set: bool + single_paragraph_mode: bool + size: int + size_points: float + size_set: bool + stretch: Pango.Stretch + stretch_set: bool + strikethrough: bool + strikethrough_set: bool + style: Pango.Style + style_set: bool + text: str + underline: Pango.Underline + underline_set: bool + variant: Pango.Variant + variant_set: bool + weight: int + weight_set: bool + width_chars: int + wrap_mode: Pango.WrapMode + wrap_width: int + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + background: str + foreground: str + markup: str + cell_background: str + + props: Props = ... + parent: CellRenderer = ... + def __init__( + self, + align_set: bool = ..., + alignment: Pango.Alignment = ..., + attributes: Pango.AttrList = ..., + background: str = ..., + background_rgba: Gdk.RGBA = ..., + background_set: bool = ..., + editable: bool = ..., + editable_set: bool = ..., + ellipsize: Pango.EllipsizeMode = ..., + ellipsize_set: bool = ..., + family: str = ..., + family_set: bool = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + foreground: str = ..., + foreground_rgba: Gdk.RGBA = ..., + foreground_set: bool = ..., + language: str = ..., + language_set: bool = ..., + markup: str = ..., + max_width_chars: int = ..., + placeholder_text: str = ..., + rise: int = ..., + rise_set: bool = ..., + scale: float = ..., + scale_set: bool = ..., + single_paragraph_mode: bool = ..., + size: int = ..., + size_points: float = ..., + size_set: bool = ..., + stretch: Pango.Stretch = ..., + stretch_set: bool = ..., + strikethrough: bool = ..., + strikethrough_set: bool = ..., + style: Pango.Style = ..., + style_set: bool = ..., + text: str = ..., + underline: Pango.Underline = ..., + underline_set: bool = ..., + variant: Pango.Variant = ..., + variant_set: bool = ..., + weight: int = ..., + weight_set: bool = ..., + width_chars: int = ..., + wrap_mode: Pango.WrapMode = ..., + wrap_width: int = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + def do_edited(self, path: str, new_text: str) -> None: ... + @classmethod + def new(cls) -> CellRendererText: ... + def set_fixed_height_from_font(self, number_of_rows: int) -> None: ... + +class CellRendererTextClass(GObject.GPointer): + """ + :Constructors: + + :: + + CellRendererTextClass() + """ + + parent_class: CellRendererClass = ... + edited: Callable[[CellRendererText, str, str], None] = ... + padding: list[None] = ... + +class CellRendererToggle(CellRenderer): + """ + :Constructors: + + :: + + CellRendererToggle(**properties) + new() -> Gtk.CellRenderer + + Object GtkCellRendererToggle + + Signals from GtkCellRendererToggle: + toggled (gchararray) + + Properties from GtkCellRendererToggle: + activatable -> gboolean: activatable + active -> gboolean: active + radio -> gboolean: radio + inconsistent -> gboolean: inconsistent + + Signals from GtkCellRenderer: + editing-canceled () + editing-started (GtkCellEditable, gchararray) + + Properties from GtkCellRenderer: + mode -> GtkCellRendererMode: mode + visible -> gboolean: visible + sensitive -> gboolean: sensitive + xalign -> gfloat: xalign + yalign -> gfloat: yalign + xpad -> guint: xpad + ypad -> guint: ypad + width -> gint: width + height -> gint: height + is-expander -> gboolean: is-expander + is-expanded -> gboolean: is-expanded + cell-background -> gchararray: cell-background + cell-background-rgba -> GdkRGBA: cell-background-rgba + cell-background-set -> gboolean: cell-background-set + editing -> gboolean: editing + + Signals from GObject: + notify (GParam) + """ + + class Props: + activatable: bool + active: bool + inconsistent: bool + radio: bool + cell_background_rgba: Gdk.RGBA + cell_background_set: bool + editing: bool + height: int + is_expanded: bool + is_expander: bool + mode: CellRendererMode + sensitive: bool + visible: bool + width: int + xalign: float + xpad: int + yalign: float + ypad: int + cell_background: str + + props: Props = ... + def __init__( + self, + activatable: bool = ..., + active: bool = ..., + inconsistent: bool = ..., + radio: bool = ..., + cell_background: str = ..., + cell_background_rgba: Gdk.RGBA = ..., + cell_background_set: bool = ..., + height: int = ..., + is_expanded: bool = ..., + is_expander: bool = ..., + mode: CellRendererMode = ..., + sensitive: bool = ..., + visible: bool = ..., + width: int = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + ): ... + def get_activatable(self) -> bool: ... + def get_active(self) -> bool: ... + def get_radio(self) -> bool: ... + @classmethod + def new(cls) -> CellRendererToggle: ... + def set_activatable(self, setting: bool) -> None: ... + def set_active(self, setting: bool) -> None: ... + def set_radio(self, radio: bool) -> None: ... + +class CellView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + CellView(**properties) + new() -> Gtk.Widget + new_with_context(area:Gtk.CellArea, context:Gtk.CellAreaContext) -> Gtk.Widget + new_with_markup(markup:str) -> Gtk.Widget + new_with_text(text:str) -> Gtk.Widget + new_with_texture(texture:Gdk.Texture) -> Gtk.Widget + + Object GtkCellView + + Properties from GtkCellView: + model -> GtkTreeModel: model + cell-area -> GtkCellArea: cell-area + cell-area-context -> GtkCellAreaContext: cell-area-context + draw-sensitive -> gboolean: draw-sensitive + fit-model -> gboolean: fit-model + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + cell_area: CellArea + cell_area_context: CellAreaContext + draw_sensitive: bool + fit_model: bool + model: Optional[TreeModel] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + cell_area: CellArea = ..., + cell_area_context: CellAreaContext = ..., + draw_sensitive: bool = ..., + fit_model: bool = ..., + model: Optional[TreeModel] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def get_displayed_row(self) -> Optional[TreePath]: ... + def get_draw_sensitive(self) -> bool: ... + def get_fit_model(self) -> bool: ... + def get_model(self) -> Optional[TreeModel]: ... + @classmethod + def new(cls) -> CellView: ... + @classmethod + def new_with_context(cls, area: CellArea, context: CellAreaContext) -> CellView: ... + @classmethod + def new_with_markup(cls, markup: str) -> CellView: ... + @classmethod + def new_with_text(cls, text: str) -> CellView: ... + @classmethod + def new_with_texture(cls, texture: Gdk.Texture) -> CellView: ... + def set_displayed_row(self, path: Optional[TreePath] = None) -> None: ... + def set_draw_sensitive(self, draw_sensitive: bool) -> None: ... + def set_fit_model(self, fit_model: bool) -> None: ... + def set_model(self, model: Optional[TreeModel] = None) -> None: ... + +class CenterBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + CenterBox(**properties) + new() -> Gtk.Widget + + Object GtkCenterBox + + Properties from GtkCenterBox: + start-widget -> GtkWidget: start-widget + center-widget -> GtkWidget: center-widget + end-widget -> GtkWidget: end-widget + baseline-position -> GtkBaselinePosition: baseline-position + shrink-center-last -> gboolean: shrink-center-last + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + baseline_position: BaselinePosition + center_widget: Optional[Widget] + end_widget: Optional[Widget] + shrink_center_last: bool + start_widget: Optional[Widget] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + baseline_position: BaselinePosition = ..., + center_widget: Optional[Widget] = ..., + end_widget: Optional[Widget] = ..., + shrink_center_last: bool = ..., + start_widget: Optional[Widget] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def get_baseline_position(self) -> BaselinePosition: ... + def get_center_widget(self) -> Optional[Widget]: ... + def get_end_widget(self) -> Optional[Widget]: ... + def get_shrink_center_last(self) -> bool: ... + def get_start_widget(self) -> Optional[Widget]: ... + @classmethod + def new(cls) -> CenterBox: ... + def set_baseline_position(self, position: BaselinePosition) -> None: ... + def set_center_widget(self, child: Optional[Widget] = None) -> None: ... + def set_end_widget(self, child: Optional[Widget] = None) -> None: ... + def set_shrink_center_last(self, shrink_center_last: bool) -> None: ... + def set_start_widget(self, child: Optional[Widget] = None) -> None: ... + +class CenterBoxClass(GObject.GPointer): ... + +class CenterLayout(LayoutManager): + """ + :Constructors: + + :: + + CenterLayout(**properties) + new() -> Gtk.LayoutManager + + Object GtkCenterLayout + + Properties from GtkCenterLayout: + shrink-center-last -> gboolean: shrink-center-last + + Signals from GObject: + notify (GParam) + """ + + class Props: + shrink_center_last: bool + + props: Props = ... + def __init__(self, shrink_center_last: bool = ...): ... + def get_baseline_position(self) -> BaselinePosition: ... + def get_center_widget(self) -> Optional[Widget]: ... + def get_end_widget(self) -> Optional[Widget]: ... + def get_orientation(self) -> Orientation: ... + def get_shrink_center_last(self) -> bool: ... + def get_start_widget(self) -> Optional[Widget]: ... + @classmethod + def new(cls) -> CenterLayout: ... + def set_baseline_position(self, baseline_position: BaselinePosition) -> None: ... + def set_center_widget(self, widget: Optional[Widget] = None) -> None: ... + def set_end_widget(self, widget: Optional[Widget] = None) -> None: ... + def set_orientation(self, orientation: Orientation) -> None: ... + def set_shrink_center_last(self, shrink_center_last: bool) -> None: ... + def set_start_widget(self, widget: Optional[Widget] = None) -> None: ... + +class CenterLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + CenterLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class CheckButton(Widget, Accessible, Actionable, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + CheckButton(**properties) + new() -> Gtk.Widget + new_with_label(label:str=None) -> Gtk.Widget + new_with_mnemonic(label:str=None) -> Gtk.Widget + + Object GtkCheckButton + + Signals from GtkCheckButton: + activate () + toggled () + + Properties from GtkCheckButton: + active -> gboolean: active + group -> GtkCheckButton: group + label -> gchararray: label + inconsistent -> gboolean: inconsistent + use-underline -> gboolean: use-underline + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: bool + child: Optional[Widget] + inconsistent: bool + label: Optional[str] + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action_name: Optional[str] + action_target: GLib.Variant + group: Optional[CheckButton] + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + active: bool = ..., + child: Optional[Widget] = ..., + group: Optional[CheckButton] = ..., + inconsistent: bool = ..., + label: Optional[str] = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + ): ... + def do_activate(self) -> None: ... + def do_toggled(self) -> None: ... + def get_active(self) -> bool: ... + def get_child(self) -> Optional[Widget]: ... + def get_inconsistent(self) -> bool: ... + def get_label(self) -> Optional[str]: ... + def get_use_underline(self) -> bool: ... + @classmethod + def new(cls) -> CheckButton: ... + @classmethod + def new_with_label(cls, label: Optional[str] = None) -> CheckButton: ... + @classmethod + def new_with_mnemonic(cls, label: Optional[str] = None) -> CheckButton: ... + def set_active(self, setting: bool) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_group(self, group: Optional[CheckButton] = None) -> None: ... + def set_inconsistent(self, inconsistent: bool) -> None: ... + def set_label(self, label: Optional[str] = None) -> None: ... + def set_use_underline(self, setting: bool) -> None: ... + +class CheckButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + CheckButtonClass() + """ + + parent_class: WidgetClass = ... + toggled: Callable[[CheckButton], None] = ... + activate: Callable[[CheckButton], None] = ... + padding: list[None] = ... + +class ClosureExpression(Expression): + """ + :Constructors: + + :: + + ClosureExpression(**properties) + new(value_type:GType, closure:GObject.Closure, params:list=None) -> Gtk.ClosureExpression + """ + + @classmethod + def new( + cls, + value_type: Type, + closure: Callable[..., Any], + params: Optional[Sequence[Expression]] = None, + ) -> ClosureExpression: ... + +class ColorButton(Widget, Accessible, Buildable, ColorChooser, ConstraintTarget): + """ + :Constructors: + + :: + + ColorButton(**properties) + new() -> Gtk.Widget + new_with_rgba(rgba:Gdk.RGBA) -> Gtk.Widget + + Object GtkColorButton + + Signals from GtkColorButton: + activate () + color-set () + + Properties from GtkColorButton: + title -> gchararray: title + show-editor -> gboolean: show-editor + modal -> gboolean: modal + + Signals from GtkColorChooser: + color-activated (GdkRGBA) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + modal: bool + show_editor: bool + title: str + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + rgba: Gdk.RGBA + use_alpha: bool + + props: Props = ... + def __init__( + self, + modal: bool = ..., + show_editor: bool = ..., + title: str = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + rgba: Gdk.RGBA = ..., + use_alpha: bool = ..., + ): ... + def get_modal(self) -> bool: ... + def get_title(self) -> str: ... + @classmethod + def new(cls) -> ColorButton: ... + @classmethod + def new_with_rgba(cls, rgba: Gdk.RGBA) -> ColorButton: ... + def set_modal(self, modal: bool) -> None: ... + def set_title(self, title: str) -> None: ... + +class ColorChooser(GObject.GInterface): + """ + Interface GtkColorChooser + + Signals from GObject: + notify (GParam) + """ + + def add_palette( + self, + orientation: Orientation, + colors_per_line: int, + colors: Optional[Sequence[Gdk.RGBA]] = None, + ) -> None: ... + def get_rgba(self) -> Gdk.RGBA: ... + def get_use_alpha(self) -> bool: ... + def set_rgba(self, color: Gdk.RGBA) -> None: ... + def set_use_alpha(self, use_alpha: bool) -> None: ... + +class ColorChooserDialog( + Dialog, + Accessible, + Buildable, + ColorChooser, + ConstraintTarget, + Native, + Root, + ShortcutManager, +): + """ + :Constructors: + + :: + + ColorChooserDialog(**properties) + new(title:str=None, parent:Gtk.Window=None) -> Gtk.Widget + + Object GtkColorChooserDialog + + Properties from GtkColorChooserDialog: + show-editor -> gboolean: show-editor + + Signals from GtkColorChooser: + color-activated (GdkRGBA) + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + show_editor: bool + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + rgba: Gdk.RGBA + use_alpha: bool + startup_id: str + + props: Props = ... + def __init__( + self, + show_editor: bool = ..., + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + rgba: Gdk.RGBA = ..., + use_alpha: bool = ..., + ): ... + @classmethod + def new( + cls, title: Optional[str] = None, parent: Optional[Window] = None + ) -> ColorChooserDialog: ... + +class ColorChooserInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ColorChooserInterface() + """ + + base_interface: GObject.TypeInterface = ... + get_rgba: Callable[[ColorChooser], Gdk.RGBA] = ... + set_rgba: Callable[[ColorChooser, Gdk.RGBA], None] = ... + add_palette: Callable[ + [ColorChooser, Orientation, int, Optional[Sequence[Gdk.RGBA]]], None + ] = ... + color_activated: Callable[[ColorChooser, Gdk.RGBA], None] = ... + padding: list[None] = ... + +class ColorChooserWidget(Widget, Accessible, Buildable, ColorChooser, ConstraintTarget): + """ + :Constructors: + + :: + + ColorChooserWidget(**properties) + new() -> Gtk.Widget + + Object GtkColorChooserWidget + + Properties from GtkColorChooserWidget: + show-editor -> gboolean: show-editor + + Signals from GtkColorChooser: + color-activated (GdkRGBA) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + show_editor: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + rgba: Gdk.RGBA + use_alpha: bool + + props: Props = ... + def __init__( + self, + show_editor: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + rgba: Gdk.RGBA = ..., + use_alpha: bool = ..., + ): ... + @classmethod + def new(cls) -> ColorChooserWidget: ... + +class ColorDialog(GObject.Object): + """ + :Constructors: + + :: + + ColorDialog(**properties) + new() -> Gtk.ColorDialog + + Object GtkColorDialog + + Properties from GtkColorDialog: + title -> gchararray: title + modal -> gboolean: modal + with-alpha -> gboolean: with-alpha + + Signals from GObject: + notify (GParam) + """ + + class Props: + modal: bool + title: str + with_alpha: bool + + props: Props = ... + def __init__(self, modal: bool = ..., title: str = ..., with_alpha: bool = ...): ... + def choose_rgba( + self, + parent: Optional[Window] = None, + initial_color: Optional[Gdk.RGBA] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def choose_rgba_finish(self, result: Gio.AsyncResult) -> Optional[Gdk.RGBA]: ... + def get_modal(self) -> bool: ... + def get_title(self) -> str: ... + def get_with_alpha(self) -> bool: ... + @classmethod + def new(cls) -> ColorDialog: ... + def set_modal(self, modal: bool) -> None: ... + def set_title(self, title: str) -> None: ... + def set_with_alpha(self, with_alpha: bool) -> None: ... + +class ColorDialogButton(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ColorDialogButton(**properties) + new(dialog:Gtk.ColorDialog=None) -> Gtk.Widget + + Object GtkColorDialogButton + + Signals from GtkColorDialogButton: + activate () + + Properties from GtkColorDialogButton: + dialog -> GtkColorDialog: dialog + rgba -> GdkRGBA: rgba + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + dialog: Optional[ColorDialog] + rgba: Gdk.RGBA + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + dialog: ColorDialog = ..., + rgba: Gdk.RGBA = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_dialog(self) -> Optional[ColorDialog]: ... + def get_rgba(self) -> Gdk.RGBA: ... + @classmethod + def new(cls, dialog: Optional[ColorDialog] = None) -> ColorDialogButton: ... + def set_dialog(self, dialog: ColorDialog) -> None: ... + def set_rgba(self, color: Gdk.RGBA) -> None: ... + +class ColorDialogButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + ColorDialogButtonClass() + """ + + parent_class: WidgetClass = ... + +class ColorDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + ColorDialogClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ColumnView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): + """ + :Constructors: + + :: + + ColumnView(**properties) + new(model:Gtk.SelectionModel=None) -> Gtk.Widget + + Object GtkColumnView + + Signals from GtkColumnView: + activate (guint) + + Properties from GtkColumnView: + columns -> GListModel: columns + enable-rubberband -> gboolean: enable-rubberband + header-factory -> GtkListItemFactory: header-factory + model -> GtkSelectionModel: model + reorderable -> gboolean: reorderable + row-factory -> GtkListItemFactory: row-factory + show-row-separators -> gboolean: show-row-separators + show-column-separators -> gboolean: show-column-separators + single-click-activate -> gboolean: single-click-activate + sorter -> GtkSorter: sorter + tab-behavior -> GtkListTabBehavior: tab-behavior + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + columns: Gio.ListModel + enable_rubberband: bool + header_factory: Optional[ListItemFactory] + model: Optional[SelectionModel] + reorderable: bool + row_factory: Optional[ListItemFactory] + show_column_separators: bool + show_row_separators: bool + single_click_activate: bool + sorter: Optional[Sorter] + tab_behavior: ListTabBehavior + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + def __init__( + self, + enable_rubberband: bool = ..., + header_factory: Optional[ListItemFactory] = ..., + model: Optional[SelectionModel] = ..., + reorderable: bool = ..., + row_factory: Optional[ListItemFactory] = ..., + show_column_separators: bool = ..., + show_row_separators: bool = ..., + single_click_activate: bool = ..., + tab_behavior: ListTabBehavior = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + def append_column(self, column: ColumnViewColumn) -> None: ... + def get_columns(self) -> Gio.ListModel: ... + def get_enable_rubberband(self) -> bool: ... + def get_header_factory(self) -> Optional[ListItemFactory]: ... + def get_model(self) -> Optional[SelectionModel]: ... + def get_reorderable(self) -> bool: ... + def get_row_factory(self) -> Optional[ListItemFactory]: ... + def get_show_column_separators(self) -> bool: ... + def get_show_row_separators(self) -> bool: ... + def get_single_click_activate(self) -> bool: ... + def get_sorter(self) -> Optional[Sorter]: ... + def get_tab_behavior(self) -> ListTabBehavior: ... + def insert_column(self, position: int, column: ColumnViewColumn) -> None: ... + @classmethod + def new(cls, model: Optional[SelectionModel] = None) -> ColumnView: ... + def remove_column(self, column: ColumnViewColumn) -> None: ... + def scroll_to( + self, + pos: int, + column: Optional[ColumnViewColumn], + flags: ListScrollFlags, + scroll: Optional[ScrollInfo] = None, + ) -> None: ... + def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... + def set_header_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_model(self, model: Optional[SelectionModel] = None) -> None: ... + def set_reorderable(self, reorderable: bool) -> None: ... + def set_row_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_show_column_separators(self, show_column_separators: bool) -> None: ... + def set_show_row_separators(self, show_row_separators: bool) -> None: ... + def set_single_click_activate(self, single_click_activate: bool) -> None: ... + def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... + def sort_by_column( + self, column: Optional[ColumnViewColumn], direction: SortType + ) -> None: ... + +class ColumnViewCell(ListItem): + """ + :Constructors: + + :: + + ColumnViewCell(**properties) + + Object GtkColumnViewCell + + Properties from GtkColumnViewCell: + child -> GtkWidget: child + focusable -> gboolean: focusable + item -> GObject: item + position -> guint: position + selected -> gboolean: selected + + Properties from GtkListItem: + accessible-description -> gchararray: accessible-description + accessible-label -> gchararray: accessible-label + activatable -> gboolean: activatable + child -> GtkWidget: child + focusable -> gboolean: focusable + item -> GObject: item + position -> guint: position + selectable -> gboolean: selectable + selected -> gboolean: selected + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + focusable: bool + item: Optional[GObject.Object] + position: int + selected: bool + accessible_description: str + accessible_label: str + activatable: bool + selectable: bool + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + focusable: bool = ..., + accessible_description: str = ..., + accessible_label: str = ..., + activatable: bool = ..., + selectable: bool = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_focusable(self) -> bool: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_position(self) -> int: ... + def get_selected(self) -> bool: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_focusable(self, focusable: bool) -> None: ... + +class ColumnViewCellClass(GObject.GPointer): ... +class ColumnViewClass(GObject.GPointer): ... + +class ColumnViewColumn(GObject.Object): + """ + :Constructors: + + :: + + ColumnViewColumn(**properties) + new(title:str=None, factory:Gtk.ListItemFactory=None) -> Gtk.ColumnViewColumn + + Object GtkColumnViewColumn + + Properties from GtkColumnViewColumn: + column-view -> GtkColumnView: column-view + factory -> GtkListItemFactory: factory + title -> gchararray: title + sorter -> GtkSorter: sorter + visible -> gboolean: visible + header-menu -> GMenuModel: header-menu + resizable -> gboolean: resizable + expand -> gboolean: expand + fixed-width -> gint: fixed-width + id -> gchararray: id + + Signals from GObject: + notify (GParam) + """ + + class Props: + column_view: Optional[ColumnView] + expand: bool + factory: Optional[ListItemFactory] + fixed_width: int + header_menu: Optional[Gio.MenuModel] + id: Optional[str] + resizable: bool + sorter: Optional[Sorter] + title: Optional[str] + visible: bool + + props: Props = ... + def __init__( + self, + expand: bool = ..., + factory: Optional[ListItemFactory] = ..., + fixed_width: int = ..., + header_menu: Optional[Gio.MenuModel] = ..., + id: Optional[str] = ..., + resizable: bool = ..., + sorter: Optional[Sorter] = ..., + title: Optional[str] = ..., + visible: bool = ..., + ): ... + def get_column_view(self) -> Optional[ColumnView]: ... + def get_expand(self) -> bool: ... + def get_factory(self) -> Optional[ListItemFactory]: ... + def get_fixed_width(self) -> int: ... + def get_header_menu(self) -> Optional[Gio.MenuModel]: ... + def get_id(self) -> Optional[str]: ... + def get_resizable(self) -> bool: ... + def get_sorter(self) -> Optional[Sorter]: ... + def get_title(self) -> Optional[str]: ... + def get_visible(self) -> bool: ... + @classmethod + def new( + cls, title: Optional[str] = None, factory: Optional[ListItemFactory] = None + ) -> ColumnViewColumn: ... + def set_expand(self, expand: bool) -> None: ... + def set_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_fixed_width(self, fixed_width: int) -> None: ... + def set_header_menu(self, menu: Optional[Gio.MenuModel] = None) -> None: ... + def set_id(self, id: Optional[str] = None) -> None: ... + def set_resizable(self, resizable: bool) -> None: ... + def set_sorter(self, sorter: Optional[Sorter] = None) -> None: ... + def set_title(self, title: Optional[str] = None) -> None: ... + def set_visible(self, visible: bool) -> None: ... + +class ColumnViewColumnClass(GObject.GPointer): ... + +class ColumnViewRow(GObject.Object): + """ + :Constructors: + + :: + + ColumnViewRow(**properties) + + Object GtkColumnViewRow + + Properties from GtkColumnViewRow: + accessible-description -> gchararray: accessible-description + accessible-label -> gchararray: accessible-label + activatable -> gboolean: activatable + focusable -> gboolean: focusable + item -> GObject: item + position -> guint: position + selectable -> gboolean: selectable + selected -> gboolean: selected + + Signals from GObject: + notify (GParam) + """ + + class Props: + accessible_description: str + accessible_label: str + activatable: bool + focusable: bool + item: Optional[GObject.Object] + position: int + selectable: bool + selected: bool + + props: Props = ... + def __init__( + self, + accessible_description: str = ..., + accessible_label: str = ..., + activatable: bool = ..., + focusable: bool = ..., + selectable: bool = ..., + ): ... + def get_accessible_description(self) -> str: ... + def get_accessible_label(self) -> str: ... + def get_activatable(self) -> bool: ... + def get_focusable(self) -> bool: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_position(self) -> int: ... + def get_selectable(self) -> bool: ... + def get_selected(self) -> bool: ... + def set_accessible_description(self, description: str) -> None: ... + def set_accessible_label(self, label: str) -> None: ... + def set_activatable(self, activatable: bool) -> None: ... + def set_focusable(self, focusable: bool) -> None: ... + def set_selectable(self, selectable: bool) -> None: ... + +class ColumnViewRowClass(GObject.GPointer): ... + +class ColumnViewSorter(Sorter): + """ + :Constructors: + + :: + + ColumnViewSorter(**properties) + + Object GtkColumnViewSorter + + Properties from GtkColumnViewSorter: + primary-sort-column -> GtkColumnViewColumn: primary-sort-column + primary-sort-order -> GtkSortType: primary-sort-order + + Signals from GtkSorter: + changed (GtkSorterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + primary_sort_column: Optional[ColumnViewColumn] + primary_sort_order: SortType + + props: Props = ... + def get_n_sort_columns(self) -> int: ... + def get_nth_sort_column( + self, position: int + ) -> Tuple[Optional[ColumnViewColumn], SortType]: ... + def get_primary_sort_column(self) -> Optional[ColumnViewColumn]: ... + def get_primary_sort_order(self) -> SortType: ... + +class ColumnViewSorterClass(GObject.GPointer): + """ + :Constructors: + + :: + + ColumnViewSorterClass() + """ + + parent_class: SorterClass = ... + +class ComboBox( + Widget, Accessible, Buildable, CellEditable, CellLayout, ConstraintTarget +): + """ + :Constructors: + + :: + + ComboBox(**properties) + new() -> Gtk.Widget + new_with_entry() -> Gtk.Widget + new_with_model(model:Gtk.TreeModel) -> Gtk.Widget + new_with_model_and_entry(model:Gtk.TreeModel) -> Gtk.Widget + + Object GtkComboBox + + Signals from GtkComboBox: + changed () + activate () + move-active (GtkScrollType) + popup () + popdown () -> gboolean + format-entry-text (gchararray) -> gchararray + + Properties from GtkComboBox: + model -> GtkTreeModel: model + active -> gint: active + has-frame -> gboolean: has-frame + popup-shown -> gboolean: popup-shown + button-sensitivity -> GtkSensitivityType: button-sensitivity + has-entry -> gboolean: has-entry + entry-text-column -> gint: entry-text-column + popup-fixed-width -> gboolean: popup-fixed-width + id-column -> gint: id-column + active-id -> gchararray: active-id + child -> GtkWidget: child + + Signals from GtkCellEditable: + editing-done () + remove-widget () + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: int + active_id: Optional[str] + button_sensitivity: SensitivityType + child: Optional[Widget] + entry_text_column: int + has_entry: bool + has_frame: bool + id_column: int + model: Optional[TreeModel] + popup_fixed_width: bool + popup_shown: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + editing_canceled: bool + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + active: int = ..., + active_id: Optional[str] = ..., + button_sensitivity: SensitivityType = ..., + child: Optional[Widget] = ..., + entry_text_column: int = ..., + has_entry: bool = ..., + has_frame: bool = ..., + id_column: int = ..., + model: Optional[TreeModel] = ..., + popup_fixed_width: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editing_canceled: bool = ..., + ): ... + def do_activate(self) -> None: ... + def do_changed(self) -> None: ... + def do_format_entry_text(self, path: str) -> str: ... + def get_active(self) -> int: ... + def get_active_id(self) -> Optional[str]: ... + def get_active_iter(self) -> Optional[TreeIter]: ... # CHECK Wrapped function + def get_button_sensitivity(self) -> SensitivityType: ... + def get_child(self) -> Optional[Widget]: ... + def get_entry_text_column(self) -> int: ... + def get_has_entry(self) -> bool: ... + def get_id_column(self) -> int: ... + def get_model(self) -> Optional[TreeModel]: ... + def get_popup_fixed_width(self) -> bool: ... + @classmethod + def new(cls) -> ComboBox: ... + @classmethod + def new_with_entry(cls) -> ComboBox: ... + @classmethod + def new_with_model(cls, model: TreeModel) -> ComboBox: ... + @classmethod + def new_with_model_and_entry(cls, model: TreeModel) -> ComboBox: ... + def popdown(self) -> None: ... + def popup(self) -> None: ... + def popup_for_device(self, device: Gdk.Device) -> None: ... + def set_active(self, index_: int) -> None: ... + def set_active_id(self, active_id: Optional[str] = None) -> bool: ... + def set_active_iter(self, iter: Optional[TreeIter] = None) -> None: ... + def set_button_sensitivity(self, sensitivity: SensitivityType) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_entry_text_column(self, text_column: int) -> None: ... + def set_id_column(self, id_column: int) -> None: ... + def set_model(self, model: Optional[TreeModel] = None) -> None: ... + def set_popup_fixed_width(self, fixed: bool) -> None: ... + def set_row_separator_func( + self, func: Optional[Callable[..., bool]] = None, *data: Any + ) -> None: ... + +class ComboBoxClass(GObject.GPointer): + """ + :Constructors: + + :: + + ComboBoxClass() + """ + + parent_class: WidgetClass = ... + changed: Callable[[ComboBox], None] = ... + format_entry_text: Callable[[ComboBox, str], str] = ... + activate: Callable[[ComboBox], None] = ... + padding: list[None] = ... + +class ComboBoxText( + ComboBox, Accessible, Buildable, CellEditable, CellLayout, ConstraintTarget +): + """ + :Constructors: + + :: + + ComboBoxText(**properties) + new() -> Gtk.Widget + new_with_entry() -> Gtk.Widget + + Object GtkComboBoxText + + Signals from GtkCellEditable: + editing-done () + remove-widget () + + Signals from GtkComboBox: + changed () + activate () + move-active (GtkScrollType) + popup () + popdown () -> gboolean + format-entry-text (gchararray) -> gchararray + + Properties from GtkComboBox: + model -> GtkTreeModel: model + active -> gint: active + has-frame -> gboolean: has-frame + popup-shown -> gboolean: popup-shown + button-sensitivity -> GtkSensitivityType: button-sensitivity + has-entry -> gboolean: has-entry + entry-text-column -> gint: entry-text-column + popup-fixed-width -> gboolean: popup-fixed-width + id-column -> gint: id-column + active-id -> gchararray: active-id + child -> GtkWidget: child + + Signals from GtkCellEditable: + editing-done () + remove-widget () + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: int + active_id: Optional[str] + button_sensitivity: SensitivityType + child: Optional[Widget] + entry_text_column: int + has_entry: bool + has_frame: bool + id_column: int + model: Optional[TreeModel] + popup_fixed_width: bool + popup_shown: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + editing_canceled: bool + + props: Props = ... + def __init__( + self, + active: int = ..., + active_id: Optional[str] = ..., + button_sensitivity: SensitivityType = ..., + child: Optional[Widget] = ..., + entry_text_column: int = ..., + has_entry: bool = ..., + has_frame: bool = ..., + id_column: int = ..., + model: Optional[TreeModel] = ..., + popup_fixed_width: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editing_canceled: bool = ..., + ): ... + def append(self, id: Optional[str], text: str) -> None: ... + def append_text(self, text: str) -> None: ... + def get_active_text(self) -> Optional[str]: ... + def insert(self, position: int, id: Optional[str], text: str) -> None: ... + def insert_text(self, position: int, text: str) -> None: ... + @classmethod + def new(cls) -> ComboBoxText: ... + @classmethod + def new_with_entry(cls) -> ComboBoxText: ... + def prepend(self, id: Optional[str], text: str) -> None: ... + def prepend_text(self, text: str) -> None: ... + def remove(self, position: int) -> None: ... + def remove_all(self) -> None: ... + +class ConstantExpression(Expression): + """ + :Constructors: + + :: + + ConstantExpression(**properties) + new_for_value(value:GObject.Value) -> Gtk.ConstantExpression + """ + + def get_value(self) -> Any: ... + @classmethod + def new_for_value(cls, value: Any) -> ConstantExpression: ... + +class Constraint(GObject.Object): + """ + :Constructors: + + :: + + Constraint(**properties) + new(target:Gtk.ConstraintTarget=None, target_attribute:Gtk.ConstraintAttribute, relation:Gtk.ConstraintRelation, source:Gtk.ConstraintTarget=None, source_attribute:Gtk.ConstraintAttribute, multiplier:float, constant:float, strength:int) -> Gtk.Constraint + new_constant(target:Gtk.ConstraintTarget=None, target_attribute:Gtk.ConstraintAttribute, relation:Gtk.ConstraintRelation, constant:float, strength:int) -> Gtk.Constraint + + Object GtkConstraint + + Properties from GtkConstraint: + target -> GtkConstraintTarget: target + target-attribute -> GtkConstraintAttribute: target-attribute + relation -> GtkConstraintRelation: relation + source -> GtkConstraintTarget: source + source-attribute -> GtkConstraintAttribute: source-attribute + multiplier -> gdouble: multiplier + constant -> gdouble: constant + strength -> gint: strength + + Signals from GObject: + notify (GParam) + """ + + class Props: + constant: float + multiplier: float + relation: ConstraintRelation + source: Optional[ConstraintTarget] + source_attribute: ConstraintAttribute + strength: int + target: Optional[ConstraintTarget] + target_attribute: ConstraintAttribute + + props: Props = ... + def __init__( + self, + constant: float = ..., + multiplier: float = ..., + relation: ConstraintRelation = ..., + source: ConstraintTarget = ..., + source_attribute: ConstraintAttribute = ..., + strength: int = ..., + target: ConstraintTarget = ..., + target_attribute: ConstraintAttribute = ..., + ): ... + def get_constant(self) -> float: ... + def get_multiplier(self) -> float: ... + def get_relation(self) -> ConstraintRelation: ... + def get_source(self) -> Optional[ConstraintTarget]: ... + def get_source_attribute(self) -> ConstraintAttribute: ... + def get_strength(self) -> int: ... + def get_target(self) -> Optional[ConstraintTarget]: ... + def get_target_attribute(self) -> ConstraintAttribute: ... + def is_attached(self) -> bool: ... + def is_constant(self) -> bool: ... + def is_required(self) -> bool: ... + @classmethod + def new( + cls, + target: Optional[ConstraintTarget], + target_attribute: ConstraintAttribute, + relation: ConstraintRelation, + source: Optional[ConstraintTarget], + source_attribute: ConstraintAttribute, + multiplier: float, + constant: float, + strength: int, + ) -> Constraint: ... + @classmethod + def new_constant( + cls, + target: Optional[ConstraintTarget], + target_attribute: ConstraintAttribute, + relation: ConstraintRelation, + constant: float, + strength: int, + ) -> Constraint: ... + +class ConstraintClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConstraintClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ConstraintGuide(GObject.Object, ConstraintTarget): + """ + :Constructors: + + :: + + ConstraintGuide(**properties) + new() -> Gtk.ConstraintGuide + + Object GtkConstraintGuide + + Properties from GtkConstraintGuide: + min-width -> gint: min-width + min-height -> gint: min-height + nat-width -> gint: nat-width + nat-height -> gint: nat-height + max-width -> gint: max-width + max-height -> gint: max-height + strength -> GtkConstraintStrength: strength + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + max_height: int + max_width: int + min_height: int + min_width: int + name: Optional[str] + nat_height: int + nat_width: int + strength: ConstraintStrength + + props: Props = ... + def __init__( + self, + max_height: int = ..., + max_width: int = ..., + min_height: int = ..., + min_width: int = ..., + name: Optional[str] = ..., + nat_height: int = ..., + nat_width: int = ..., + strength: ConstraintStrength = ..., + ): ... + def get_max_size(self) -> Tuple[int, int]: ... + def get_min_size(self) -> Tuple[int, int]: ... + def get_name(self) -> Optional[str]: ... + def get_nat_size(self) -> Tuple[int, int]: ... + def get_strength(self) -> ConstraintStrength: ... + @classmethod + def new(cls) -> ConstraintGuide: ... + def set_max_size(self, width: int, height: int) -> None: ... + def set_min_size(self, width: int, height: int) -> None: ... + def set_name(self, name: Optional[str] = None) -> None: ... + def set_nat_size(self, width: int, height: int) -> None: ... + def set_strength(self, strength: ConstraintStrength) -> None: ... + +class ConstraintGuideClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConstraintGuideClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ConstraintLayout(LayoutManager, Buildable): + """ + :Constructors: + + :: + + ConstraintLayout(**properties) + new() -> Gtk.LayoutManager + + Object GtkConstraintLayout + + Signals from GObject: + notify (GParam) + """ + + def add_constraint(self, constraint: Constraint) -> None: ... + def add_constraints_from_description( + self, + lines: Sequence[str], + hspacing: int, + vspacing: int, + views: dict[str, ConstraintTarget], + ) -> list[Constraint]: ... + def add_guide(self, guide: ConstraintGuide) -> None: ... + @classmethod + def new(cls) -> ConstraintLayout: ... + def observe_constraints(self) -> Gio.ListModel: ... + def observe_guides(self) -> Gio.ListModel: ... + def remove_all_constraints(self) -> None: ... + def remove_constraint(self, constraint: Constraint) -> None: ... + def remove_guide(self, guide: ConstraintGuide) -> None: ... + +class ConstraintLayoutChild(LayoutChild): + """ + :Constructors: + + :: + + ConstraintLayoutChild(**properties) + + Object GtkConstraintLayoutChild + + Properties from GtkLayoutChild: + layout-manager -> GtkLayoutManager: layout-manager + child-widget -> GtkWidget: child-widget + + Signals from GObject: + notify (GParam) + """ + + class Props: + child_widget: Widget + layout_manager: LayoutManager + + props: Props = ... + def __init__( + self, child_widget: Widget = ..., layout_manager: LayoutManager = ... + ): ... + +class ConstraintLayoutChildClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConstraintLayoutChildClass() + """ + + parent_class: LayoutChildClass = ... + +class ConstraintLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConstraintLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class ConstraintTarget(GObject.GInterface): ... +class ConstraintTargetInterface(GObject.GPointer): ... + +class CssLocation(GObject.GPointer): + """ + :Constructors: + + :: + + CssLocation() + """ + + bytes: int = ... + chars: int = ... + lines: int = ... + line_bytes: int = ... + line_chars: int = ... + +class CssProvider(GObject.Object, StyleProvider): + """ + :Constructors: + + :: + + CssProvider(**properties) + new() -> Gtk.CssProvider + + Object GtkCssProvider + + Signals from GtkCssProvider: + parsing-error (GtkCssSection, GError) + + Signals from GtkStyleProvider: + gtk-private-changed () + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + def load_from_bytes(self, data: GLib.Bytes) -> None: ... + def load_from_data(self, text, length=-1): ... # FIXME Function + def load_from_file(self, file: Gio.File) -> None: ... + def load_from_path(self, path: str) -> None: ... + def load_from_resource(self, resource_path: str) -> None: ... + def load_from_string(self, string: str) -> None: ... + def load_named(self, name: str, variant: Optional[str] = None) -> None: ... + @classmethod + def new(cls) -> CssProvider: ... + def to_string(self) -> str: ... + +class CssProviderClass(GObject.GPointer): ... +class CssProviderPrivate(GObject.GPointer): ... + +class CssSection(GObject.GBoxed): + """ + :Constructors: + + :: + + new(file:Gio.File=None, start:Gtk.CssLocation, end:Gtk.CssLocation) -> Gtk.CssSection + """ + + def get_end_location(self) -> CssLocation: ... + def get_file(self) -> Optional[Gio.File]: ... + def get_parent(self) -> Optional[CssSection]: ... + def get_start_location(self) -> CssLocation: ... + @classmethod + def new( + cls, file: Optional[Gio.File], start: CssLocation, end: CssLocation + ) -> CssSection: ... + def print_(self, string: GLib.String) -> None: ... + def ref(self) -> CssSection: ... + def to_string(self) -> str: ... + def unref(self) -> None: ... + +class CssStyleChange(GObject.GPointer): ... + +class CustomFilter(Filter): + """ + :Constructors: + + :: + + CustomFilter(**properties) + new(match_func:Gtk.CustomFilterFunc=None, user_data=None) -> Gtk.CustomFilter + + Object GtkCustomFilter + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new( + cls, match_func: Optional[Callable[..., bool]] = None, *user_data: Any + ) -> CustomFilter: ... + def set_filter_func( + self, match_func: Optional[Callable[..., bool]] = None, *user_data: Any + ) -> None: ... + +class CustomFilterClass(GObject.GPointer): + """ + :Constructors: + + :: + + CustomFilterClass() + """ + + parent_class: FilterClass = ... + +class CustomLayout(LayoutManager): + """ + :Constructors: + + :: + + CustomLayout(**properties) + new(request_mode:Gtk.CustomRequestModeFunc=None, measure:Gtk.CustomMeasureFunc, allocate:Gtk.CustomAllocateFunc) -> Gtk.LayoutManager + + Object GtkCustomLayout + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new( + cls, + request_mode: Optional[Callable[[Widget], SizeRequestMode]], + measure: Callable[[Widget, Orientation, int], Tuple[int, int, int, int]], + allocate: Callable[[Widget, int, int, int], None], + ) -> CustomLayout: ... + +class CustomLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + CustomLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class CustomSorter(Sorter): + """ + :Constructors: + + :: + + CustomSorter(**properties) + new(sort_func:GLib.CompareDataFunc=None, user_data=None) -> Gtk.CustomSorter + + Object GtkCustomSorter + + Signals from GtkSorter: + changed (GtkSorterChange) + + Signals from GObject: + notify (GParam) + """ + + def new(sort_func, user_data=None): ... # FIXME Function + def set_sort_func(self, sort_func, user_data=None): ... # FIXME Function + +class CustomSorterClass(GObject.GPointer): + """ + :Constructors: + + :: + + CustomSorterClass() + """ + + parent_class: SorterClass = ... + +class Dialog( + Window, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + Dialog(**properties) + new() -> Gtk.Widget + + Object GtkDialog + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + parent_instance: Window = ... + def __init__( + self, + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_action_widget(self, child: Widget, response_id: int) -> None: ... + def add_button(self, button_text: str, response_id: int) -> Widget: ... + def add_buttons(self, *args): ... # FIXME Function + def do_close(self) -> None: ... + def do_response(self, response_id: int) -> None: ... + def get_content_area(self) -> Box: ... + def get_header_bar(self) -> HeaderBar: ... + def get_response_for_widget(self, widget: Widget) -> int: ... + def get_widget_for_response(self, response_id: int) -> Optional[Widget]: ... + @classmethod + def new(cls) -> Dialog: ... + def response(self, response_id: int) -> None: ... + def set_default_response(self, response_id: int) -> None: ... + def set_response_sensitive(self, response_id: int, setting: bool) -> None: ... + +class DialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + DialogClass() + """ + + parent_class: WindowClass = ... + response: Callable[[Dialog, int], None] = ... + close: Callable[[Dialog], None] = ... + padding: list[None] = ... + +class DirectoryList(GObject.Object, Gio.ListModel): + """ + :Constructors: + + :: + + DirectoryList(**properties) + new(attributes:str=None, file:Gio.File=None) -> Gtk.DirectoryList + + Object GtkDirectoryList + + Properties from GtkDirectoryList: + attributes -> gchararray: attributes + error -> GError: error + file -> GFile: file + io-priority -> gint: io-priority + item-type -> GType: item-type + loading -> gboolean: loading + monitored -> gboolean: monitored + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + attributes: Optional[str] + error: Optional[GLib.Error] + file: Optional[Gio.File] + io_priority: int + item_type: Type + loading: bool + monitored: bool + n_items: int + + props: Props = ... + def __init__( + self, + attributes: Optional[str] = ..., + file: Optional[Gio.File] = ..., + io_priority: int = ..., + monitored: bool = ..., + ): ... + def get_attributes(self) -> Optional[str]: ... + def get_error(self) -> Optional[GLib.Error]: ... + def get_file(self) -> Optional[Gio.File]: ... + def get_io_priority(self) -> int: ... + def get_monitored(self) -> bool: ... + def is_loading(self) -> bool: ... + @classmethod + def new( + cls, attributes: Optional[str] = None, file: Optional[Gio.File] = None + ) -> DirectoryList: ... + def set_attributes(self, attributes: Optional[str] = None) -> None: ... + def set_file(self, file: Optional[Gio.File] = None) -> None: ... + def set_io_priority(self, io_priority: int) -> None: ... + def set_monitored(self, monitored: bool) -> None: ... + +class DirectoryListClass(GObject.GPointer): + """ + :Constructors: + + :: + + DirectoryListClass() + """ + + parent_class: GObject.ObjectClass = ... + +class DragIcon(Widget, Accessible, Buildable, ConstraintTarget, Native, Root): + """ + :Constructors: + + :: + + DragIcon(**properties) + + Object GtkDragIcon + + Properties from GtkDragIcon: + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + @staticmethod + def create_widget_for_value(value: Any) -> Optional[Widget]: ... + def get_child(self) -> Optional[Widget]: ... + @staticmethod + def get_for_drag(drag: Gdk.Drag) -> Widget: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + @staticmethod + def set_from_paintable( + drag: Gdk.Drag, paintable: Gdk.Paintable, hot_x: int, hot_y: int + ) -> None: ... + +class DragIconClass(GObject.GPointer): + """ + :Constructors: + + :: + + DragIconClass() + """ + + parent_class: WidgetClass = ... + +class DragSource(GestureSingle): + """ + :Constructors: + + :: + + DragSource(**properties) + new() -> Gtk.DragSource + + Object GtkDragSource + + Signals from GtkDragSource: + prepare (gdouble, gdouble) -> GdkContentProvider + drag-begin (GdkDrag) + drag-end (GdkDrag, gboolean) + drag-cancel (GdkDrag, GdkDragCancelReason) -> gboolean + + Properties from GtkDragSource: + content -> GdkContentProvider: content + actions -> GdkDragAction: actions + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + actions: Gdk.DragAction + content: Optional[Gdk.ContentProvider] + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + actions: Gdk.DragAction = ..., + content: Optional[Gdk.ContentProvider] = ..., + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def drag_cancel(self) -> None: ... + def get_actions(self) -> Gdk.DragAction: ... + def get_content(self) -> Optional[Gdk.ContentProvider]: ... + def get_drag(self) -> Optional[Gdk.Drag]: ... + @classmethod + def new(cls) -> DragSource: ... + def set_actions(self, actions: Gdk.DragAction) -> None: ... + def set_content(self, content: Optional[Gdk.ContentProvider] = None) -> None: ... + def set_icon( + self, paintable: Optional[Gdk.Paintable], hot_x: int, hot_y: int + ) -> None: ... + +class DragSourceClass(GObject.GPointer): ... + +class DrawingArea(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + DrawingArea(**properties) + new() -> Gtk.Widget + + Object GtkDrawingArea + + Signals from GtkDrawingArea: + resize (gint, gint) + + Properties from GtkDrawingArea: + content-width -> gint: content-width + content-height -> gint: content-height + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + content_height: int + content_width: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + widget: Widget = ... + def __init__( + self, + content_height: int = ..., + content_width: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def do_resize(self, width: int, height: int) -> None: ... + def get_content_height(self) -> int: ... + def get_content_width(self) -> int: ... + @classmethod + def new(cls) -> DrawingArea: ... + def set_content_height(self, height: int) -> None: ... + def set_content_width(self, width: int) -> None: ... + def set_draw_func( + self, draw_func: Optional[Callable[..., None]] = None, *user_data: Any + ) -> None: ... + +class DrawingAreaClass(GObject.GPointer): + """ + :Constructors: + + :: + + DrawingAreaClass() + """ + + parent_class: WidgetClass = ... + resize: Callable[[DrawingArea, int, int], None] = ... + padding: list[None] = ... + +class DropControllerMotion(EventController): + """ + :Constructors: + + :: + + DropControllerMotion(**properties) + new() -> Gtk.EventController + + Object GtkDropControllerMotion + + Signals from GtkDropControllerMotion: + enter (gdouble, gdouble) + leave () + motion (gdouble, gdouble) + + Properties from GtkDropControllerMotion: + contains-pointer -> gboolean: contains-pointer + drop -> GdkDrop: drop + is-pointer -> gboolean: is-pointer + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + contains_pointer: bool + drop: Optional[Gdk.Drop] + is_pointer: bool + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def contains_pointer(self) -> bool: ... + def get_drop(self) -> Optional[Gdk.Drop]: ... + def is_pointer(self) -> bool: ... + @classmethod + def new(cls) -> DropControllerMotion: ... + +class DropControllerMotionClass(GObject.GPointer): ... + +class DropDown(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + DropDown(**properties) + new(model:Gio.ListModel=None, expression:Gtk.Expression=None) -> Gtk.Widget + new_from_strings(strings:list) -> Gtk.Widget + + Object GtkDropDown + + Signals from GtkDropDown: + activate () + + Properties from GtkDropDown: + factory -> GtkListItemFactory: factory + header-factory -> GtkListItemFactory: header-factory + list-factory -> GtkListItemFactory: list-factory + model -> GListModel: model + selected -> guint: selected + selected-item -> GObject: selected-item + enable-search -> gboolean: enable-search + expression -> GtkExpression: expression + show-arrow -> gboolean: show-arrow + search-match-mode -> GtkStringFilterMatchMode: search-match-mode + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + enable_search: bool + expression: Optional[Expression] + factory: Optional[ListItemFactory] + header_factory: Optional[ListItemFactory] + list_factory: Optional[ListItemFactory] + model: Optional[Gio.ListModel] + search_match_mode: StringFilterMatchMode + selected: int + selected_item: Optional[GObject.Object] + show_arrow: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + enable_search: bool = ..., + expression: Optional[Expression] = ..., + factory: Optional[ListItemFactory] = ..., + header_factory: Optional[ListItemFactory] = ..., + list_factory: Optional[ListItemFactory] = ..., + model: Optional[Gio.ListModel] = ..., + search_match_mode: StringFilterMatchMode = ..., + selected: int = ..., + show_arrow: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_enable_search(self) -> bool: ... + def get_expression(self) -> Optional[Expression]: ... + def get_factory(self) -> Optional[ListItemFactory]: ... + def get_header_factory(self) -> Optional[ListItemFactory]: ... + def get_list_factory(self) -> Optional[ListItemFactory]: ... + def get_model(self) -> Optional[Gio.ListModel]: ... + def get_search_match_mode(self) -> StringFilterMatchMode: ... + def get_selected(self) -> int: ... + def get_selected_item(self) -> Optional[GObject.Object]: ... + def get_show_arrow(self) -> bool: ... + @classmethod + def new( + cls, + model: Optional[Gio.ListModel] = None, + expression: Optional[Expression] = None, + ) -> DropDown: ... + @classmethod + def new_from_strings(cls, strings: Sequence[str]) -> DropDown: ... + def set_enable_search(self, enable_search: bool) -> None: ... + def set_expression(self, expression: Optional[Expression] = None) -> None: ... + def set_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_header_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_list_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + def set_search_match_mode( + self, search_match_mode: StringFilterMatchMode + ) -> None: ... + def set_selected(self, position: int) -> None: ... + def set_show_arrow(self, show_arrow: bool) -> None: ... + +class DropDownClass(GObject.GPointer): + """ + :Constructors: + + :: + + DropDownClass() + """ + + parent_class: WidgetClass = ... + +class DropTarget(EventController): + """ + :Constructors: + + :: + + DropTarget(**properties) + new(type:GType, actions:Gdk.DragAction) -> Gtk.DropTarget + + Object GtkDropTarget + + Signals from GtkDropTarget: + drop (GValue, gdouble, gdouble) -> gboolean + enter (gdouble, gdouble) -> GdkDragAction + leave () + motion (gdouble, gdouble) -> GdkDragAction + accept (GdkDrop) -> gboolean + + Properties from GtkDropTarget: + actions -> GdkDragAction: actions + current-drop -> GdkDrop: current-drop + drop -> GdkDrop: drop + formats -> GdkContentFormats: formats + preload -> gboolean: preload + value -> GValue: value + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + actions: Gdk.DragAction + current_drop: Optional[Gdk.Drop] + formats: Optional[Gdk.ContentFormats] + preload: bool + value: Optional[Any] + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + actions: Gdk.DragAction = ..., + formats: Gdk.ContentFormats = ..., + preload: bool = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_actions(self) -> Gdk.DragAction: ... + def get_current_drop(self) -> Optional[Gdk.Drop]: ... + def get_drop(self) -> Optional[Gdk.Drop]: ... + def get_formats(self) -> Optional[Gdk.ContentFormats]: ... + def get_gtypes(self) -> Optional[list[Type]]: ... + def get_preload(self) -> bool: ... + def get_value(self) -> Optional[Any]: ... + @classmethod + def new(cls, type: Type, actions: Gdk.DragAction) -> DropTarget: ... + def reject(self) -> None: ... + def set_actions(self, actions: Gdk.DragAction) -> None: ... + def set_gtypes(self, types: Optional[Sequence[Type]] = None) -> None: ... + def set_preload(self, preload: bool) -> None: ... + +class DropTargetAsync(EventController): + """ + :Constructors: + + :: + + DropTargetAsync(**properties) + new(formats:Gdk.ContentFormats=None, actions:Gdk.DragAction) -> Gtk.DropTargetAsync + + Object GtkDropTargetAsync + + Signals from GtkDropTargetAsync: + drop (GdkDrop, gdouble, gdouble) -> gboolean + accept (GdkDrop) -> gboolean + drag-enter (GdkDrop, gdouble, gdouble) -> GdkDragAction + drag-motion (GdkDrop, gdouble, gdouble) -> GdkDragAction + drag-leave (GdkDrop) + + Properties from GtkDropTargetAsync: + actions -> GdkDragAction: actions + formats -> GdkContentFormats: formats + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + actions: Gdk.DragAction + formats: Optional[Gdk.ContentFormats] + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + actions: Gdk.DragAction = ..., + formats: Optional[Gdk.ContentFormats] = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_actions(self) -> Gdk.DragAction: ... + def get_formats(self) -> Optional[Gdk.ContentFormats]: ... + @classmethod + def new( + cls, formats: Optional[Gdk.ContentFormats], actions: Gdk.DragAction + ) -> DropTargetAsync: ... + def reject_drop(self, drop: Gdk.Drop) -> None: ... + def set_actions(self, actions: Gdk.DragAction) -> None: ... + def set_formats(self, formats: Optional[Gdk.ContentFormats] = None) -> None: ... + +class DropTargetAsyncClass(GObject.GPointer): ... +class DropTargetClass(GObject.GPointer): ... + +class Editable(GObject.GInterface): + """ + Interface GtkEditable + + Signals from GObject: + notify (GParam) + """ + + def delegate_get_accessible_platform_state( + self, state: AccessiblePlatformState + ) -> bool: ... + @staticmethod + def delegate_get_property( + object: GObject.Object, prop_id: int, value: Any, pspec: GObject.ParamSpec + ) -> bool: ... + @staticmethod + def delegate_set_property( + object: GObject.Object, prop_id: int, value: Any, pspec: GObject.ParamSpec + ) -> bool: ... + def delete_selection(self) -> None: ... + def delete_text(self, start_pos: int, end_pos: int) -> None: ... + def finish_delegate(self) -> None: ... + def get_alignment(self) -> float: ... + def get_chars(self, start_pos: int, end_pos: int) -> str: ... + def get_delegate(self) -> Optional[Editable]: ... + def get_editable(self) -> bool: ... + def get_enable_undo(self) -> bool: ... + def get_max_width_chars(self) -> int: ... + def get_position(self) -> int: ... + def get_selection_bounds( + self, + ) -> Tuple[int, int] | Tuple[()]: ... # CHECK Wrapped function + def get_text(self) -> str: ... + def get_width_chars(self) -> int: ... + def init_delegate(self) -> None: ... + def insert_text(self, text, position): ... # FIXME Function + @staticmethod + def install_properties( + object_class: GObject.ObjectClass, first_prop: int + ) -> int: ... + def select_region(self, start_pos: int, end_pos: int) -> None: ... + def set_alignment(self, xalign: float) -> None: ... + def set_editable(self, is_editable: bool) -> None: ... + def set_enable_undo(self, enable_undo: bool) -> None: ... + def set_max_width_chars(self, n_chars: int) -> None: ... + def set_position(self, position: int) -> None: ... + def set_text(self, text: str) -> None: ... + def set_width_chars(self, n_chars: int) -> None: ... + +class EditableInterface(GObject.GPointer): + """ + :Constructors: + + :: + + EditableInterface() + """ + + base_iface: GObject.TypeInterface = ... + insert_text: Callable[[Editable, str, int], int] = ... + delete_text: Callable[[Editable, int, int], None] = ... + changed: Callable[[Editable], None] = ... + get_text: Callable[[Editable], str] = ... + do_insert_text: Callable[[Editable, str, int], int] = ... + do_delete_text: Callable[[Editable, int, int], None] = ... + get_selection_bounds: Callable[[Editable], Tuple[bool, int, int]] = ... + set_selection_bounds: Callable[[Editable, int, int], None] = ... + get_delegate: Callable[[Editable], Optional[Editable]] = ... + +class EditableLabel(Widget, Accessible, Buildable, ConstraintTarget, Editable): + """ + :Constructors: + + :: + + EditableLabel(**properties) + new(str:str) -> Gtk.Widget + + Object GtkEditableLabel + + Properties from GtkEditableLabel: + editing -> gboolean: editing + + Signals from GtkEditable: + changed () + insert-text (gchararray, gint, gpointer) + delete-text (gint, gint) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + editing: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + cursor_position: int + editable: bool + enable_undo: bool + max_width_chars: int + selection_bound: int + text: str + width_chars: int + xalign: float + + props: Props = ... + def __init__( + self, + editing: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editable: bool = ..., + enable_undo: bool = ..., + max_width_chars: int = ..., + text: str = ..., + width_chars: int = ..., + xalign: float = ..., + ): ... + def get_editing(self) -> bool: ... + @classmethod + def new(cls, str: str) -> EditableLabel: ... + def start_editing(self) -> None: ... + def stop_editing(self, commit: bool) -> None: ... + +class EditableLabelClass(GObject.GPointer): + """ + :Constructors: + + :: + + EditableLabelClass() + """ + + parent_class: WidgetClass = ... + +class EmojiChooser( + Popover, Accessible, Buildable, ConstraintTarget, Native, ShortcutManager +): + """ + :Constructors: + + :: + + EmojiChooser(**properties) + new() -> Gtk.Widget + + Object GtkEmojiChooser + + Signals from GtkEmojiChooser: + emoji-picked (gchararray) + + Signals from GtkPopover: + closed () + activate-default () + + Properties from GtkPopover: + pointing-to -> GdkRectangle: pointing-to + position -> GtkPositionType: position + autohide -> gboolean: autohide + default-widget -> GtkWidget: default-widget + has-arrow -> gboolean: has-arrow + mnemonics-visible -> gboolean: mnemonics-visible + child -> GtkWidget: child + cascade-popdown -> gboolean: cascade-popdown + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + autohide: bool + cascade_popdown: bool + child: Optional[Widget] + default_widget: Optional[Widget] + has_arrow: bool + mnemonics_visible: bool + pointing_to: Gdk.Rectangle + position: PositionType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + autohide: bool = ..., + cascade_popdown: bool = ..., + child: Optional[Widget] = ..., + default_widget: Optional[Widget] = ..., + has_arrow: bool = ..., + mnemonics_visible: bool = ..., + pointing_to: Optional[Gdk.Rectangle] = ..., + position: PositionType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + @classmethod + def new(cls) -> EmojiChooser: ... + +class EmojiChooserClass(GObject.GPointer): ... + +class Entry(Widget, Accessible, Buildable, CellEditable, ConstraintTarget, Editable): + """ + :Constructors: + + :: + + Entry(**properties) + new() -> Gtk.Widget + new_with_buffer(buffer:Gtk.EntryBuffer) -> Gtk.Widget + + Object GtkEntry + + Signals from GtkEntry: + activate () + icon-press (GtkEntryIconPosition) + icon-release (GtkEntryIconPosition) + + Properties from GtkEntry: + buffer -> GtkEntryBuffer: buffer + max-length -> gint: max-length + visibility -> gboolean: visibility + has-frame -> gboolean: has-frame + invisible-char -> guint: invisible-char + activates-default -> gboolean: activates-default + scroll-offset -> gint: scroll-offset + truncate-multiline -> gboolean: truncate-multiline + overwrite-mode -> gboolean: overwrite-mode + text-length -> guint: text-length + invisible-char-set -> gboolean: invisible-char-set + progress-fraction -> gdouble: progress-fraction + progress-pulse-step -> gdouble: progress-pulse-step + primary-icon-paintable -> GdkPaintable: primary-icon-paintable + secondary-icon-paintable -> GdkPaintable: secondary-icon-paintable + primary-icon-name -> gchararray: primary-icon-name + secondary-icon-name -> gchararray: secondary-icon-name + primary-icon-gicon -> GIcon: primary-icon-gicon + secondary-icon-gicon -> GIcon: secondary-icon-gicon + primary-icon-storage-type -> GtkImageType: primary-icon-storage-type + secondary-icon-storage-type -> GtkImageType: secondary-icon-storage-type + primary-icon-activatable -> gboolean: primary-icon-activatable + secondary-icon-activatable -> gboolean: secondary-icon-activatable + primary-icon-sensitive -> gboolean: primary-icon-sensitive + secondary-icon-sensitive -> gboolean: secondary-icon-sensitive + primary-icon-tooltip-text -> gchararray: primary-icon-tooltip-text + secondary-icon-tooltip-text -> gchararray: secondary-icon-tooltip-text + primary-icon-tooltip-markup -> gchararray: primary-icon-tooltip-markup + secondary-icon-tooltip-markup -> gchararray: secondary-icon-tooltip-markup + im-module -> gchararray: im-module + placeholder-text -> gchararray: placeholder-text + completion -> GtkEntryCompletion: completion + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + attributes -> PangoAttrList: attributes + tabs -> PangoTabArray: tabs + extra-menu -> GMenuModel: extra-menu + show-emoji-icon -> gboolean: show-emoji-icon + enable-emoji-completion -> gboolean: enable-emoji-completion + + Signals from GtkEditable: + changed () + insert-text (gchararray, gint, gpointer) + delete-text (gint, gint) + + Signals from GtkCellEditable: + editing-done () + remove-widget () + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activates_default: bool + attributes: Optional[Pango.AttrList] + buffer: EntryBuffer + completion: Optional[EntryCompletion] + enable_emoji_completion: bool + extra_menu: Optional[Gio.MenuModel] + has_frame: bool + im_module: str + input_hints: InputHints + input_purpose: InputPurpose + invisible_char: int + invisible_char_set: bool + max_length: int + overwrite_mode: bool + placeholder_text: Optional[str] + primary_icon_activatable: bool + primary_icon_gicon: Gio.Icon + primary_icon_name: str + primary_icon_paintable: Gdk.Paintable + primary_icon_sensitive: bool + primary_icon_storage_type: ImageType + primary_icon_tooltip_markup: str + primary_icon_tooltip_text: str + progress_fraction: float + progress_pulse_step: float + scroll_offset: int + secondary_icon_activatable: bool + secondary_icon_gicon: Gio.Icon + secondary_icon_name: str + secondary_icon_paintable: Gdk.Paintable + secondary_icon_sensitive: bool + secondary_icon_storage_type: ImageType + secondary_icon_tooltip_markup: str + secondary_icon_tooltip_text: str + show_emoji_icon: bool + tabs: Optional[Pango.TabArray] + text_length: int + truncate_multiline: bool + visibility: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + editing_canceled: bool + cursor_position: int + editable: bool + enable_undo: bool + max_width_chars: int + selection_bound: int + text: str + width_chars: int + xalign: float + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + activates_default: bool = ..., + attributes: Pango.AttrList = ..., + buffer: EntryBuffer = ..., + completion: Optional[EntryCompletion] = ..., + enable_emoji_completion: bool = ..., + extra_menu: Optional[Gio.MenuModel] = ..., + has_frame: bool = ..., + im_module: str = ..., + input_hints: InputHints = ..., + input_purpose: InputPurpose = ..., + invisible_char: int = ..., + invisible_char_set: bool = ..., + max_length: int = ..., + overwrite_mode: bool = ..., + placeholder_text: Optional[str] = ..., + primary_icon_activatable: bool = ..., + primary_icon_gicon: Gio.Icon = ..., + primary_icon_name: str = ..., + primary_icon_paintable: Gdk.Paintable = ..., + primary_icon_sensitive: bool = ..., + primary_icon_tooltip_markup: str = ..., + primary_icon_tooltip_text: str = ..., + progress_fraction: float = ..., + progress_pulse_step: float = ..., + secondary_icon_activatable: bool = ..., + secondary_icon_gicon: Gio.Icon = ..., + secondary_icon_name: str = ..., + secondary_icon_paintable: Gdk.Paintable = ..., + secondary_icon_sensitive: bool = ..., + secondary_icon_tooltip_markup: str = ..., + secondary_icon_tooltip_text: str = ..., + show_emoji_icon: bool = ..., + tabs: Optional[Pango.TabArray] = ..., + truncate_multiline: bool = ..., + visibility: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editing_canceled: bool = ..., + editable: bool = ..., + enable_undo: bool = ..., + max_width_chars: int = ..., + text: str = ..., + width_chars: int = ..., + xalign: float = ..., + ): ... + def do_activate(self) -> None: ... + def get_activates_default(self) -> bool: ... + def get_alignment(self) -> float: ... + def get_attributes(self) -> Optional[Pango.AttrList]: ... + def get_buffer(self) -> EntryBuffer: ... + def get_completion(self) -> Optional[EntryCompletion]: ... + def get_current_icon_drag_source(self) -> int: ... + def get_extra_menu(self) -> Optional[Gio.MenuModel]: ... + def get_has_frame(self) -> bool: ... + def get_icon_activatable(self, icon_pos: EntryIconPosition) -> bool: ... + def get_icon_area(self, icon_pos: EntryIconPosition) -> Gdk.Rectangle: ... + def get_icon_at_pos(self, x: int, y: int) -> int: ... + def get_icon_gicon(self, icon_pos: EntryIconPosition) -> Optional[Gio.Icon]: ... + def get_icon_name(self, icon_pos: EntryIconPosition) -> Optional[str]: ... + def get_icon_paintable( + self, icon_pos: EntryIconPosition + ) -> Optional[Gdk.Paintable]: ... + def get_icon_sensitive(self, icon_pos: EntryIconPosition) -> bool: ... + def get_icon_storage_type(self, icon_pos: EntryIconPosition) -> ImageType: ... + def get_icon_tooltip_markup(self, icon_pos: EntryIconPosition) -> Optional[str]: ... + def get_icon_tooltip_text(self, icon_pos: EntryIconPosition) -> Optional[str]: ... + def get_input_hints(self) -> InputHints: ... + def get_input_purpose(self) -> InputPurpose: ... + def get_invisible_char(self) -> str: ... + def get_max_length(self) -> int: ... + def get_overwrite_mode(self) -> bool: ... + def get_placeholder_text(self) -> Optional[str]: ... + def get_progress_fraction(self) -> float: ... + def get_progress_pulse_step(self) -> float: ... + def get_tabs(self) -> Optional[Pango.TabArray]: ... + def get_text_length(self) -> int: ... + def get_visibility(self) -> bool: ... + def grab_focus_without_selecting(self) -> bool: ... + @classmethod + def new(cls) -> Entry: ... + @classmethod + def new_with_buffer(cls, buffer: EntryBuffer) -> Entry: ... + def progress_pulse(self) -> None: ... + def reset_im_context(self) -> None: ... + def set_activates_default(self, setting: bool) -> None: ... + def set_alignment(self, xalign: float) -> None: ... + def set_attributes(self, attrs: Pango.AttrList) -> None: ... + def set_buffer(self, buffer: EntryBuffer) -> None: ... + def set_completion(self, completion: Optional[EntryCompletion] = None) -> None: ... + def set_extra_menu(self, model: Optional[Gio.MenuModel] = None) -> None: ... + def set_has_frame(self, setting: bool) -> None: ... + def set_icon_activatable( + self, icon_pos: EntryIconPosition, activatable: bool + ) -> None: ... + def set_icon_drag_source( + self, + icon_pos: EntryIconPosition, + provider: Gdk.ContentProvider, + actions: Gdk.DragAction, + ) -> None: ... + def set_icon_from_gicon( + self, icon_pos: EntryIconPosition, icon: Optional[Gio.Icon] = None + ) -> None: ... + def set_icon_from_icon_name( + self, icon_pos: EntryIconPosition, icon_name: Optional[str] = None + ) -> None: ... + def set_icon_from_paintable( + self, icon_pos: EntryIconPosition, paintable: Optional[Gdk.Paintable] = None + ) -> None: ... + def set_icon_sensitive( + self, icon_pos: EntryIconPosition, sensitive: bool + ) -> None: ... + def set_icon_tooltip_markup( + self, icon_pos: EntryIconPosition, tooltip: Optional[str] = None + ) -> None: ... + def set_icon_tooltip_text( + self, icon_pos: EntryIconPosition, tooltip: Optional[str] = None + ) -> None: ... + def set_input_hints(self, hints: InputHints) -> None: ... + def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_invisible_char(self, ch: str) -> None: ... + def set_max_length(self, max: int) -> None: ... + def set_overwrite_mode(self, overwrite: bool) -> None: ... + def set_placeholder_text(self, text: Optional[str] = None) -> None: ... + def set_progress_fraction(self, fraction: float) -> None: ... + def set_progress_pulse_step(self, fraction: float) -> None: ... + def set_tabs(self, tabs: Optional[Pango.TabArray] = None) -> None: ... + def set_visibility(self, visible: bool) -> None: ... + def unset_invisible_char(self) -> None: ... + +class EntryBuffer(GObject.Object): + """ + :Constructors: + + :: + + EntryBuffer(**properties) + new(initial_chars:str=None, n_initial_chars:int) -> Gtk.EntryBuffer + + Object GtkEntryBuffer + + Signals from GtkEntryBuffer: + inserted-text (guint, gchararray, guint) + deleted-text (guint, guint) + + Properties from GtkEntryBuffer: + text -> gchararray: text + length -> guint: length + max-length -> gint: max-length + + Signals from GObject: + notify (GParam) + """ + + class Props: + length: int + max_length: int + text: str + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, max_length: int = ..., text: str = ...): ... + def delete_text(self, position: int, n_chars: int) -> int: ... + def do_delete_text(self, position: int, n_chars: int) -> int: ... + def do_deleted_text(self, position: int, n_chars: int) -> None: ... + def do_get_length(self) -> int: ... + def do_get_text(self, n_bytes: int) -> str: ... + def do_insert_text(self, position: int, chars: str, n_chars: int) -> int: ... + def do_inserted_text(self, position: int, chars: str, n_chars: int) -> None: ... + def emit_deleted_text(self, position: int, n_chars: int) -> None: ... + def emit_inserted_text(self, position: int, chars: str, n_chars: int) -> None: ... + def get_bytes(self) -> int: ... + def get_length(self) -> int: ... + def get_max_length(self) -> int: ... + def get_text(self) -> str: ... + def insert_text(self, position: int, chars: str, n_chars: int) -> int: ... + @classmethod + def new(cls, initial_chars: Optional[str], n_initial_chars: int) -> EntryBuffer: ... + def set_max_length(self, max_length: int) -> None: ... + def set_text(self, chars: str, n_chars: int) -> None: ... + +class EntryBufferClass(GObject.GPointer): + """ + :Constructors: + + :: + + EntryBufferClass() + """ + + parent_class: GObject.ObjectClass = ... + inserted_text: Callable[[EntryBuffer, int, str, int], None] = ... + deleted_text: Callable[[EntryBuffer, int, int], None] = ... + get_text: Callable[[EntryBuffer, int], str] = ... + get_length: Callable[[EntryBuffer], int] = ... + insert_text: Callable[[EntryBuffer, int, str, int], int] = ... + delete_text: Callable[[EntryBuffer, int, int], int] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + _gtk_reserved5: None = ... + _gtk_reserved6: None = ... + _gtk_reserved7: None = ... + _gtk_reserved8: None = ... + +class EntryClass(GObject.GPointer): + """ + :Constructors: + + :: + + EntryClass() + """ + + parent_class: WidgetClass = ... + activate: Callable[[Entry], None] = ... + padding: list[None] = ... + +class EntryCompletion(GObject.Object, Buildable, CellLayout): + """ + :Constructors: + + :: + + EntryCompletion(**properties) + new() -> Gtk.EntryCompletion + new_with_area(area:Gtk.CellArea) -> Gtk.EntryCompletion + + Object GtkEntryCompletion + + Signals from GtkEntryCompletion: + insert-prefix (gchararray) -> gboolean + match-selected (GtkTreeModel, GtkTreeIter) -> gboolean + cursor-on-match (GtkTreeModel, GtkTreeIter) -> gboolean + no-matches () + + Properties from GtkEntryCompletion: + model -> GtkTreeModel: model + minimum-key-length -> gint: minimum-key-length + text-column -> gint: text-column + inline-completion -> gboolean: inline-completion + popup-completion -> gboolean: popup-completion + popup-set-width -> gboolean: popup-set-width + popup-single-match -> gboolean: popup-single-match + inline-selection -> gboolean: inline-selection + cell-area -> GtkCellArea: cell-area + + Signals from GObject: + notify (GParam) + """ + + class Props: + cell_area: CellArea + inline_completion: bool + inline_selection: bool + minimum_key_length: int + model: Optional[TreeModel] + popup_completion: bool + popup_set_width: bool + popup_single_match: bool + text_column: int + + props: Props = ... + def __init__( + self, + cell_area: CellArea = ..., + inline_completion: bool = ..., + inline_selection: bool = ..., + minimum_key_length: int = ..., + model: Optional[TreeModel] = ..., + popup_completion: bool = ..., + popup_set_width: bool = ..., + popup_single_match: bool = ..., + text_column: int = ..., + ): ... + def complete(self) -> None: ... + def compute_prefix(self, key: str) -> Optional[str]: ... + def get_completion_prefix(self) -> Optional[str]: ... + def get_entry(self) -> Widget: ... + def get_inline_completion(self) -> bool: ... + def get_inline_selection(self) -> bool: ... + def get_minimum_key_length(self) -> int: ... + def get_model(self) -> Optional[TreeModel]: ... + def get_popup_completion(self) -> bool: ... + def get_popup_set_width(self) -> bool: ... + def get_popup_single_match(self) -> bool: ... + def get_text_column(self) -> int: ... + def insert_prefix(self) -> None: ... + @classmethod + def new(cls) -> EntryCompletion: ... + @classmethod + def new_with_area(cls, area: CellArea) -> EntryCompletion: ... + def set_inline_completion(self, inline_completion: bool) -> None: ... + def set_inline_selection(self, inline_selection: bool) -> None: ... + def set_match_func(self, func: Callable[..., bool], *func_data: Any) -> None: ... + def set_minimum_key_length(self, length: int) -> None: ... + def set_model(self, model: Optional[TreeModel] = None) -> None: ... + def set_popup_completion(self, popup_completion: bool) -> None: ... + def set_popup_set_width(self, popup_set_width: bool) -> None: ... + def set_popup_single_match(self, popup_single_match: bool) -> None: ... + def set_text_column(self, column: int) -> None: ... + +class EventController(GObject.Object): + """ + :Constructors: + + :: + + EventController(**properties) + + Object GtkEventController + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_current_event(self) -> Optional[Gdk.Event]: ... + def get_current_event_device(self) -> Optional[Gdk.Device]: ... + def get_current_event_state(self) -> Gdk.ModifierType: ... + def get_current_event_time(self) -> int: ... + def get_name(self) -> Optional[str]: ... + def get_propagation_limit(self) -> PropagationLimit: ... + def get_propagation_phase(self) -> PropagationPhase: ... + def get_widget(self) -> Widget: ... + def reset(self) -> None: ... + def set_name(self, name: Optional[str] = None) -> None: ... + def set_propagation_limit(self, limit: PropagationLimit) -> None: ... + def set_propagation_phase(self, phase: PropagationPhase) -> None: ... + def set_static_name(self, name: Optional[str] = None) -> None: ... + +class EventControllerClass(GObject.GPointer): ... + +class EventControllerFocus(EventController): + """ + :Constructors: + + :: + + EventControllerFocus(**properties) + new() -> Gtk.EventController + + Object GtkEventControllerFocus + + Signals from GtkEventControllerFocus: + enter () + leave () + + Properties from GtkEventControllerFocus: + is-focus -> gboolean: is-focus + contains-focus -> gboolean: contains-focus + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + contains_focus: bool + is_focus: bool + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def contains_focus(self) -> bool: ... + def is_focus(self) -> bool: ... + @classmethod + def new(cls) -> EventControllerFocus: ... + +class EventControllerFocusClass(GObject.GPointer): ... + +class EventControllerKey(EventController): + """ + :Constructors: + + :: + + EventControllerKey(**properties) + new() -> Gtk.EventController + + Object GtkEventControllerKey + + Signals from GtkEventControllerKey: + modifiers (GdkModifierType) -> gboolean + key-pressed (guint, guint, GdkModifierType) -> gboolean + key-released (guint, guint, GdkModifierType) + im-update () + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def forward(self, widget: Widget) -> bool: ... + def get_group(self) -> int: ... + def get_im_context(self) -> Optional[IMContext]: ... + @classmethod + def new(cls) -> EventControllerKey: ... + def set_im_context(self, im_context: Optional[IMContext] = None) -> None: ... + +class EventControllerKeyClass(GObject.GPointer): ... + +class EventControllerLegacy(EventController): + """ + :Constructors: + + :: + + EventControllerLegacy(**properties) + new() -> Gtk.EventController + + Object GtkEventControllerLegacy + + Signals from GtkEventControllerLegacy: + event (GdkEvent) -> gboolean + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + @classmethod + def new(cls) -> EventControllerLegacy: ... + +class EventControllerLegacyClass(GObject.GPointer): ... + +class EventControllerMotion(EventController): + """ + :Constructors: + + :: + + EventControllerMotion(**properties) + new() -> Gtk.EventController + + Object GtkEventControllerMotion + + Signals from GtkEventControllerMotion: + enter (gdouble, gdouble) + leave () + motion (gdouble, gdouble) + + Properties from GtkEventControllerMotion: + is-pointer -> gboolean: is-pointer + contains-pointer -> gboolean: contains-pointer + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + contains_pointer: bool + is_pointer: bool + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def contains_pointer(self) -> bool: ... + def is_pointer(self) -> bool: ... + @classmethod + def new(cls) -> EventControllerMotion: ... + +class EventControllerMotionClass(GObject.GPointer): ... + +class EventControllerScroll(EventController): + """ + :Constructors: + + :: + + EventControllerScroll(**properties) + new(flags:Gtk.EventControllerScrollFlags) -> Gtk.EventController + + Object GtkEventControllerScroll + + Signals from GtkEventControllerScroll: + scroll-begin () + scroll (gdouble, gdouble) -> gboolean + scroll-end () + decelerate (gdouble, gdouble) + + Properties from GtkEventControllerScroll: + flags -> GtkEventControllerScrollFlags: flags + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + flags: EventControllerScrollFlags + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + flags: EventControllerScrollFlags = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_flags(self) -> EventControllerScrollFlags: ... + def get_unit(self) -> Gdk.ScrollUnit: ... + @classmethod + def new(cls, flags: EventControllerScrollFlags) -> EventControllerScroll: ... + def set_flags(self, flags: EventControllerScrollFlags) -> None: ... + +class EventControllerScrollClass(GObject.GPointer): ... + +class EveryFilter(MultiFilter, Gio.ListModel, Buildable): + """ + :Constructors: + + :: + + EveryFilter(**properties) + new() -> Gtk.EveryFilter + + Object GtkEveryFilter + + Signals from GListModel: + items-changed (guint, guint, guint) + + Properties from GtkMultiFilter: + item-type -> GType: item-type + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + n_items: int + + props: Props = ... + @classmethod + def new(cls) -> EveryFilter: ... + +class EveryFilterClass(GObject.GPointer): ... + +class Expander(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Expander(**properties) + new(label:str=None) -> Gtk.Widget + new_with_mnemonic(label:str=None) -> Gtk.Widget + + Object GtkExpander + + Signals from GtkExpander: + activate () + + Properties from GtkExpander: + expanded -> gboolean: expanded + label -> gchararray: label + use-underline -> gboolean: use-underline + use-markup -> gboolean: use-markup + label-widget -> GtkWidget: label-widget + resize-toplevel -> gboolean: resize-toplevel + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + expanded: bool + label: Optional[str] + label_widget: Optional[Widget] + resize_toplevel: bool + use_markup: bool + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + expanded: bool = ..., + label: Optional[str] = ..., + label_widget: Optional[Widget] = ..., + resize_toplevel: bool = ..., + use_markup: bool = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_expanded(self) -> bool: ... + def get_label(self) -> Optional[str]: ... + def get_label_widget(self) -> Optional[Widget]: ... + def get_resize_toplevel(self) -> bool: ... + def get_use_markup(self) -> bool: ... + def get_use_underline(self) -> bool: ... + @classmethod + def new(cls, label: Optional[str] = None) -> Expander: ... + @classmethod + def new_with_mnemonic(cls, label: Optional[str] = None) -> Expander: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_expanded(self, expanded: bool) -> None: ... + def set_label(self, label: Optional[str] = None) -> None: ... + def set_label_widget(self, label_widget: Optional[Widget] = None) -> None: ... + def set_resize_toplevel(self, resize_toplevel: bool) -> None: ... + def set_use_markup(self, use_markup: bool) -> None: ... + def set_use_underline(self, use_underline: bool) -> None: ... + +class Expression: + """ + :Constructors: + + :: + + Expression(**properties) + """ + + def bind( + self, + target: GObject.Object, + property: str, + this_: Optional[GObject.Object] = None, + ) -> ExpressionWatch: ... + def evaluate(self, this_: Optional[GObject.Object], value: Any) -> bool: ... + def get_value_type(self) -> Type: ... + def is_static(self) -> bool: ... + def ref(self) -> Expression: ... + def unref(self) -> None: ... + def watch( + self, + this_: Optional[GObject.Object], + notify: Callable[..., None], + *user_data: Any, + ) -> ExpressionWatch: ... + +class ExpressionWatch(GObject.GBoxed): + def evaluate(self, value: Any) -> bool: ... + def ref(self) -> ExpressionWatch: ... + def unref(self) -> None: ... + def unwatch(self) -> None: ... + +class FileChooser(GObject.GInterface): + """ + Interface GtkFileChooser + + Signals from GObject: + notify (GParam) + """ + + def add_choice( + self, + id: str, + label: str, + options: Optional[Sequence[str]] = None, + option_labels: Optional[Sequence[str]] = None, + ) -> None: ... + def add_filter(self, filter: FileFilter) -> None: ... + def add_shortcut_folder(self, folder: Gio.File) -> bool: ... + def get_action(self) -> FileChooserAction: ... + def get_choice(self, id: str) -> Optional[str]: ... + def get_create_folders(self) -> bool: ... + def get_current_folder(self) -> Optional[Gio.File]: ... + def get_current_name(self) -> Optional[str]: ... + def get_file(self) -> Optional[Gio.File]: ... + def get_files(self) -> Gio.ListModel: ... + def get_filter(self) -> Optional[FileFilter]: ... + def get_filters(self) -> Gio.ListModel: ... + def get_select_multiple(self) -> bool: ... + def get_shortcut_folders(self) -> Gio.ListModel: ... + def remove_choice(self, id: str) -> None: ... + def remove_filter(self, filter: FileFilter) -> None: ... + def remove_shortcut_folder(self, folder: Gio.File) -> bool: ... + def set_action(self, action: FileChooserAction) -> None: ... + def set_choice(self, id: str, option: str) -> None: ... + def set_create_folders(self, create_folders: bool) -> None: ... + def set_current_folder(self, file: Optional[Gio.File] = None) -> bool: ... + def set_current_name(self, name: str) -> None: ... + def set_file(self, file: Gio.File) -> bool: ... + def set_filter(self, filter: FileFilter) -> None: ... + def set_select_multiple(self, select_multiple: bool) -> None: ... + +class FileChooserDialog( + Dialog, + Accessible, + Buildable, + ConstraintTarget, + FileChooser, + Native, + Root, + ShortcutManager, +): + """ + :Constructors: + + :: + + FileChooserDialog(**properties) + + Object GtkFileChooserDialog + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action: FileChooserAction + create_folders: bool + filter: Optional[FileFilter] + filters: Gio.ListModel + select_multiple: bool + shortcut_folders: Gio.ListModel + startup_id: str + + props: Props = ... + def __init__( + self, + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action: FileChooserAction = ..., + create_folders: bool = ..., + filter: FileFilter = ..., + select_multiple: bool = ..., + ): ... + +class FileChooserNative(NativeDialog, FileChooser): + """ + :Constructors: + + :: + + FileChooserNative(**properties) + new(title:str=None, parent:Gtk.Window=None, action:Gtk.FileChooserAction, accept_label:str=None, cancel_label:str=None) -> Gtk.FileChooserNative + + Object GtkFileChooserNative + + Properties from GtkFileChooserNative: + accept-label -> gchararray: accept-label + cancel-label -> gchararray: cancel-label + + Signals from GtkNativeDialog: + response (gint) + + Properties from GtkNativeDialog: + title -> gchararray: title + visible -> gboolean: visible + modal -> gboolean: modal + transient-for -> GtkWindow: transient-for + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_label: Optional[str] + cancel_label: Optional[str] + modal: bool + title: Optional[str] + transient_for: Optional[Window] + visible: bool + action: FileChooserAction + create_folders: bool + filter: Optional[FileFilter] + filters: Gio.ListModel + select_multiple: bool + shortcut_folders: Gio.ListModel + + props: Props = ... + def __init__( + self, + accept_label: Optional[str] = ..., + cancel_label: Optional[str] = ..., + modal: bool = ..., + title: str = ..., + transient_for: Optional[Window] = ..., + visible: bool = ..., + action: FileChooserAction = ..., + create_folders: bool = ..., + filter: FileFilter = ..., + select_multiple: bool = ..., + ): ... + def get_accept_label(self) -> Optional[str]: ... + def get_cancel_label(self) -> Optional[str]: ... + @classmethod + def new( + cls, + title: Optional[str], + parent: Optional[Window], + action: FileChooserAction, + accept_label: Optional[str] = None, + cancel_label: Optional[str] = None, + ) -> FileChooserNative: ... + def set_accept_label(self, accept_label: Optional[str] = None) -> None: ... + def set_cancel_label(self, cancel_label: Optional[str] = None) -> None: ... + +class FileChooserNativeClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileChooserNativeClass() + """ + + parent_class: NativeDialogClass = ... + +class FileChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FileChooser): + """ + :Constructors: + + :: + + FileChooserWidget(**properties) + new(action:Gtk.FileChooserAction) -> Gtk.Widget + + Object GtkFileChooserWidget + + Signals from GtkFileChooserWidget: + location-popup (gchararray) + location-popup-on-paste () + location-toggle-popup () + up-folder () + down-folder () + home-folder () + desktop-folder () + quick-bookmark (gint) + show-hidden () + search-shortcut () + recent-shortcut () + places-shortcut () + + Properties from GtkFileChooserWidget: + search-mode -> gboolean: search-mode + subtitle -> gchararray: subtitle + show-time -> gboolean: show-time + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + search_mode: bool + show_time: bool + subtitle: str + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action: FileChooserAction + create_folders: bool + filter: Optional[FileFilter] + filters: Gio.ListModel + select_multiple: bool + shortcut_folders: Gio.ListModel + + props: Props = ... + def __init__( + self, + search_mode: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action: FileChooserAction = ..., + create_folders: bool = ..., + filter: FileFilter = ..., + select_multiple: bool = ..., + ): ... + @classmethod + def new(cls, action: FileChooserAction) -> FileChooserWidget: ... + +class FileDialog(GObject.Object): + """ + :Constructors: + + :: + + FileDialog(**properties) + new() -> Gtk.FileDialog + + Object GtkFileDialog + + Properties from GtkFileDialog: + accept-label -> gchararray: accept-label + default-filter -> GtkFileFilter: default-filter + filters -> GListModel: filters + initial-file -> GFile: initial-file + initial-folder -> GFile: initial-folder + initial-name -> gchararray: initial-name + modal -> gboolean: modal + title -> gchararray: title + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_label: Optional[str] + default_filter: Optional[FileFilter] + filters: Optional[Gio.ListModel] + initial_file: Optional[Gio.File] + initial_folder: Optional[Gio.File] + initial_name: Optional[str] + modal: bool + title: str + + props: Props = ... + def __init__( + self, + accept_label: Optional[str] = ..., + default_filter: Optional[FileFilter] = ..., + filters: Optional[Gio.ListModel] = ..., + initial_file: Optional[Gio.File] = ..., + initial_folder: Optional[Gio.File] = ..., + initial_name: Optional[str] = ..., + modal: bool = ..., + title: str = ..., + ): ... + def get_accept_label(self) -> Optional[str]: ... + def get_default_filter(self) -> Optional[FileFilter]: ... + def get_filters(self) -> Optional[Gio.ListModel]: ... + def get_initial_file(self) -> Optional[Gio.File]: ... + def get_initial_folder(self) -> Optional[Gio.File]: ... + def get_initial_name(self) -> Optional[str]: ... + def get_modal(self) -> bool: ... + def get_title(self) -> str: ... + @classmethod + def new(cls) -> FileDialog: ... + def open( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def open_finish(self, result: Gio.AsyncResult) -> Optional[Gio.File]: ... + def open_multiple( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def open_multiple_finish( + self, result: Gio.AsyncResult + ) -> Optional[Gio.ListModel]: ... + def save( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def save_finish(self, result: Gio.AsyncResult) -> Optional[Gio.File]: ... + def select_folder( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def select_folder_finish(self, result: Gio.AsyncResult) -> Optional[Gio.File]: ... + def select_multiple_folders( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def select_multiple_folders_finish( + self, result: Gio.AsyncResult + ) -> Optional[Gio.ListModel]: ... + def set_accept_label(self, accept_label: Optional[str] = None) -> None: ... + def set_default_filter(self, filter: Optional[FileFilter] = None) -> None: ... + def set_filters(self, filters: Optional[Gio.ListModel] = None) -> None: ... + def set_initial_file(self, file: Optional[Gio.File] = None) -> None: ... + def set_initial_folder(self, folder: Optional[Gio.File] = None) -> None: ... + def set_initial_name(self, name: Optional[str] = None) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def set_title(self, title: str) -> None: ... + +class FileDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileDialogClass() + """ + + parent_class: GObject.ObjectClass = ... + +class FileFilter(Filter, Buildable): + """ + :Constructors: + + :: + + FileFilter(**properties) + new() -> Gtk.FileFilter + new_from_gvariant(variant:GLib.Variant) -> Gtk.FileFilter + + Object GtkFileFilter + + Properties from GtkFileFilter: + name -> gchararray: name + patterns -> GStrv: patterns + mime-types -> GStrv: mime-types + suffixes -> GStrv: suffixes + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + name: Optional[str] + mime_types: list[str] + patterns: list[str] + suffixes: list[str] + + props: Props = ... + def __init__( + self, + mime_types: Sequence[str] = ..., + name: Optional[str] = ..., + patterns: Sequence[str] = ..., + suffixes: Sequence[str] = ..., + ): ... + def add_mime_type(self, mime_type: str) -> None: ... + def add_pattern(self, pattern: str) -> None: ... + def add_pixbuf_formats(self) -> None: ... + def add_suffix(self, suffix: str) -> None: ... + def get_attributes(self) -> list[str]: ... + def get_name(self) -> Optional[str]: ... + @classmethod + def new(cls) -> FileFilter: ... + @classmethod + def new_from_gvariant(cls, variant: GLib.Variant) -> FileFilter: ... + def set_name(self, name: Optional[str] = None) -> None: ... + def to_gvariant(self) -> GLib.Variant: ... + +class FileLauncher(GObject.Object): + """ + :Constructors: + + :: + + FileLauncher(**properties) + new(file:Gio.File=None) -> Gtk.FileLauncher + + Object GtkFileLauncher + + Properties from GtkFileLauncher: + file -> GFile: file + always-ask -> gboolean: always-ask + writable -> gboolean: writable + + Signals from GObject: + notify (GParam) + """ + + class Props: + always_ask: bool + file: Optional[Gio.File] + writable: bool + + props: Props = ... + def __init__( + self, + always_ask: bool = ..., + file: Optional[Gio.File] = ..., + writable: bool = ..., + ): ... + def get_always_ask(self) -> bool: ... + def get_file(self) -> Optional[Gio.File]: ... + def get_writable(self) -> bool: ... + def launch( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def launch_finish(self, result: Gio.AsyncResult) -> bool: ... + @classmethod + def new(cls, file: Optional[Gio.File] = None) -> FileLauncher: ... + def open_containing_folder( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def open_containing_folder_finish(self, result: Gio.AsyncResult) -> bool: ... + def set_always_ask(self, always_ask: bool) -> None: ... + def set_file(self, file: Optional[Gio.File] = None) -> None: ... + def set_writable(self, writable: bool) -> None: ... + +class FileLauncherClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileLauncherClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Filter(GObject.Object): + """ + :Constructors: + + :: + + Filter(**properties) + + Object GtkFilter + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + def changed(self, change: FilterChange) -> None: ... + def do_get_strictness(self) -> FilterMatch: ... + def do_match(self, item: Optional[GObject.Object] = None) -> bool: ... + def get_strictness(self) -> FilterMatch: ... + def match(self, item: GObject.Object) -> bool: ... + +class FilterClass(GObject.GPointer): + """ + :Constructors: + + :: + + FilterClass() + """ + + parent_class: GObject.ObjectClass = ... + match: Callable[[Filter, Optional[GObject.Object]], bool] = ... + get_strictness: Callable[[Filter], FilterMatch] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + _gtk_reserved5: None = ... + _gtk_reserved6: None = ... + _gtk_reserved7: None = ... + _gtk_reserved8: None = ... + +class FilterListModel(GObject.Object, Gio.ListModel, SectionModel): + """ + :Constructors: + + :: + + FilterListModel(**properties) + new(model:Gio.ListModel=None, filter:Gtk.Filter=None) -> Gtk.FilterListModel + + Object GtkFilterListModel + + Properties from GtkFilterListModel: + filter -> GtkFilter: filter + incremental -> gboolean: incremental + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + pending -> guint: pending + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + filter: Optional[Filter] + incremental: bool + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + pending: int + + props: Props = ... + def __init__( + self, + filter: Optional[Filter] = ..., + incremental: bool = ..., + model: Optional[Gio.ListModel] = ..., + ): ... + def get_filter(self) -> Optional[Filter]: ... + def get_incremental(self) -> bool: ... + def get_model(self) -> Optional[Gio.ListModel]: ... + def get_pending(self) -> int: ... + @classmethod + def new( + cls, model: Optional[Gio.ListModel] = None, filter: Optional[Filter] = None + ) -> FilterListModel: ... + def set_filter(self, filter: Optional[Filter] = None) -> None: ... + def set_incremental(self, incremental: bool) -> None: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + +class FilterListModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + FilterListModelClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Fixed(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Fixed(**properties) + new() -> Gtk.Widget + + Object GtkFixed + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child_position(self, widget: Widget) -> Tuple[float, float]: ... + def get_child_transform(self, widget: Widget) -> Optional[Gsk.Transform]: ... + def move(self, widget: Widget, x: float, y: float) -> None: ... + @classmethod + def new(cls) -> Fixed: ... + def put(self, widget: Widget, x: float, y: float) -> None: ... + def remove(self, widget: Widget) -> None: ... + def set_child_transform( + self, widget: Widget, transform: Optional[Gsk.Transform] = None + ) -> None: ... + +class FixedClass(GObject.GPointer): + """ + :Constructors: + + :: + + FixedClass() + """ + + parent_class: WidgetClass = ... + padding: list[None] = ... + +class FixedLayout(LayoutManager): + """ + :Constructors: + + :: + + FixedLayout(**properties) + new() -> Gtk.LayoutManager + + Object GtkFixedLayout + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new(cls) -> FixedLayout: ... + +class FixedLayoutChild(LayoutChild): + """ + :Constructors: + + :: + + FixedLayoutChild(**properties) + + Object GtkFixedLayoutChild + + Properties from GtkFixedLayoutChild: + transform -> GskTransform: transform + + Properties from GtkLayoutChild: + layout-manager -> GtkLayoutManager: layout-manager + child-widget -> GtkWidget: child-widget + + Signals from GObject: + notify (GParam) + """ + + class Props: + transform: Optional[Gsk.Transform] + child_widget: Widget + layout_manager: LayoutManager + + props: Props = ... + def __init__( + self, + transform: Gsk.Transform = ..., + child_widget: Widget = ..., + layout_manager: LayoutManager = ..., + ): ... + def get_transform(self) -> Optional[Gsk.Transform]: ... + def set_transform(self, transform: Gsk.Transform) -> None: ... + +class FixedLayoutChildClass(GObject.GPointer): + """ + :Constructors: + + :: + + FixedLayoutChildClass() + """ + + parent_class: LayoutChildClass = ... + +class FixedLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + FixedLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class FlattenListModel(GObject.Object, Gio.ListModel, SectionModel): + """ + :Constructors: + + :: + + FlattenListModel(**properties) + new(model:Gio.ListModel=None) -> Gtk.FlattenListModel + + Object GtkFlattenListModel + + Properties from GtkFlattenListModel: + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + + props: Props = ... + def __init__(self, model: Optional[Gio.ListModel] = ...): ... + def get_model(self) -> Optional[Gio.ListModel]: ... + def get_model_for_item(self, position: int) -> Optional[Gio.ListModel]: ... + @classmethod + def new(cls, model: Optional[Gio.ListModel] = None) -> FlattenListModel: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + +class FlattenListModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + FlattenListModelClass() + """ + + parent_class: GObject.ObjectClass = ... + +class FlowBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + FlowBox(**properties) + new() -> Gtk.Widget + + Object GtkFlowBox + + Signals from GtkFlowBox: + child-activated (GtkFlowBoxChild) + selected-children-changed () + activate-cursor-child () + toggle-cursor-child () + move-cursor (GtkMovementStep, gint, gboolean, gboolean) -> gboolean + select-all () + unselect-all () + + Properties from GtkFlowBox: + homogeneous -> gboolean: homogeneous + column-spacing -> guint: column-spacing + row-spacing -> guint: row-spacing + min-children-per-line -> guint: min-children-per-line + max-children-per-line -> guint: max-children-per-line + selection-mode -> GtkSelectionMode: selection-mode + activate-on-single-click -> gboolean: activate-on-single-click + accept-unpaired-release -> gboolean: accept-unpaired-release + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_unpaired_release: bool + activate_on_single_click: bool + column_spacing: int + homogeneous: bool + max_children_per_line: int + min_children_per_line: int + row_spacing: int + selection_mode: SelectionMode + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + accept_unpaired_release: bool = ..., + activate_on_single_click: bool = ..., + column_spacing: int = ..., + homogeneous: bool = ..., + max_children_per_line: int = ..., + min_children_per_line: int = ..., + row_spacing: int = ..., + selection_mode: SelectionMode = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def append(self, child: Widget) -> None: ... + def bind_model( + self, + model: Optional[Gio.ListModel], + create_widget_func: Callable[..., Widget], + *user_data: Any, + ) -> None: ... + def get_activate_on_single_click(self) -> bool: ... + def get_child_at_index(self, idx: int) -> Optional[FlowBoxChild]: ... + def get_child_at_pos(self, x: int, y: int) -> Optional[FlowBoxChild]: ... + def get_column_spacing(self) -> int: ... + def get_homogeneous(self) -> bool: ... + def get_max_children_per_line(self) -> int: ... + def get_min_children_per_line(self) -> int: ... + def get_row_spacing(self) -> int: ... + def get_selected_children(self) -> list[FlowBoxChild]: ... + def get_selection_mode(self) -> SelectionMode: ... + def insert(self, widget: Widget, position: int) -> None: ... + def invalidate_filter(self) -> None: ... + def invalidate_sort(self) -> None: ... + @classmethod + def new(cls) -> FlowBox: ... + def prepend(self, child: Widget) -> None: ... + def remove(self, widget: Widget) -> None: ... + def remove_all(self) -> None: ... + def select_all(self) -> None: ... + def select_child(self, child: FlowBoxChild) -> None: ... + def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... + def set_activate_on_single_click(self, single: bool) -> None: ... + def set_column_spacing(self, spacing: int) -> None: ... + def set_filter_func( + self, filter_func: Optional[Callable[..., bool]] = None, *user_data: Any + ) -> None: ... + def set_hadjustment(self, adjustment: Adjustment) -> None: ... + def set_homogeneous(self, homogeneous: bool) -> None: ... + def set_max_children_per_line(self, n_children: int) -> None: ... + def set_min_children_per_line(self, n_children: int) -> None: ... + def set_row_spacing(self, spacing: int) -> None: ... + def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_sort_func( + self, sort_func: Optional[Callable[..., int]] = None, *user_data: Any + ) -> None: ... + def set_vadjustment(self, adjustment: Adjustment) -> None: ... + def unselect_all(self) -> None: ... + def unselect_child(self, child: FlowBoxChild) -> None: ... + +class FlowBoxChild(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + FlowBoxChild(**properties) + new() -> Gtk.Widget + + Object GtkFlowBoxChild + + Signals from GtkFlowBoxChild: + activate () + + Properties from GtkFlowBoxChild: + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + child: Optional[Widget] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def changed(self) -> None: ... + def do_activate(self) -> None: ... + def get_child(self) -> Optional[Widget]: ... + def get_index(self) -> int: ... + def is_selected(self) -> bool: ... + @classmethod + def new(cls) -> FlowBoxChild: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + +class FlowBoxChildClass(GObject.GPointer): + """ + :Constructors: + + :: + + FlowBoxChildClass() + """ + + parent_class: WidgetClass = ... + activate: Callable[[FlowBoxChild], None] = ... + padding: list[None] = ... + +class FontButton(Widget, Accessible, Buildable, ConstraintTarget, FontChooser): + """ + :Constructors: + + :: + + FontButton(**properties) + new() -> Gtk.Widget + new_with_font(fontname:str) -> Gtk.Widget + + Object GtkFontButton + + Signals from GtkFontButton: + activate () + font-set () + + Properties from GtkFontButton: + title -> gchararray: title + modal -> gboolean: modal + use-font -> gboolean: use-font + use-size -> gboolean: use-size + + Signals from GtkFontChooser: + font-activated (gchararray) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + modal: bool + title: str + use_font: bool + use_size: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + font: Optional[str] + font_desc: Optional[Pango.FontDescription] + font_features: str + language: str + level: FontChooserLevel + preview_text: str + show_preview_entry: bool + + props: Props = ... + def __init__( + self, + modal: bool = ..., + title: str = ..., + use_font: bool = ..., + use_size: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + language: str = ..., + level: FontChooserLevel = ..., + preview_text: str = ..., + show_preview_entry: bool = ..., + ): ... + def get_modal(self) -> bool: ... + def get_title(self) -> str: ... + def get_use_font(self) -> bool: ... + def get_use_size(self) -> bool: ... + @classmethod + def new(cls) -> FontButton: ... + @classmethod + def new_with_font(cls, fontname: str) -> FontButton: ... + def set_modal(self, modal: bool) -> None: ... + def set_title(self, title: str) -> None: ... + def set_use_font(self, use_font: bool) -> None: ... + def set_use_size(self, use_size: bool) -> None: ... + +class FontChooser(GObject.GInterface): + """ + Interface GtkFontChooser + + Signals from GObject: + notify (GParam) + """ + + def get_font(self) -> Optional[str]: ... + def get_font_desc(self) -> Optional[Pango.FontDescription]: ... + def get_font_face(self) -> Optional[Pango.FontFace]: ... + def get_font_family(self) -> Optional[Pango.FontFamily]: ... + def get_font_features(self) -> str: ... + def get_font_map(self) -> Optional[Pango.FontMap]: ... + def get_font_size(self) -> int: ... + def get_language(self) -> str: ... + def get_level(self) -> FontChooserLevel: ... + def get_preview_text(self) -> str: ... + def get_show_preview_entry(self) -> bool: ... + def set_filter_func( + self, filter: Optional[Callable[..., bool]] = None, *user_data: Any + ) -> None: ... + def set_font(self, fontname: str) -> None: ... + def set_font_desc(self, font_desc: Pango.FontDescription) -> None: ... + def set_font_map(self, fontmap: Optional[Pango.FontMap] = None) -> None: ... + def set_language(self, language: str) -> None: ... + def set_level(self, level: FontChooserLevel) -> None: ... + def set_preview_text(self, text: str) -> None: ... + def set_show_preview_entry(self, show_preview_entry: bool) -> None: ... + +class FontChooserDialog( + Dialog, + Accessible, + Buildable, + ConstraintTarget, + FontChooser, + Native, + Root, + ShortcutManager, +): + """ + :Constructors: + + :: + + FontChooserDialog(**properties) + new(title:str=None, parent:Gtk.Window=None) -> Gtk.Widget + + Object GtkFontChooserDialog + + Signals from GtkFontChooser: + font-activated (gchararray) + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + font: Optional[str] + font_desc: Optional[Pango.FontDescription] + font_features: str + language: str + level: FontChooserLevel + preview_text: str + show_preview_entry: bool + startup_id: str + + props: Props = ... + def __init__( + self, + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + language: str = ..., + level: FontChooserLevel = ..., + preview_text: str = ..., + show_preview_entry: bool = ..., + ): ... + @classmethod + def new( + cls, title: Optional[str] = None, parent: Optional[Window] = None + ) -> FontChooserDialog: ... + +class FontChooserIface(GObject.GPointer): + """ + :Constructors: + + :: + + FontChooserIface() + """ + + base_iface: GObject.TypeInterface = ... + get_font_family: Callable[[FontChooser], Optional[Pango.FontFamily]] = ... + get_font_face: Callable[[FontChooser], Optional[Pango.FontFace]] = ... + get_font_size: Callable[[FontChooser], int] = ... + set_filter_func: Callable[..., None] = ... + font_activated: Callable[[FontChooser, str], None] = ... + set_font_map: Callable[[FontChooser, Optional[Pango.FontMap]], None] = ... + get_font_map: Callable[[FontChooser], Optional[Pango.FontMap]] = ... + padding: list[None] = ... + +class FontChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FontChooser): + """ + :Constructors: + + :: + + FontChooserWidget(**properties) + new() -> Gtk.Widget + + Object GtkFontChooserWidget + + Properties from GtkFontChooserWidget: + tweak-action -> GAction: tweak-action + + Signals from GtkFontChooser: + font-activated (gchararray) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + tweak_action: Gio.Action + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + font: Optional[str] + font_desc: Optional[Pango.FontDescription] + font_features: str + language: str + level: FontChooserLevel + preview_text: str + show_preview_entry: bool + + props: Props = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + language: str = ..., + level: FontChooserLevel = ..., + preview_text: str = ..., + show_preview_entry: bool = ..., + ): ... + @classmethod + def new(cls) -> FontChooserWidget: ... + +class FontDialog(GObject.Object): + """ + :Constructors: + + :: + + FontDialog(**properties) + new() -> Gtk.FontDialog + + Object GtkFontDialog + + Properties from GtkFontDialog: + title -> gchararray: title + modal -> gboolean: modal + language -> PangoLanguage: language + font-map -> PangoFontMap: font-map + filter -> GtkFilter: filter + + Signals from GObject: + notify (GParam) + """ + + class Props: + filter: Optional[Filter] + font_map: Optional[Pango.FontMap] + language: Optional[Pango.Language] + modal: bool + title: str + + props: Props = ... + def __init__( + self, + filter: Optional[Filter] = ..., + font_map: Optional[Pango.FontMap] = ..., + language: Pango.Language = ..., + modal: bool = ..., + title: str = ..., + ): ... + def choose_face( + self, + parent: Optional[Window] = None, + initial_value: Optional[Pango.FontFace] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def choose_face_finish( + self, result: Gio.AsyncResult + ) -> Optional[Pango.FontFace]: ... + def choose_family( + self, + parent: Optional[Window] = None, + initial_value: Optional[Pango.FontFamily] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def choose_family_finish( + self, result: Gio.AsyncResult + ) -> Optional[Pango.FontFamily]: ... + def choose_font( + self, + parent: Optional[Window] = None, + initial_value: Optional[Pango.FontDescription] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def choose_font_and_features( + self, + parent: Optional[Window] = None, + initial_value: Optional[Pango.FontDescription] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def choose_font_and_features_finish( + self, result: Gio.AsyncResult + ) -> Tuple[bool, Pango.FontDescription, str, Pango.Language]: ... + def choose_font_finish( + self, result: Gio.AsyncResult + ) -> Optional[Pango.FontDescription]: ... + def get_filter(self) -> Optional[Filter]: ... + def get_font_map(self) -> Optional[Pango.FontMap]: ... + def get_language(self) -> Optional[Pango.Language]: ... + def get_modal(self) -> bool: ... + def get_title(self) -> str: ... + @classmethod + def new(cls) -> FontDialog: ... + def set_filter(self, filter: Optional[Filter] = None) -> None: ... + def set_font_map(self, fontmap: Optional[Pango.FontMap] = None) -> None: ... + def set_language(self, language: Pango.Language) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def set_title(self, title: str) -> None: ... + +class FontDialogButton(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + FontDialogButton(**properties) + new(dialog:Gtk.FontDialog=None) -> Gtk.Widget + + Object GtkFontDialogButton + + Signals from GtkFontDialogButton: + activate () + + Properties from GtkFontDialogButton: + dialog -> GtkFontDialog: dialog + level -> GtkFontLevel: level + font-desc -> PangoFontDescription: font-desc + font-features -> gchararray: font-features + language -> PangoLanguage: language + use-font -> gboolean: use-font + use-size -> gboolean: use-size + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + dialog: Optional[FontDialog] + font_desc: Optional[Pango.FontDescription] + font_features: Optional[str] + language: Optional[Pango.Language] + level: FontLevel + use_font: bool + use_size: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + dialog: FontDialog = ..., + font_desc: Pango.FontDescription = ..., + font_features: Optional[str] = ..., + language: Optional[Pango.Language] = ..., + level: FontLevel = ..., + use_font: bool = ..., + use_size: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_dialog(self) -> Optional[FontDialog]: ... + def get_font_desc(self) -> Optional[Pango.FontDescription]: ... + def get_font_features(self) -> Optional[str]: ... + def get_language(self) -> Optional[Pango.Language]: ... + def get_level(self) -> FontLevel: ... + def get_use_font(self) -> bool: ... + def get_use_size(self) -> bool: ... + @classmethod + def new(cls, dialog: Optional[FontDialog] = None) -> FontDialogButton: ... + def set_dialog(self, dialog: FontDialog) -> None: ... + def set_font_desc(self, font_desc: Pango.FontDescription) -> None: ... + def set_font_features(self, font_features: Optional[str] = None) -> None: ... + def set_language(self, language: Optional[Pango.Language] = None) -> None: ... + def set_level(self, level: FontLevel) -> None: ... + def set_use_font(self, use_font: bool) -> None: ... + def set_use_size(self, use_size: bool) -> None: ... + +class FontDialogButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + FontDialogButtonClass() + """ + + parent_class: WidgetClass = ... + +class FontDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + FontDialogClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Frame(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Frame(**properties) + new(label:str=None) -> Gtk.Widget + + Object GtkFrame + + Properties from GtkFrame: + label -> gchararray: label + label-xalign -> gfloat: label-xalign + label-widget -> GtkWidget: label-widget + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + label: Optional[str] + label_widget: Optional[Widget] + label_xalign: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + child: Optional[Widget] = ..., + label: Optional[str] = ..., + label_widget: Optional[Widget] = ..., + label_xalign: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def do_compute_child_allocation(self, allocation: Gdk.Rectangle) -> None: ... + def get_child(self) -> Optional[Widget]: ... + def get_label(self) -> Optional[str]: ... + def get_label_align(self) -> float: ... + def get_label_widget(self) -> Optional[Widget]: ... + @classmethod + def new(cls, label: Optional[str] = None) -> Frame: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_label(self, label: Optional[str] = None) -> None: ... + def set_label_align(self, xalign: float) -> None: ... + def set_label_widget(self, label_widget: Optional[Widget] = None) -> None: ... + +class FrameClass(GObject.GPointer): + """ + :Constructors: + + :: + + FrameClass() + """ + + parent_class: WidgetClass = ... + compute_child_allocation: Callable[[Frame, Gdk.Rectangle], None] = ... + padding: list[None] = ... + +class GLArea(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + GLArea(**properties) + new() -> Gtk.Widget + + Object GtkGLArea + + Signals from GtkGLArea: + resize (gint, gint) + render (GdkGLContext) -> gboolean + create-context () -> GdkGLContext + + Properties from GtkGLArea: + context -> GdkGLContext: context + has-depth-buffer -> gboolean: has-depth-buffer + has-stencil-buffer -> gboolean: has-stencil-buffer + use-es -> gboolean: use-es + allowed-apis -> GdkGLAPI: allowed-apis + api -> GdkGLAPI: api + auto-render -> gboolean: auto-render + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + allowed_apis: Gdk.GLAPI + api: Gdk.GLAPI + auto_render: bool + context: Optional[Gdk.GLContext] + has_depth_buffer: bool + has_stencil_buffer: bool + use_es: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + allowed_apis: Gdk.GLAPI = ..., + auto_render: bool = ..., + has_depth_buffer: bool = ..., + has_stencil_buffer: bool = ..., + use_es: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def attach_buffers(self) -> None: ... + def do_render(self, context: Gdk.GLContext) -> bool: ... + def do_resize(self, width: int, height: int) -> None: ... + def get_allowed_apis(self) -> Gdk.GLAPI: ... + def get_api(self) -> Gdk.GLAPI: ... + def get_auto_render(self) -> bool: ... + def get_context(self) -> Optional[Gdk.GLContext]: ... + def get_error(self) -> Optional[GLib.Error]: ... + def get_has_depth_buffer(self) -> bool: ... + def get_has_stencil_buffer(self) -> bool: ... + def get_required_version(self) -> Tuple[int, int]: ... + def get_use_es(self) -> bool: ... + def make_current(self) -> None: ... + @classmethod + def new(cls) -> GLArea: ... + def queue_render(self) -> None: ... + def set_allowed_apis(self, apis: Gdk.GLAPI) -> None: ... + def set_auto_render(self, auto_render: bool) -> None: ... + def set_error(self, error: Optional[GLib.Error] = None) -> None: ... + def set_has_depth_buffer(self, has_depth_buffer: bool) -> None: ... + def set_has_stencil_buffer(self, has_stencil_buffer: bool) -> None: ... + def set_required_version(self, major: int, minor: int) -> None: ... + def set_use_es(self, use_es: bool) -> None: ... + +class GLAreaClass(GObject.GPointer): + """ + :Constructors: + + :: + + GLAreaClass() + """ + + parent_class: WidgetClass = ... + render: Callable[[GLArea, Gdk.GLContext], bool] = ... + resize: Callable[[GLArea, int, int], None] = ... + create_context: None = ... + _padding: list[None] = ... + +class Gesture(EventController): + """ + :Constructors: + + :: + + Gesture(**properties) + + Object GtkGesture + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_bounding_box(self) -> Tuple[bool, Gdk.Rectangle]: ... + def get_bounding_box_center(self) -> Tuple[bool, float, float]: ... + def get_device(self) -> Optional[Gdk.Device]: ... + def get_group(self) -> list[Gesture]: ... + def get_last_event( + self, sequence: Optional[Gdk.EventSequence] = None + ) -> Optional[Gdk.Event]: ... + def get_last_updated_sequence(self) -> Optional[Gdk.EventSequence]: ... + def get_point( + self, sequence: Optional[Gdk.EventSequence] = None + ) -> Tuple[bool, float, float]: ... + def get_sequence_state(self, sequence: Gdk.EventSequence) -> EventSequenceState: ... + def get_sequences(self) -> list[Gdk.EventSequence]: ... + def group(self, gesture: Gesture) -> None: ... + def handles_sequence( + self, sequence: Optional[Gdk.EventSequence] = None + ) -> bool: ... + def is_active(self) -> bool: ... + def is_grouped_with(self, other: Gesture) -> bool: ... + def is_recognized(self) -> bool: ... + def set_sequence_state( + self, sequence: Gdk.EventSequence, state: EventSequenceState + ) -> bool: ... + def set_state(self, state: EventSequenceState) -> bool: ... + def ungroup(self) -> None: ... + +class GestureClass(GObject.GPointer): ... + +class GestureClick(GestureSingle): + """ + :Constructors: + + :: + + GestureClick(**properties) + new() -> Gtk.Gesture + + Object GtkGestureClick + + Signals from GtkGestureClick: + pressed (gint, gdouble, gdouble) + released (gint, gdouble, gdouble) + stopped () + unpaired-release (gdouble, gdouble, guint, GdkEventSequence) + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + @classmethod + def new(cls) -> GestureClick: ... + +class GestureClickClass(GObject.GPointer): ... + +class GestureDrag(GestureSingle): + """ + :Constructors: + + :: + + GestureDrag(**properties) + new() -> Gtk.Gesture + + Object GtkGestureDrag + + Signals from GtkGestureDrag: + drag-begin (gdouble, gdouble) + drag-end (gdouble, gdouble) + drag-update (gdouble, gdouble) + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_offset(self) -> Tuple[bool, float, float]: ... + def get_start_point(self) -> Tuple[bool, float, float]: ... + @classmethod + def new(cls) -> GestureDrag: ... + +class GestureDragClass(GObject.GPointer): ... + +class GestureLongPress(GestureSingle): + """ + :Constructors: + + :: + + GestureLongPress(**properties) + new() -> Gtk.Gesture + + Object GtkGestureLongPress + + Signals from GtkGestureLongPress: + cancelled () + pressed (gdouble, gdouble) + + Properties from GtkGestureLongPress: + delay-factor -> gdouble: delay-factor + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + delay_factor: float + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + delay_factor: float = ..., + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_delay_factor(self) -> float: ... + @classmethod + def new(cls) -> GestureLongPress: ... + def set_delay_factor(self, delay_factor: float) -> None: ... + +class GestureLongPressClass(GObject.GPointer): ... + +class GesturePan(GestureDrag): + """ + :Constructors: + + :: + + GesturePan(**properties) + new(orientation:Gtk.Orientation) -> Gtk.Gesture + + Object GtkGesturePan + + Signals from GtkGesturePan: + pan (GtkPanDirection, gdouble) + + Properties from GtkGesturePan: + orientation -> GtkOrientation: orientation + + Signals from GtkGestureDrag: + drag-begin (gdouble, gdouble) + drag-end (gdouble, gdouble) + drag-update (gdouble, gdouble) + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + orientation: Orientation + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + orientation: Orientation = ..., + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_orientation(self) -> Orientation: ... + @classmethod + def new(cls, orientation: Orientation) -> GesturePan: ... + def set_orientation(self, orientation: Orientation) -> None: ... + +class GesturePanClass(GObject.GPointer): ... + +class GestureRotate(Gesture): + """ + :Constructors: + + :: + + GestureRotate(**properties) + new() -> Gtk.Gesture + + Object GtkGestureRotate + + Signals from GtkGestureRotate: + angle-changed (gdouble, gdouble) + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_angle_delta(self) -> float: ... + @classmethod + def new(cls) -> GestureRotate: ... + +class GestureRotateClass(GObject.GPointer): ... + +class GestureSingle(Gesture): + """ + :Constructors: + + :: + + GestureSingle(**properties) + + Object GtkGestureSingle + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_button(self) -> int: ... + def get_current_button(self) -> int: ... + def get_current_sequence(self) -> Optional[Gdk.EventSequence]: ... + def get_exclusive(self) -> bool: ... + def get_touch_only(self) -> bool: ... + def set_button(self, button: int) -> None: ... + def set_exclusive(self, exclusive: bool) -> None: ... + def set_touch_only(self, touch_only: bool) -> None: ... + +class GestureSingleClass(GObject.GPointer): ... + +class GestureStylus(GestureSingle): + """ + :Constructors: + + :: + + GestureStylus(**properties) + new() -> Gtk.Gesture + + Object GtkGestureStylus + + Signals from GtkGestureStylus: + motion (gdouble, gdouble) + proximity (gdouble, gdouble) + down (gdouble, gdouble) + up (gdouble, gdouble) + + Properties from GtkGestureStylus: + stylus-only -> gboolean: stylus-only + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + stylus_only: bool + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + stylus_only: bool = ..., + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_axes(self, axes: Sequence[Gdk.AxisUse]) -> Tuple[bool, list[float]]: ... + def get_axis(self, axis: Gdk.AxisUse) -> Tuple[bool, float]: ... + def get_backlog(self) -> Tuple[bool, list[Gdk.TimeCoord]]: ... + def get_device_tool(self) -> Optional[Gdk.DeviceTool]: ... + def get_stylus_only(self) -> bool: ... + @classmethod + def new(cls) -> GestureStylus: ... + def set_stylus_only(self, stylus_only: bool) -> None: ... + +class GestureStylusClass(GObject.GPointer): ... + +class GestureSwipe(GestureSingle): + """ + :Constructors: + + :: + + GestureSwipe(**properties) + new() -> Gtk.Gesture + + Object GtkGestureSwipe + + Signals from GtkGestureSwipe: + swipe (gdouble, gdouble) + + Properties from GtkGestureSingle: + touch-only -> gboolean: touch-only + exclusive -> gboolean: exclusive + button -> guint: button + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + button: int + exclusive: bool + touch_only: bool + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + button: int = ..., + exclusive: bool = ..., + touch_only: bool = ..., + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_velocity(self) -> Tuple[bool, float, float]: ... + @classmethod + def new(cls) -> GestureSwipe: ... + +class GestureSwipeClass(GObject.GPointer): ... + +class GestureZoom(Gesture): + """ + :Constructors: + + :: + + GestureZoom(**properties) + new() -> Gtk.Gesture + + Object GtkGestureZoom + + Signals from GtkGestureZoom: + scale-changed (gdouble) + + Signals from GtkGesture: + cancel (GdkEventSequence) + begin (GdkEventSequence) + end (GdkEventSequence) + update (GdkEventSequence) + sequence-state-changed (GdkEventSequence, GtkEventSequenceState) + + Properties from GtkGesture: + n-points -> guint: n-points + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + n_points: int + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + n_points: int = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def get_scale_delta(self) -> float: ... + @classmethod + def new(cls) -> GestureZoom: ... + +class GestureZoomClass(GObject.GPointer): ... + +class GraphicsOffload(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + GraphicsOffload(**properties) + new(child:Gtk.Widget=None) -> Gtk.Widget + + Object GtkGraphicsOffload + + Properties from GtkGraphicsOffload: + child -> GtkWidget: child + enabled -> GtkGraphicsOffloadEnabled: enabled + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + enabled: GraphicsOffloadEnabled + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + enabled: GraphicsOffloadEnabled = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_enabled(self) -> GraphicsOffloadEnabled: ... + @classmethod + def new(cls, child: Optional[Widget] = None) -> GraphicsOffload: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_enabled(self, enabled: GraphicsOffloadEnabled) -> None: ... + +class GraphicsOffloadClass(GObject.GPointer): + """ + :Constructors: + + :: + + GraphicsOffloadClass() + """ + + parent_class: WidgetClass = ... + +class Grid(Widget, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + Grid(**properties) + new() -> Gtk.Widget + + Object GtkGrid + + Properties from GtkGrid: + row-spacing -> gint: row-spacing + column-spacing -> gint: column-spacing + row-homogeneous -> gboolean: row-homogeneous + column-homogeneous -> gboolean: column-homogeneous + baseline-row -> gint: baseline-row + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + baseline_row: int + column_homogeneous: bool + column_spacing: int + row_homogeneous: bool + row_spacing: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + baseline_row: int = ..., + column_homogeneous: bool = ..., + column_spacing: int = ..., + row_homogeneous: bool = ..., + row_spacing: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def attach( + self, child: Widget, column: int, row: int, width: int, height: int + ) -> None: ... + def attach_next_to( + self, + child: Widget, + sibling: Optional[Widget], + side: PositionType, + width: int, + height: int, + ) -> None: ... + def get_baseline_row(self) -> int: ... + def get_child_at(self, column: int, row: int) -> Optional[Widget]: ... + def get_column_homogeneous(self) -> bool: ... + def get_column_spacing(self) -> int: ... + def get_row_baseline_position(self, row: int) -> BaselinePosition: ... + def get_row_homogeneous(self) -> bool: ... + def get_row_spacing(self) -> int: ... + def insert_column(self, position: int) -> None: ... + def insert_next_to(self, sibling: Widget, side: PositionType) -> None: ... + def insert_row(self, position: int) -> None: ... + @classmethod + def new(cls) -> Grid: ... + def query_child(self, child: Widget) -> Tuple[int, int, int, int]: ... + def remove(self, child: Widget) -> None: ... + def remove_column(self, position: int) -> None: ... + def remove_row(self, position: int) -> None: ... + def set_baseline_row(self, row: int) -> None: ... + def set_column_homogeneous(self, homogeneous: bool) -> None: ... + def set_column_spacing(self, spacing: int) -> None: ... + def set_row_baseline_position(self, row: int, pos: BaselinePosition) -> None: ... + def set_row_homogeneous(self, homogeneous: bool) -> None: ... + def set_row_spacing(self, spacing: int) -> None: ... + +class GridClass(GObject.GPointer): + """ + :Constructors: + + :: + + GridClass() + """ + + parent_class: WidgetClass = ... + padding: list[None] = ... + +class GridLayout(LayoutManager): + """ + :Constructors: + + :: + + GridLayout(**properties) + new() -> Gtk.LayoutManager + + Object GtkGridLayout + + Properties from GtkGridLayout: + row-spacing -> gint: row-spacing + column-spacing -> gint: column-spacing + row-homogeneous -> gboolean: row-homogeneous + column-homogeneous -> gboolean: column-homogeneous + baseline-row -> gint: baseline-row + + Signals from GObject: + notify (GParam) + """ + + class Props: + baseline_row: int + column_homogeneous: bool + column_spacing: int + row_homogeneous: bool + row_spacing: int + + props: Props = ... + def __init__( + self, + baseline_row: int = ..., + column_homogeneous: bool = ..., + column_spacing: int = ..., + row_homogeneous: bool = ..., + row_spacing: int = ..., + ): ... + def get_baseline_row(self) -> int: ... + def get_column_homogeneous(self) -> bool: ... + def get_column_spacing(self) -> int: ... + def get_row_baseline_position(self, row: int) -> BaselinePosition: ... + def get_row_homogeneous(self) -> bool: ... + def get_row_spacing(self) -> int: ... + @classmethod + def new(cls) -> GridLayout: ... + def set_baseline_row(self, row: int) -> None: ... + def set_column_homogeneous(self, homogeneous: bool) -> None: ... + def set_column_spacing(self, spacing: int) -> None: ... + def set_row_baseline_position(self, row: int, pos: BaselinePosition) -> None: ... + def set_row_homogeneous(self, homogeneous: bool) -> None: ... + def set_row_spacing(self, spacing: int) -> None: ... + +class GridLayoutChild(LayoutChild): + """ + :Constructors: + + :: + + GridLayoutChild(**properties) + + Object GtkGridLayoutChild + + Properties from GtkGridLayoutChild: + column -> gint: column + row -> gint: row + column-span -> gint: column-span + row-span -> gint: row-span + + Properties from GtkLayoutChild: + layout-manager -> GtkLayoutManager: layout-manager + child-widget -> GtkWidget: child-widget + + Signals from GObject: + notify (GParam) + """ + + class Props: + column: int + column_span: int + row: int + row_span: int + child_widget: Widget + layout_manager: LayoutManager + + props: Props = ... + def __init__( + self, + column: int = ..., + column_span: int = ..., + row: int = ..., + row_span: int = ..., + child_widget: Widget = ..., + layout_manager: LayoutManager = ..., + ): ... + def get_column(self) -> int: ... + def get_column_span(self) -> int: ... + def get_row(self) -> int: ... + def get_row_span(self) -> int: ... + def set_column(self, column: int) -> None: ... + def set_column_span(self, span: int) -> None: ... + def set_row(self, row: int) -> None: ... + def set_row_span(self, span: int) -> None: ... + +class GridLayoutChildClass(GObject.GPointer): + """ + :Constructors: + + :: + + GridLayoutChildClass() + """ + + parent_class: LayoutChildClass = ... + +class GridLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + GridLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class GridView( + ListBase, Accessible, Buildable, ConstraintTarget, Orientable, Scrollable +): + """ + :Constructors: + + :: + + GridView(**properties) + new(model:Gtk.SelectionModel=None, factory:Gtk.ListItemFactory=None) -> Gtk.Widget + + Object GtkGridView + + Signals from GtkGridView: + activate (guint) + + Properties from GtkGridView: + enable-rubberband -> gboolean: enable-rubberband + factory -> GtkListItemFactory: factory + max-columns -> guint: max-columns + min-columns -> guint: min-columns + model -> GtkSelectionModel: model + single-click-activate -> gboolean: single-click-activate + tab-behavior -> GtkListTabBehavior: tab-behavior + + Properties from GtkListBase: + orientation -> GtkOrientation: orientation + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + enable_rubberband: bool + factory: Optional[ListItemFactory] + max_columns: int + min_columns: int + model: Optional[SelectionModel] + single_click_activate: bool + tab_behavior: ListTabBehavior + orientation: Orientation + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + def __init__( + self, + enable_rubberband: bool = ..., + factory: Optional[ListItemFactory] = ..., + max_columns: int = ..., + min_columns: int = ..., + model: Optional[SelectionModel] = ..., + single_click_activate: bool = ..., + tab_behavior: ListTabBehavior = ..., + orientation: Orientation = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + def get_enable_rubberband(self) -> bool: ... + def get_factory(self) -> Optional[ListItemFactory]: ... + def get_max_columns(self) -> int: ... + def get_min_columns(self) -> int: ... + def get_model(self) -> Optional[SelectionModel]: ... + def get_single_click_activate(self) -> bool: ... + def get_tab_behavior(self) -> ListTabBehavior: ... + @classmethod + def new( + cls, + model: Optional[SelectionModel] = None, + factory: Optional[ListItemFactory] = None, + ) -> GridView: ... + def scroll_to( + self, pos: int, flags: ListScrollFlags, scroll: Optional[ScrollInfo] = None + ) -> None: ... + def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... + def set_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_max_columns(self, max_columns: int) -> None: ... + def set_min_columns(self, min_columns: int) -> None: ... + def set_model(self, model: Optional[SelectionModel] = None) -> None: ... + def set_single_click_activate(self, single_click_activate: bool) -> None: ... + def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... + +class GridViewClass(GObject.GPointer): ... + +class HeaderBar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + HeaderBar(**properties) + new() -> Gtk.Widget + + Object GtkHeaderBar + + Properties from GtkHeaderBar: + title-widget -> GtkWidget: title-widget + show-title-buttons -> gboolean: show-title-buttons + decoration-layout -> gchararray: decoration-layout + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + decoration_layout: Optional[str] + show_title_buttons: bool + title_widget: Optional[Widget] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + decoration_layout: Optional[str] = ..., + show_title_buttons: bool = ..., + title_widget: Optional[Widget] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_decoration_layout(self) -> Optional[str]: ... + def get_show_title_buttons(self) -> bool: ... + def get_title_widget(self) -> Optional[Widget]: ... + @classmethod + def new(cls) -> HeaderBar: ... + def pack_end(self, child: Widget) -> None: ... + def pack_start(self, child: Widget) -> None: ... + def remove(self, child: Widget) -> None: ... + def set_decoration_layout(self, layout: Optional[str] = None) -> None: ... + def set_show_title_buttons(self, setting: bool) -> None: ... + def set_title_widget(self, title_widget: Optional[Widget] = None) -> None: ... + +class IMContext(GObject.Object): + """ + :Constructors: + + :: + + IMContext(**properties) + + Object GtkIMContext + + Signals from GtkIMContext: + preedit-start () + preedit-end () + preedit-changed () + commit (gchararray) + retrieve-surrounding () -> gboolean + delete-surrounding (gint, gint) -> gboolean + + Properties from GtkIMContext: + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + + Signals from GObject: + notify (GParam) + """ + + class Props: + input_hints: InputHints + input_purpose: InputPurpose + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + ): ... + def activate_osk(self, event: Optional[Gdk.Event] = None) -> bool: ... + def delete_surrounding(self, offset: int, n_chars: int) -> bool: ... + def do_activate_osk(self) -> None: ... + def do_activate_osk_with_event(self, event: Gdk.Event) -> bool: ... + def do_commit(self, str: str) -> None: ... + def do_delete_surrounding(self, offset: int, n_chars: int) -> bool: ... + def do_filter_keypress(self, event: Gdk.Event) -> bool: ... + def do_focus_in(self) -> None: ... + def do_focus_out(self) -> None: ... + def do_get_preedit_string(self) -> Tuple[str, Pango.AttrList, int]: ... + def do_get_surrounding(self) -> Tuple[bool, str, int]: ... + def do_get_surrounding_with_selection(self) -> Tuple[bool, str, int, int]: ... + def do_preedit_changed(self) -> None: ... + def do_preedit_end(self) -> None: ... + def do_preedit_start(self) -> None: ... + def do_reset(self) -> None: ... + def do_retrieve_surrounding(self) -> bool: ... + def do_set_client_widget(self, widget: Optional[Widget] = None) -> None: ... + def do_set_cursor_location(self, area: Gdk.Rectangle) -> None: ... + def do_set_surrounding(self, text: str, len: int, cursor_index: int) -> None: ... + def do_set_surrounding_with_selection( + self, text: str, len: int, cursor_index: int, anchor_index: int + ) -> None: ... + def do_set_use_preedit(self, use_preedit: bool) -> None: ... + def filter_key( + self, + press: bool, + surface: Gdk.Surface, + device: Gdk.Device, + time: int, + keycode: int, + state: Gdk.ModifierType, + group: int, + ) -> bool: ... + def filter_keypress(self, event: Gdk.Event) -> bool: ... + def focus_in(self) -> None: ... + def focus_out(self) -> None: ... + def get_preedit_string(self) -> Tuple[str, Pango.AttrList, int]: ... + def get_surrounding( + self, + ) -> Optional[Tuple[str, int]]: ... # CHECK Wrapped function + def get_surrounding_with_selection(self) -> Tuple[bool, str, int, int]: ... + def reset(self) -> None: ... + def set_client_widget(self, widget: Optional[Widget] = None) -> None: ... + def set_cursor_location(self, area: Gdk.Rectangle) -> None: ... + def set_surrounding(self, text: str, len: int, cursor_index: int) -> None: ... + def set_surrounding_with_selection( + self, text: str, len: int, cursor_index: int, anchor_index: int + ) -> None: ... + def set_use_preedit(self, use_preedit: bool) -> None: ... + +class IMContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + IMContextClass() + """ + + parent_class: GObject.ObjectClass = ... + preedit_start: Callable[[IMContext], None] = ... + preedit_end: Callable[[IMContext], None] = ... + preedit_changed: Callable[[IMContext], None] = ... + commit: Callable[[IMContext, str], None] = ... + retrieve_surrounding: Callable[[IMContext], bool] = ... + delete_surrounding: Callable[[IMContext, int, int], bool] = ... + set_client_widget: Callable[[IMContext, Optional[Widget]], None] = ... + get_preedit_string: Callable[[IMContext], Tuple[str, Pango.AttrList, int]] = ... + filter_keypress: Callable[[IMContext, Gdk.Event], bool] = ... + focus_in: Callable[[IMContext], None] = ... + focus_out: Callable[[IMContext], None] = ... + reset: Callable[[IMContext], None] = ... + set_cursor_location: Callable[[IMContext, Gdk.Rectangle], None] = ... + set_use_preedit: Callable[[IMContext, bool], None] = ... + set_surrounding: Callable[[IMContext, str, int, int], None] = ... + get_surrounding: Callable[[IMContext], Tuple[bool, str, int]] = ... + set_surrounding_with_selection: Callable[[IMContext, str, int, int, int], None] = ( + ... + ) + get_surrounding_with_selection: Callable[ + [IMContext], Tuple[bool, str, int, int] + ] = ... + activate_osk: Callable[[IMContext], None] = ... + activate_osk_with_event: Callable[[IMContext, Gdk.Event], bool] = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class IMContextSimple(IMContext): + """ + :Constructors: + + :: + + IMContextSimple(**properties) + new() -> Gtk.IMContext + + Object GtkIMContextSimple + + Signals from GtkIMContext: + preedit-start () + preedit-end () + preedit-changed () + commit (gchararray) + retrieve-surrounding () -> gboolean + delete-surrounding (gint, gint) -> gboolean + + Properties from GtkIMContext: + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + + Signals from GObject: + notify (GParam) + """ + + class Props: + input_hints: InputHints + input_purpose: InputPurpose + + props: Props = ... + object: IMContext = ... + priv: IMContextSimplePrivate = ... + def __init__( + self, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + ): ... + def add_compose_file(self, compose_file: str) -> None: ... + @classmethod + def new(cls) -> IMContextSimple: ... + +class IMContextSimpleClass(GObject.GPointer): + """ + :Constructors: + + :: + + IMContextSimpleClass() + """ + + parent_class: IMContextClass = ... + +class IMContextSimplePrivate(GObject.GPointer): ... + +class IMMulticontext(IMContext): + """ + :Constructors: + + :: + + IMMulticontext(**properties) + new() -> Gtk.IMContext + + Object GtkIMMulticontext + + Signals from GtkIMContext: + preedit-start () + preedit-end () + preedit-changed () + commit (gchararray) + retrieve-surrounding () -> gboolean + delete-surrounding (gint, gint) -> gboolean + + Properties from GtkIMContext: + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + + Signals from GObject: + notify (GParam) + """ + + class Props: + input_hints: InputHints + input_purpose: InputPurpose + + props: Props = ... + object: IMContext = ... + priv: IMMulticontextPrivate = ... + def __init__( + self, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + ): ... + def get_context_id(self) -> str: ... + @classmethod + def new(cls) -> IMMulticontext: ... + def set_context_id(self, context_id: Optional[str] = None) -> None: ... + +class IMMulticontextClass(GObject.GPointer): + """ + :Constructors: + + :: + + IMMulticontextClass() + """ + + parent_class: IMContextClass = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class IMMulticontextPrivate(GObject.GPointer): ... + +class IconPaintable(GObject.Object, Gdk.Paintable, SymbolicPaintable): + """ + :Constructors: + + :: + + IconPaintable(**properties) + new_for_file(file:Gio.File, size:int, scale:int) -> Gtk.IconPaintable + + Object GtkIconPaintable + + Properties from GtkIconPaintable: + file -> GFile: file + icon-name -> gchararray: icon-name + is-symbolic -> gboolean: is-symbolic + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Signals from GObject: + notify (GParam) + """ + + class Props: + file: Optional[Gio.File] + icon_name: Optional[str] + is_symbolic: bool + + props: Props = ... + def __init__( + self, file: Gio.File = ..., icon_name: str = ..., is_symbolic: bool = ... + ): ... + def get_file(self) -> Optional[Gio.File]: ... + def get_icon_name(self) -> Optional[str]: ... + def is_symbolic(self) -> bool: ... + @classmethod + def new_for_file(cls, file: Gio.File, size: int, scale: int) -> IconPaintable: ... + +class IconTheme(GObject.Object): + """ + :Constructors: + + :: + + IconTheme(**properties) + new() -> Gtk.IconTheme + + Object GtkIconTheme + + Signals from GtkIconTheme: + changed () + + Properties from GtkIconTheme: + display -> GdkDisplay: display + icon-names -> GStrv: icon-names + search-path -> GStrv: search-path + resource-path -> GStrv: resource-path + theme-name -> gchararray: theme-name + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Optional[Gdk.Display] + icon_names: list[str] + resource_path: Optional[list[str]] + search_path: Optional[list[str]] + theme_name: str + + props: Props = ... + def __init__( + self, + display: Gdk.Display = ..., + resource_path: Optional[Sequence[str]] = ..., + search_path: Optional[Sequence[str]] = ..., + theme_name: Optional[str] = ..., + ): ... + def add_resource_path(self, path: str) -> None: ... + def add_search_path(self, path: str) -> None: ... + def get_display(self) -> Optional[Gdk.Display]: ... + @staticmethod + def get_for_display(display: Gdk.Display) -> IconTheme: ... + def get_icon_names(self) -> list[str]: ... + def get_icon_sizes(self, icon_name: str) -> list[int]: ... + def get_resource_path(self) -> Optional[list[str]]: ... + def get_search_path(self) -> Optional[list[str]]: ... + def get_theme_name(self) -> str: ... + def has_gicon(self, gicon: Gio.Icon) -> bool: ... + def has_icon(self, icon_name: str) -> bool: ... + def lookup_by_gicon( + self, + icon: Gio.Icon, + size: int, + scale: int, + direction: TextDirection, + flags: IconLookupFlags, + ) -> IconPaintable: ... + def lookup_icon( + self, + icon_name: str, + fallbacks: Optional[Sequence[str]], + size: int, + scale: int, + direction: TextDirection, + flags: IconLookupFlags, + ) -> IconPaintable: ... + @classmethod + def new(cls) -> IconTheme: ... + def set_resource_path(self, path: Optional[Sequence[str]] = None) -> None: ... + def set_search_path(self, path: Optional[Sequence[str]] = None) -> None: ... + def set_theme_name(self, theme_name: Optional[str] = None) -> None: ... + +class IconView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Scrollable): + """ + :Constructors: + + :: + + IconView(**properties) + new() -> Gtk.Widget + new_with_area(area:Gtk.CellArea) -> Gtk.Widget + new_with_model(model:Gtk.TreeModel) -> Gtk.Widget + + Object GtkIconView + + Signals from GtkIconView: + move-cursor (GtkMovementStep, gint, gboolean, gboolean) -> gboolean + select-all () + unselect-all () + item-activated (GtkTreePath) + selection-changed () + select-cursor-item () + toggle-cursor-item () + activate-cursor-item () -> gboolean + + Properties from GtkIconView: + pixbuf-column -> gint: pixbuf-column + text-column -> gint: text-column + markup-column -> gint: markup-column + selection-mode -> GtkSelectionMode: selection-mode + item-orientation -> GtkOrientation: item-orientation + model -> GtkTreeModel: model + columns -> gint: columns + item-width -> gint: item-width + spacing -> gint: spacing + row-spacing -> gint: row-spacing + column-spacing -> gint: column-spacing + margin -> gint: margin + reorderable -> gboolean: reorderable + tooltip-column -> gint: tooltip-column + item-padding -> gint: item-padding + cell-area -> GtkCellArea: cell-area + activate-on-single-click -> gboolean: activate-on-single-click + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activate_on_single_click: bool + cell_area: CellArea + column_spacing: int + columns: int + item_orientation: Orientation + item_padding: int + item_width: int + margin: int + markup_column: int + model: Optional[TreeModel] + pixbuf_column: int + reorderable: bool + row_spacing: int + selection_mode: SelectionMode + spacing: int + text_column: int + tooltip_column: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + def __init__( + self, + activate_on_single_click: bool = ..., + cell_area: CellArea = ..., + column_spacing: int = ..., + columns: int = ..., + item_orientation: Orientation = ..., + item_padding: int = ..., + item_width: int = ..., + margin: int = ..., + markup_column: int = ..., + model: Optional[TreeModel] = ..., + pixbuf_column: int = ..., + reorderable: bool = ..., + row_spacing: int = ..., + selection_mode: SelectionMode = ..., + spacing: int = ..., + text_column: int = ..., + tooltip_column: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + def create_drag_icon(self, path: TreePath) -> Optional[Gdk.Paintable]: ... + def enable_model_drag_dest( + self, formats: Gdk.ContentFormats, actions: Gdk.DragAction + ) -> None: ... + def enable_model_drag_source( + self, + start_button_mask: Gdk.ModifierType, + formats: Gdk.ContentFormats, + actions: Gdk.DragAction, + ) -> None: ... + def get_activate_on_single_click(self) -> bool: ... + def get_cell_rect( + self, path: TreePath, cell: Optional[CellRenderer] = None + ) -> Tuple[bool, Gdk.Rectangle]: ... + def get_column_spacing(self) -> int: ... + def get_columns(self) -> int: ... + def get_cursor(self) -> Tuple[bool, TreePath, CellRenderer]: ... + def get_dest_item_at_pos( + self, drag_x: int, drag_y: int + ) -> Optional[Tuple[TreePath, IconViewDropPosition]]: ... # CHECK Wrapped function + def get_drag_dest_item(self) -> Tuple[TreePath, IconViewDropPosition]: ... + def get_item_at_pos( + self, x: int, y: int + ) -> Optional[Tuple[TreePath, CellRenderer]]: ... # CHECK Wrapped function + def get_item_column(self, path: TreePath) -> int: ... + def get_item_orientation(self) -> Orientation: ... + def get_item_padding(self) -> int: ... + def get_item_row(self, path: TreePath) -> int: ... + def get_item_width(self) -> int: ... + def get_margin(self) -> int: ... + def get_markup_column(self) -> int: ... + def get_model(self) -> Optional[TreeModel]: ... + def get_path_at_pos(self, x: int, y: int) -> Optional[TreePath]: ... + def get_pixbuf_column(self) -> int: ... + def get_reorderable(self) -> bool: ... + def get_row_spacing(self) -> int: ... + def get_selected_items(self) -> list[TreePath]: ... + def get_selection_mode(self) -> SelectionMode: ... + def get_spacing(self) -> int: ... + def get_text_column(self) -> int: ... + def get_tooltip_column(self) -> int: ... + def get_tooltip_context( + self, x: int, y: int, keyboard_tip: bool + ) -> Tuple[bool, TreeModel, TreePath, TreeIter]: ... + def get_visible_range( + self, + ) -> Optional[Tuple[TreePath, TreePath]]: ... # CHECK Wrapped function + def item_activated(self, path: TreePath) -> None: ... + @classmethod + def new(cls) -> IconView: ... + @classmethod + def new_with_area(cls, area: CellArea) -> IconView: ... + @classmethod + def new_with_model(cls, model: TreeModel) -> IconView: ... + def path_is_selected(self, path: TreePath) -> bool: ... + def scroll_to_path( + self, path: TreePath, use_align: bool, row_align: float, col_align: float + ) -> None: ... + def select_all(self) -> None: ... + def select_path(self, path: TreePath) -> None: ... + def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... + def set_activate_on_single_click(self, single: bool) -> None: ... + def set_column_spacing(self, column_spacing: int) -> None: ... + def set_columns(self, columns: int) -> None: ... + def set_cursor( + self, path: TreePath, cell: Optional[CellRenderer], start_editing: bool + ) -> None: ... + def set_drag_dest_item( + self, path: Optional[TreePath], pos: IconViewDropPosition + ) -> None: ... + def set_item_orientation(self, orientation: Orientation) -> None: ... + def set_item_padding(self, item_padding: int) -> None: ... + def set_item_width(self, item_width: int) -> None: ... + def set_margin(self, margin: int) -> None: ... + def set_markup_column(self, column: int) -> None: ... + def set_model(self, model: Optional[TreeModel] = None) -> None: ... + def set_pixbuf_column(self, column: int) -> None: ... + def set_reorderable(self, reorderable: bool) -> None: ... + def set_row_spacing(self, row_spacing: int) -> None: ... + def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_spacing(self, spacing: int) -> None: ... + def set_text_column(self, column: int) -> None: ... + def set_tooltip_cell( + self, tooltip: Tooltip, path: TreePath, cell: Optional[CellRenderer] = None + ) -> None: ... + def set_tooltip_column(self, column: int) -> None: ... + def set_tooltip_item(self, tooltip: Tooltip, path: TreePath) -> None: ... + def unselect_all(self) -> None: ... + def unselect_path(self, path: TreePath) -> None: ... + def unset_model_drag_dest(self) -> None: ... + def unset_model_drag_source(self) -> None: ... + +class Image(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Image(**properties) + new() -> Gtk.Widget + new_from_file(filename:str) -> Gtk.Widget + new_from_gicon(icon:Gio.Icon) -> Gtk.Widget + new_from_icon_name(icon_name:str=None) -> Gtk.Widget + new_from_paintable(paintable:Gdk.Paintable=None) -> Gtk.Widget + new_from_pixbuf(pixbuf:GdkPixbuf.Pixbuf=None) -> Gtk.Widget + new_from_resource(resource_path:str) -> Gtk.Widget + + Object GtkImage + + Properties from GtkImage: + paintable -> GdkPaintable: paintable + file -> gchararray: file + icon-size -> GtkIconSize: icon-size + pixel-size -> gint: pixel-size + icon-name -> gchararray: icon-name + storage-type -> GtkImageType: storage-type + gicon -> GIcon: gicon + resource -> gchararray: resource + use-fallback -> gboolean: use-fallback + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + file: str + gicon: Optional[Gio.Icon] + icon_name: Optional[str] + icon_size: IconSize + paintable: Optional[Gdk.Paintable] + pixel_size: int + resource: str + storage_type: ImageType + use_fallback: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + file: str = ..., + gicon: Gio.Icon = ..., + icon_name: str = ..., + icon_size: IconSize = ..., + paintable: Gdk.Paintable = ..., + pixel_size: int = ..., + resource: str = ..., + use_fallback: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def clear(self) -> None: ... + def get_gicon(self) -> Optional[Gio.Icon]: ... + def get_icon_name(self) -> Optional[str]: ... + def get_icon_size(self) -> IconSize: ... + def get_paintable(self) -> Optional[Gdk.Paintable]: ... + def get_pixel_size(self) -> int: ... + def get_storage_type(self) -> ImageType: ... + @classmethod + def new(cls) -> Image: ... + @classmethod + def new_from_file(cls, filename: str) -> Image: ... + @classmethod + def new_from_gicon(cls, icon: Gio.Icon) -> Image: ... + @classmethod + def new_from_icon_name(cls, icon_name: Optional[str] = None) -> Image: ... + @classmethod + def new_from_paintable(cls, paintable: Optional[Gdk.Paintable] = None) -> Image: ... + @classmethod + def new_from_pixbuf(cls, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> Image: ... + @classmethod + def new_from_resource(cls, resource_path: str) -> Image: ... + def set_from_file(self, filename: Optional[str] = None) -> None: ... + def set_from_gicon(self, icon: Gio.Icon) -> None: ... + def set_from_icon_name(self, icon_name: Optional[str] = None) -> None: ... + def set_from_paintable(self, paintable: Optional[Gdk.Paintable] = None) -> None: ... + def set_from_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... + def set_from_resource(self, resource_path: Optional[str] = None) -> None: ... + def set_icon_size(self, icon_size: IconSize) -> None: ... + def set_pixel_size(self, pixel_size: int) -> None: ... + +class InfoBar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + InfoBar(**properties) + new() -> Gtk.Widget + + Object GtkInfoBar + + Signals from GtkInfoBar: + response (gint) + close () + + Properties from GtkInfoBar: + message-type -> GtkMessageType: message-type + show-close-button -> gboolean: show-close-button + revealed -> gboolean: revealed + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + message_type: MessageType + revealed: bool + show_close_button: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + message_type: MessageType = ..., + revealed: bool = ..., + show_close_button: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_action_widget(self, child: Widget, response_id: int) -> None: ... + def add_button(self, button_text: str, response_id: int) -> Button: ... + def add_child(self, widget: Widget) -> None: ... + def get_message_type(self) -> MessageType: ... + def get_revealed(self) -> bool: ... + def get_show_close_button(self) -> bool: ... + @classmethod + def new(cls) -> InfoBar: ... + def remove_action_widget(self, widget: Widget) -> None: ... + def remove_child(self, widget: Widget) -> None: ... + def response(self, response_id: int) -> None: ... + def set_default_response(self, response_id: int) -> None: ... + def set_message_type(self, message_type: MessageType) -> None: ... + def set_response_sensitive(self, response_id: int, setting: bool) -> None: ... + def set_revealed(self, revealed: bool) -> None: ... + def set_show_close_button(self, setting: bool) -> None: ... + +class Inscription(Widget, Accessible, AccessibleText, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Inscription(**properties) + new(text:str=None) -> Gtk.Widget + + Object GtkInscription + + Properties from GtkInscription: + attributes -> PangoAttrList: attributes + markup -> gchararray: markup + min-chars -> guint: min-chars + min-lines -> guint: min-lines + nat-chars -> guint: nat-chars + nat-lines -> guint: nat-lines + text -> gchararray: text + text-overflow -> GtkInscriptionOverflow: text-overflow + wrap-mode -> PangoWrapMode: wrap-mode + xalign -> gfloat: xalign + yalign -> gfloat: yalign + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + attributes: Optional[Pango.AttrList] + min_chars: int + min_lines: int + nat_chars: int + nat_lines: int + text: Optional[str] + text_overflow: InscriptionOverflow + wrap_mode: Pango.WrapMode + xalign: float + yalign: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + markup: Optional[str] + + props: Props = ... + def __init__( + self, + attributes: Optional[Pango.AttrList] = ..., + markup: Optional[str] = ..., + min_chars: int = ..., + min_lines: int = ..., + nat_chars: int = ..., + nat_lines: int = ..., + text: Optional[str] = ..., + text_overflow: InscriptionOverflow = ..., + wrap_mode: Pango.WrapMode = ..., + xalign: float = ..., + yalign: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_attributes(self) -> Optional[Pango.AttrList]: ... + def get_min_chars(self) -> int: ... + def get_min_lines(self) -> int: ... + def get_nat_chars(self) -> int: ... + def get_nat_lines(self) -> int: ... + def get_text(self) -> Optional[str]: ... + def get_text_overflow(self) -> InscriptionOverflow: ... + def get_wrap_mode(self) -> Pango.WrapMode: ... + def get_xalign(self) -> float: ... + def get_yalign(self) -> float: ... + @classmethod + def new(cls, text: Optional[str] = None) -> Inscription: ... + def set_attributes(self, attrs: Optional[Pango.AttrList] = None) -> None: ... + def set_markup(self, markup: Optional[str] = None) -> None: ... + def set_min_chars(self, min_chars: int) -> None: ... + def set_min_lines(self, min_lines: int) -> None: ... + def set_nat_chars(self, nat_chars: int) -> None: ... + def set_nat_lines(self, nat_lines: int) -> None: ... + def set_text(self, text: Optional[str] = None) -> None: ... + def set_text_overflow(self, overflow: InscriptionOverflow) -> None: ... + def set_wrap_mode(self, wrap_mode: Pango.WrapMode) -> None: ... + def set_xalign(self, xalign: float) -> None: ... + def set_yalign(self, yalign: float) -> None: ... + +class InscriptionClass(GObject.GPointer): + """ + :Constructors: + + :: + + InscriptionClass() + """ + + parent_class: WidgetClass = ... + +class KeyvalTrigger(ShortcutTrigger): + """ + :Constructors: + + :: + + KeyvalTrigger(**properties) + new(keyval:int, modifiers:Gdk.ModifierType) -> Gtk.ShortcutTrigger + + Object GtkKeyvalTrigger + + Properties from GtkKeyvalTrigger: + keyval -> guint: keyval + modifiers -> GdkModifierType: modifiers + + Signals from GObject: + notify (GParam) + """ + + class Props: + keyval: int + modifiers: Gdk.ModifierType + + props: Props = ... + def __init__(self, keyval: int = ..., modifiers: Gdk.ModifierType = ...): ... + def get_keyval(self) -> int: ... + def get_modifiers(self) -> Gdk.ModifierType: ... + @classmethod + def new(cls, keyval: int, modifiers: Gdk.ModifierType) -> KeyvalTrigger: ... + +class KeyvalTriggerClass(GObject.GPointer): ... + +class Label(Widget, Accessible, AccessibleText, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Label(**properties) + new(str:str=None) -> Gtk.Widget + new_with_mnemonic(str:str=None) -> Gtk.Widget + + Object GtkLabel + + Signals from GtkLabel: + activate-link (gchararray) -> gboolean + move-cursor (GtkMovementStep, gint, gboolean) + copy-clipboard () + activate-current-link () + + Properties from GtkLabel: + label -> gchararray: label + attributes -> PangoAttrList: attributes + use-markup -> gboolean: use-markup + use-underline -> gboolean: use-underline + justify -> GtkJustification: justify + wrap -> gboolean: wrap + wrap-mode -> PangoWrapMode: wrap-mode + natural-wrap-mode -> GtkNaturalWrapMode: natural-wrap-mode + selectable -> gboolean: selectable + mnemonic-keyval -> guint: mnemonic-keyval + mnemonic-widget -> GtkWidget: mnemonic-widget + ellipsize -> PangoEllipsizeMode: ellipsize + width-chars -> gint: width-chars + single-line-mode -> gboolean: single-line-mode + max-width-chars -> gint: max-width-chars + lines -> gint: lines + xalign -> gfloat: xalign + yalign -> gfloat: yalign + extra-menu -> GMenuModel: extra-menu + tabs -> PangoTabArray: tabs + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + attributes: Optional[Pango.AttrList] + ellipsize: Pango.EllipsizeMode + extra_menu: Optional[Gio.MenuModel] + justify: Justification + label: str + lines: int + max_width_chars: int + mnemonic_keyval: int + mnemonic_widget: Optional[Widget] + natural_wrap_mode: NaturalWrapMode + selectable: bool + single_line_mode: bool + tabs: Optional[Pango.TabArray] + use_markup: bool + use_underline: bool + width_chars: int + wrap: bool + wrap_mode: Pango.WrapMode + xalign: float + yalign: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + attributes: Optional[Pango.AttrList] = ..., + ellipsize: Pango.EllipsizeMode = ..., + extra_menu: Optional[Gio.MenuModel] = ..., + justify: Justification = ..., + label: str = ..., + lines: int = ..., + max_width_chars: int = ..., + mnemonic_widget: Optional[Widget] = ..., + natural_wrap_mode: NaturalWrapMode = ..., + selectable: bool = ..., + single_line_mode: bool = ..., + tabs: Optional[Pango.TabArray] = ..., + use_markup: bool = ..., + use_underline: bool = ..., + width_chars: int = ..., + wrap: bool = ..., + wrap_mode: Pango.WrapMode = ..., + xalign: float = ..., + yalign: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_attributes(self) -> Optional[Pango.AttrList]: ... + def get_current_uri(self) -> Optional[str]: ... + def get_ellipsize(self) -> Pango.EllipsizeMode: ... + def get_extra_menu(self) -> Optional[Gio.MenuModel]: ... + def get_justify(self) -> Justification: ... + def get_label(self) -> str: ... + def get_layout(self) -> Pango.Layout: ... + def get_layout_offsets(self) -> Tuple[int, int]: ... + def get_lines(self) -> int: ... + def get_max_width_chars(self) -> int: ... + def get_mnemonic_keyval(self) -> int: ... + def get_mnemonic_widget(self) -> Optional[Widget]: ... + def get_natural_wrap_mode(self) -> NaturalWrapMode: ... + def get_selectable(self) -> bool: ... + def get_selection_bounds(self) -> Tuple[bool, int, int]: ... + def get_single_line_mode(self) -> bool: ... + def get_tabs(self) -> Optional[Pango.TabArray]: ... + def get_text(self) -> str: ... + def get_use_markup(self) -> bool: ... + def get_use_underline(self) -> bool: ... + def get_width_chars(self) -> int: ... + def get_wrap(self) -> bool: ... + def get_wrap_mode(self) -> Pango.WrapMode: ... + def get_xalign(self) -> float: ... + def get_yalign(self) -> float: ... + @classmethod + def new(cls, str: Optional[str] = None) -> Label: ... + @classmethod + def new_with_mnemonic(cls, str: Optional[str] = None) -> Label: ... + def select_region(self, start_offset: int, end_offset: int) -> None: ... + def set_attributes(self, attrs: Optional[Pango.AttrList] = None) -> None: ... + def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ... + def set_extra_menu(self, model: Optional[Gio.MenuModel] = None) -> None: ... + def set_justify(self, jtype: Justification) -> None: ... + def set_label(self, str: str) -> None: ... + def set_lines(self, lines: int) -> None: ... + def set_markup(self, str: str) -> None: ... + def set_markup_with_mnemonic(self, str: str) -> None: ... + def set_max_width_chars(self, n_chars: int) -> None: ... + def set_mnemonic_widget(self, widget: Optional[Widget] = None) -> None: ... + def set_natural_wrap_mode(self, wrap_mode: NaturalWrapMode) -> None: ... + def set_selectable(self, setting: bool) -> None: ... + def set_single_line_mode(self, single_line_mode: bool) -> None: ... + def set_tabs(self, tabs: Optional[Pango.TabArray] = None) -> None: ... + def set_text(self, str: str) -> None: ... + def set_text_with_mnemonic(self, str: str) -> None: ... + def set_use_markup(self, setting: bool) -> None: ... + def set_use_underline(self, setting: bool) -> None: ... + def set_width_chars(self, n_chars: int) -> None: ... + def set_wrap(self, wrap: bool) -> None: ... + def set_wrap_mode(self, wrap_mode: Pango.WrapMode) -> None: ... + def set_xalign(self, xalign: float) -> None: ... + def set_yalign(self, yalign: float) -> None: ... + +class LayoutChild(GObject.Object): + """ + :Constructors: + + :: + + LayoutChild(**properties) + + Object GtkLayoutChild + + Properties from GtkLayoutChild: + layout-manager -> GtkLayoutManager: layout-manager + child-widget -> GtkWidget: child-widget + + Signals from GObject: + notify (GParam) + """ + + class Props: + child_widget: Widget + layout_manager: LayoutManager + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, child_widget: Widget = ..., layout_manager: LayoutManager = ... + ): ... + def get_child_widget(self) -> Widget: ... + def get_layout_manager(self) -> LayoutManager: ... + +class LayoutChildClass(GObject.GPointer): + """ + :Constructors: + + :: + + LayoutChildClass() + """ + + parent_class: GObject.ObjectClass = ... + +class LayoutManager(GObject.Object): + """ + :Constructors: + + :: + + LayoutManager(**properties) + + Object GtkLayoutManager + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + def allocate( + self, widget: Widget, width: int, height: int, baseline: int + ) -> None: ... + def do_allocate( + self, widget: Widget, width: int, height: int, baseline: int + ) -> None: ... + def do_create_layout_child( + self, widget: Widget, for_child: Widget + ) -> LayoutChild: ... + def do_get_request_mode(self, widget: Widget) -> SizeRequestMode: ... + def do_measure( + self, widget: Widget, orientation: Orientation, for_size: int + ) -> Tuple[int, int, int, int]: ... + def do_root(self) -> None: ... + def do_unroot(self) -> None: ... + def get_layout_child(self, child: Widget) -> LayoutChild: ... + def get_request_mode(self) -> SizeRequestMode: ... + def get_widget(self) -> Optional[Widget]: ... + def layout_changed(self) -> None: ... + def measure( + self, widget: Widget, orientation: Orientation, for_size: int + ) -> Tuple[int, int, int, int]: ... + +class LayoutManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + LayoutManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + get_request_mode: Callable[[LayoutManager, Widget], SizeRequestMode] = ... + measure: Callable[ + [LayoutManager, Widget, Orientation, int], Tuple[int, int, int, int] + ] = ... + allocate: Callable[[LayoutManager, Widget, int, int, int], None] = ... + layout_child_type: Type = ... + create_layout_child: Callable[[LayoutManager, Widget, Widget], LayoutChild] = ... + root: Callable[[LayoutManager], None] = ... + unroot: Callable[[LayoutManager], None] = ... + _padding: list[None] = ... + +class LevelBar( + Widget, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable +): + """ + :Constructors: + + :: + + LevelBar(**properties) + new() -> Gtk.Widget + new_for_interval(min_value:float, max_value:float) -> Gtk.Widget + + Object GtkLevelBar + + Signals from GtkLevelBar: + offset-changed (gchararray) + + Properties from GtkLevelBar: + value -> gdouble: value + min-value -> gdouble: min-value + max-value -> gdouble: max-value + mode -> GtkLevelBarMode: mode + inverted -> gboolean: inverted + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + inverted: bool + max_value: float + min_value: float + mode: LevelBarMode + value: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + inverted: bool = ..., + max_value: float = ..., + min_value: float = ..., + mode: LevelBarMode = ..., + value: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def add_offset_value(self, name: str, value: float) -> None: ... + def get_inverted(self) -> bool: ... + def get_max_value(self) -> float: ... + def get_min_value(self) -> float: ... + def get_mode(self) -> LevelBarMode: ... + def get_offset_value(self, name: Optional[str] = None) -> Tuple[bool, float]: ... + def get_value(self) -> float: ... + @classmethod + def new(cls) -> LevelBar: ... + @classmethod + def new_for_interval(cls, min_value: float, max_value: float) -> LevelBar: ... + def remove_offset_value(self, name: Optional[str] = None) -> None: ... + def set_inverted(self, inverted: bool) -> None: ... + def set_max_value(self, value: float) -> None: ... + def set_min_value(self, value: float) -> None: ... + def set_mode(self, mode: LevelBarMode) -> None: ... + def set_value(self, value: float) -> None: ... + +class LinkButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + LinkButton(**properties) + new(uri:str) -> Gtk.Widget + new_with_label(uri:str, label:str=None) -> Gtk.Widget + + Object GtkLinkButton + + Signals from GtkLinkButton: + activate-link () -> gboolean + + Properties from GtkLinkButton: + uri -> gchararray: uri + visited -> gboolean: visited + + Signals from GtkButton: + activate () + clicked () + + Properties from GtkButton: + label -> gchararray: label + has-frame -> gboolean: has-frame + use-underline -> gboolean: use-underline + icon-name -> gchararray: icon-name + child -> GtkWidget: child + can-shrink -> gboolean: can-shrink + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + uri: str + visited: bool + can_shrink: bool + child: Optional[Widget] + has_frame: bool + icon_name: Optional[str] + label: Optional[str] + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action_name: Optional[str] + action_target: GLib.Variant + + props: Props = ... + def __init__( + self, + uri: str = ..., + visited: bool = ..., + can_shrink: bool = ..., + child: Optional[Widget] = ..., + has_frame: bool = ..., + icon_name: str = ..., + label: str = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + ): ... + def get_uri(self) -> str: ... + def get_visited(self) -> bool: ... + @classmethod + def new(cls, uri: str) -> LinkButton: ... + @classmethod + def new_with_label(cls, uri: str, label: Optional[str] = None) -> LinkButton: ... + def set_uri(self, uri: str) -> None: ... + def set_visited(self, visited: bool) -> None: ... + +class ListBase(Widget, Accessible, Buildable, ConstraintTarget, Orientable, Scrollable): + """ + :Constructors: + + :: + + ListBase(**properties) + + Object GtkListBase + + Properties from GtkListBase: + orientation -> GtkOrientation: orientation + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + orientation: Orientation + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + def __init__( + self, + orientation: Orientation = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + +class ListBaseClass(GObject.GPointer): ... + +class ListBox(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ListBox(**properties) + new() -> Gtk.Widget + + Object GtkListBox + + Signals from GtkListBox: + move-cursor (GtkMovementStep, gint, gboolean, gboolean) + select-all () + unselect-all () + row-selected (GtkListBoxRow) + selected-rows-changed () + row-activated (GtkListBoxRow) + activate-cursor-row () + toggle-cursor-row () + + Properties from GtkListBox: + selection-mode -> GtkSelectionMode: selection-mode + activate-on-single-click -> gboolean: activate-on-single-click + accept-unpaired-release -> gboolean: accept-unpaired-release + show-separators -> gboolean: show-separators + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_unpaired_release: bool + activate_on_single_click: bool + selection_mode: SelectionMode + show_separators: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + accept_unpaired_release: bool = ..., + activate_on_single_click: bool = ..., + selection_mode: SelectionMode = ..., + show_separators: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def append(self, child: Widget) -> None: ... + def bind_model( + self, + model: Optional[Gio.ListModel] = None, + create_widget_func: Optional[Callable[..., Widget]] = None, + *user_data: Any, + ) -> None: ... + def drag_highlight_row(self, row: ListBoxRow) -> None: ... + def drag_unhighlight_row(self) -> None: ... + def get_activate_on_single_click(self) -> bool: ... + def get_adjustment(self) -> Optional[Adjustment]: ... + def get_row_at_index(self, index_: int) -> Optional[ListBoxRow]: ... + def get_row_at_y(self, y: int) -> Optional[ListBoxRow]: ... + def get_selected_row(self) -> Optional[ListBoxRow]: ... + def get_selected_rows(self) -> list[ListBoxRow]: ... + def get_selection_mode(self) -> SelectionMode: ... + def get_show_separators(self) -> bool: ... + def insert(self, child: Widget, position: int) -> None: ... + def invalidate_filter(self) -> None: ... + def invalidate_headers(self) -> None: ... + def invalidate_sort(self) -> None: ... + @classmethod + def new(cls) -> ListBox: ... + def prepend(self, child: Widget) -> None: ... + def remove(self, child: Widget) -> None: ... + def remove_all(self) -> None: ... + def select_all(self) -> None: ... + def select_row(self, row: Optional[ListBoxRow] = None) -> None: ... + def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... + def set_activate_on_single_click(self, single: bool) -> None: ... + def set_adjustment(self, adjustment: Optional[Adjustment] = None) -> None: ... + def set_filter_func( + self, filter_func: Optional[Callable[..., bool]] = None, *user_data: Any + ) -> None: ... + def set_header_func( + self, update_header: Optional[Callable[..., None]] = None, *user_data: Any + ) -> None: ... + def set_placeholder(self, placeholder: Optional[Widget] = None) -> None: ... + def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_show_separators(self, show_separators: bool) -> None: ... + def set_sort_func( + self, sort_func: Optional[Callable[..., int]] = None, *user_data: Any + ) -> None: ... + def unselect_all(self) -> None: ... + def unselect_row(self, row: ListBoxRow) -> None: ... + +class ListBoxRow(Widget, Accessible, Actionable, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ListBoxRow(**properties) + new() -> Gtk.Widget + + Object GtkListBoxRow + + Signals from GtkListBoxRow: + activate () + + Properties from GtkListBoxRow: + activatable -> gboolean: activatable + selectable -> gboolean: selectable + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activatable: bool + child: Optional[Widget] + selectable: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action_name: Optional[str] + action_target: GLib.Variant + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + activatable: bool = ..., + child: Optional[Widget] = ..., + selectable: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + ): ... + def changed(self) -> None: ... + def do_activate(self) -> None: ... + def get_activatable(self) -> bool: ... + def get_child(self) -> Optional[Widget]: ... + def get_header(self) -> Optional[Widget]: ... + def get_index(self) -> int: ... + def get_selectable(self) -> bool: ... + def is_selected(self) -> bool: ... + @classmethod + def new(cls) -> ListBoxRow: ... + def set_activatable(self, activatable: bool) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_header(self, header: Optional[Widget] = None) -> None: ... + def set_selectable(self, selectable: bool) -> None: ... + +class ListBoxRowClass(GObject.GPointer): + """ + :Constructors: + + :: + + ListBoxRowClass() + """ + + parent_class: WidgetClass = ... + activate: Callable[[ListBoxRow], None] = ... + padding: list[None] = ... + +class ListHeader(GObject.Object): + """ + :Constructors: + + :: + + ListHeader(**properties) + + Object GtkListHeader + + Properties from GtkListHeader: + child -> GtkWidget: child + end -> guint: end + item -> GObject: item + n-items -> guint: n-items + start -> guint: start + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + end: int + item: Optional[GObject.Object] + n_items: int + start: int + + props: Props = ... + def __init__(self, child: Optional[Widget] = ...): ... + def get_child(self) -> Optional[Widget]: ... + def get_end(self) -> int: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_n_items(self) -> int: ... + def get_start(self) -> int: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + +class ListHeaderClass(GObject.GPointer): ... + +class ListItem(GObject.Object): + """ + :Constructors: + + :: + + ListItem(**properties) + + Object GtkListItem + + Properties from GtkListItem: + accessible-description -> gchararray: accessible-description + accessible-label -> gchararray: accessible-label + activatable -> gboolean: activatable + child -> GtkWidget: child + focusable -> gboolean: focusable + item -> GObject: item + position -> guint: position + selectable -> gboolean: selectable + selected -> gboolean: selected + + Signals from GObject: + notify (GParam) + """ + + class Props: + accessible_description: str + accessible_label: str + activatable: bool + child: Optional[Widget] + focusable: bool + item: Optional[GObject.Object] + position: int + selectable: bool + selected: bool + + props: Props = ... + def __init__( + self, + accessible_description: str = ..., + accessible_label: str = ..., + activatable: bool = ..., + child: Optional[Widget] = ..., + focusable: bool = ..., + selectable: bool = ..., + ): ... + def get_accessible_description(self) -> str: ... + def get_accessible_label(self) -> str: ... + def get_activatable(self) -> bool: ... + def get_child(self) -> Optional[Widget]: ... + def get_focusable(self) -> bool: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_position(self) -> int: ... + def get_selectable(self) -> bool: ... + def get_selected(self) -> bool: ... + def set_accessible_description(self, description: str) -> None: ... + def set_accessible_label(self, label: str) -> None: ... + def set_activatable(self, activatable: bool) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_focusable(self, focusable: bool) -> None: ... + def set_selectable(self, selectable: bool) -> None: ... + +class ListItemClass(GObject.GPointer): ... +class ListItemFactory(GObject.Object): ... +class ListItemFactoryClass(GObject.GPointer): ... + +class ListStore( + GObject.Object, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable +): + """ + :Constructors: + + :: + + ListStore(**properties) + new(types:list) -> Gtk.ListStore + + Object GtkListStore + + Signals from GtkTreeModel: + row-changed (GtkTreePath, GtkTreeIter) + row-inserted (GtkTreePath, GtkTreeIter) + row-has-child-toggled (GtkTreePath, GtkTreeIter) + row-deleted (GtkTreePath) + rows-reordered (GtkTreePath, GtkTreeIter, gpointer) + + Signals from GtkTreeSortable: + sort-column-changed () + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: ListStorePrivate = ... + def append(self, row=None): ... # FIXME Function + def clear(self) -> None: ... + def insert(self, position, row=None): ... # FIXME Function + def insert_after(self, sibling, row=None): ... # FIXME Function + def insert_before(self, sibling, row=None): ... # FIXME Function + def insert_with_values( + self, position: int, columns: Sequence[int], values: Sequence[Any] + ) -> TreeIter: ... + def insert_with_valuesv( + self, position: int, columns: Sequence[int], values: Sequence[Any] + ) -> TreeIter: ... + def iter_is_valid(self, iter: TreeIter) -> bool: ... + def move_after( + self, iter: TreeIter, position: Optional[TreeIter] = None + ) -> None: ... + def move_before( + self, iter: TreeIter, position: Optional[TreeIter] = None + ) -> None: ... + @classmethod + def new(cls, types: Sequence[Type]) -> ListStore: ... + def prepend(self, row=None): ... # FIXME Function + def remove(self, iter: TreeIter) -> bool: ... + def reorder(self, new_order: Sequence[int]) -> None: ... + def set(self, treeiter, *args): ... # FIXME Function + def set_column_types(self, types: Sequence[Type]) -> None: ... + def set_value(self, treeiter, column, value): ... # FIXME Function + def swap(self, a: TreeIter, b: TreeIter) -> None: ... + +class ListStoreClass(GObject.GPointer): + """ + :Constructors: + + :: + + ListStoreClass() + """ + + parent_class: GObject.ObjectClass = ... + padding: list[None] = ... + +class ListStorePrivate(GObject.GPointer): ... + +class ListView( + ListBase, Accessible, Buildable, ConstraintTarget, Orientable, Scrollable +): + """ + :Constructors: + + :: + + ListView(**properties) + new(model:Gtk.SelectionModel=None, factory:Gtk.ListItemFactory=None) -> Gtk.Widget + + Object GtkListView + + Signals from GtkListView: + activate (guint) + + Properties from GtkListView: + enable-rubberband -> gboolean: enable-rubberband + factory -> GtkListItemFactory: factory + header-factory -> GtkListItemFactory: header-factory + model -> GtkSelectionModel: model + show-separators -> gboolean: show-separators + single-click-activate -> gboolean: single-click-activate + tab-behavior -> GtkListTabBehavior: tab-behavior + + Properties from GtkListBase: + orientation -> GtkOrientation: orientation + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + enable_rubberband: bool + factory: Optional[ListItemFactory] + header_factory: Optional[ListItemFactory] + model: Optional[SelectionModel] + show_separators: bool + single_click_activate: bool + tab_behavior: ListTabBehavior + orientation: Orientation + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + def __init__( + self, + enable_rubberband: bool = ..., + factory: Optional[ListItemFactory] = ..., + header_factory: Optional[ListItemFactory] = ..., + model: Optional[SelectionModel] = ..., + show_separators: bool = ..., + single_click_activate: bool = ..., + tab_behavior: ListTabBehavior = ..., + orientation: Orientation = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + def get_enable_rubberband(self) -> bool: ... + def get_factory(self) -> Optional[ListItemFactory]: ... + def get_header_factory(self) -> Optional[ListItemFactory]: ... + def get_model(self) -> Optional[SelectionModel]: ... + def get_show_separators(self) -> bool: ... + def get_single_click_activate(self) -> bool: ... + def get_tab_behavior(self) -> ListTabBehavior: ... + @classmethod + def new( + cls, + model: Optional[SelectionModel] = None, + factory: Optional[ListItemFactory] = None, + ) -> ListView: ... + def scroll_to( + self, pos: int, flags: ListScrollFlags, scroll: Optional[ScrollInfo] = None + ) -> None: ... + def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... + def set_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_header_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_model(self, model: Optional[SelectionModel] = None) -> None: ... + def set_show_separators(self, show_separators: bool) -> None: ... + def set_single_click_activate(self, single_click_activate: bool) -> None: ... + def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... + +class ListViewClass(GObject.GPointer): ... + +class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + LockButton(**properties) + new(permission:Gio.Permission=None) -> Gtk.Widget + + Object GtkLockButton + + Properties from GtkLockButton: + permission -> GPermission: permission + text-lock -> gchararray: text-lock + text-unlock -> gchararray: text-unlock + tooltip-lock -> gchararray: tooltip-lock + tooltip-unlock -> gchararray: tooltip-unlock + tooltip-not-authorized -> gchararray: tooltip-not-authorized + + Signals from GtkButton: + activate () + clicked () + + Properties from GtkButton: + label -> gchararray: label + has-frame -> gboolean: has-frame + use-underline -> gboolean: use-underline + icon-name -> gchararray: icon-name + child -> GtkWidget: child + can-shrink -> gboolean: can-shrink + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + permission: Optional[Gio.Permission] + text_lock: str + text_unlock: str + tooltip_lock: str + tooltip_not_authorized: str + tooltip_unlock: str + can_shrink: bool + child: Optional[Widget] + has_frame: bool + icon_name: Optional[str] + label: Optional[str] + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action_name: Optional[str] + action_target: GLib.Variant + + props: Props = ... + def __init__( + self, + permission: Optional[Gio.Permission] = ..., + text_lock: str = ..., + text_unlock: str = ..., + tooltip_lock: str = ..., + tooltip_not_authorized: str = ..., + tooltip_unlock: str = ..., + can_shrink: bool = ..., + child: Optional[Widget] = ..., + has_frame: bool = ..., + icon_name: str = ..., + label: str = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + ): ... + def get_permission(self) -> Optional[Gio.Permission]: ... + @classmethod + def new(cls, permission: Optional[Gio.Permission] = None) -> LockButton: ... + def set_permission(self, permission: Optional[Gio.Permission] = None) -> None: ... + +class MapListModel(GObject.Object, Gio.ListModel, SectionModel): + """ + :Constructors: + + :: + + MapListModel(**properties) + new(model:Gio.ListModel=None, map_func:Gtk.MapListModelMapFunc=None, user_data=None) -> Gtk.MapListModel + + Object GtkMapListModel + + Properties from GtkMapListModel: + has-map -> gboolean: has-map + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + has_map: bool + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + + props: Props = ... + def __init__(self, model: Gio.ListModel = ...): ... + def get_model(self) -> Optional[Gio.ListModel]: ... + def has_map(self) -> bool: ... + @classmethod + def new( + cls, + model: Optional[Gio.ListModel] = None, + map_func: Optional[Callable[..., GObject.Object]] = None, + *user_data: Any, + ) -> MapListModel: ... + def set_map_func( + self, map_func: Optional[Callable[..., GObject.Object]] = None, *user_data: Any + ) -> None: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + +class MapListModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + MapListModelClass() + """ + + parent_class: GObject.ObjectClass = ... + +class MediaControls(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + MediaControls(**properties) + new(stream:Gtk.MediaStream=None) -> Gtk.Widget + + Object GtkMediaControls + + Properties from GtkMediaControls: + media-stream -> GtkMediaStream: media-stream + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + media_stream: Optional[MediaStream] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + media_stream: Optional[MediaStream] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_media_stream(self) -> Optional[MediaStream]: ... + @classmethod + def new(cls, stream: Optional[MediaStream] = None) -> MediaControls: ... + def set_media_stream(self, stream: Optional[MediaStream] = None) -> None: ... + +class MediaControlsClass(GObject.GPointer): + """ + :Constructors: + + :: + + MediaControlsClass() + """ + + parent_class: WidgetClass = ... + +class MediaFile(MediaStream, Gdk.Paintable): + """ + :Constructors: + + :: + + MediaFile(**properties) + new() -> Gtk.MediaFile + new_for_file(file:Gio.File) -> Gtk.MediaFile + new_for_filename(filename:str) -> Gtk.MediaFile + new_for_input_stream(stream:Gio.InputStream) -> Gtk.MediaFile + new_for_resource(resource_path:str) -> Gtk.MediaFile + + Object GtkMediaFile + + Properties from GtkMediaFile: + file -> GFile: file + input-stream -> GInputStream: input-stream + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Properties from GtkMediaStream: + prepared -> gboolean: prepared + error -> GError: error + has-audio -> gboolean: has-audio + has-video -> gboolean: has-video + playing -> gboolean: playing + ended -> gboolean: ended + timestamp -> gint64: timestamp + duration -> gint64: duration + seekable -> gboolean: seekable + seeking -> gboolean: seeking + loop -> gboolean: loop + muted -> gboolean: muted + volume -> gdouble: volume + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Signals from GObject: + notify (GParam) + """ + + class Props: + file: Optional[Gio.File] + input_stream: Optional[Gio.InputStream] + duration: int + ended: bool + error: Optional[GLib.Error] + has_audio: bool + has_video: bool + loop: bool + muted: bool + playing: bool + prepared: bool + seekable: bool + seeking: bool + timestamp: int + volume: float + + props: Props = ... + parent_instance: MediaStream = ... + def __init__( + self, + file: Optional[Gio.File] = ..., + input_stream: Optional[Gio.InputStream] = ..., + loop: bool = ..., + muted: bool = ..., + playing: bool = ..., + prepared: bool = ..., + volume: float = ..., + ): ... + def clear(self) -> None: ... + def do_close(self) -> None: ... + def do_open(self) -> None: ... + def get_file(self) -> Optional[Gio.File]: ... + def get_input_stream(self) -> Optional[Gio.InputStream]: ... + @classmethod + def new(cls) -> MediaFile: ... + @classmethod + def new_for_file(cls, file: Gio.File) -> MediaFile: ... + @classmethod + def new_for_filename(cls, filename: str) -> MediaFile: ... + @classmethod + def new_for_input_stream(cls, stream: Gio.InputStream) -> MediaFile: ... + @classmethod + def new_for_resource(cls, resource_path: str) -> MediaFile: ... + def set_file(self, file: Optional[Gio.File] = None) -> None: ... + def set_filename(self, filename: Optional[str] = None) -> None: ... + def set_input_stream(self, stream: Optional[Gio.InputStream] = None) -> None: ... + def set_resource(self, resource_path: Optional[str] = None) -> None: ... + +class MediaFileClass(GObject.GPointer): + """ + :Constructors: + + :: + + MediaFileClass() + """ + + parent_class: MediaStreamClass = ... + open: Callable[[MediaFile], None] = ... + close: Callable[[MediaFile], None] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class MediaStream(GObject.Object, Gdk.Paintable): + """ + :Constructors: + + :: + + MediaStream(**properties) + + Object GtkMediaStream + + Properties from GtkMediaStream: + prepared -> gboolean: prepared + error -> GError: error + has-audio -> gboolean: has-audio + has-video -> gboolean: has-video + playing -> gboolean: playing + ended -> gboolean: ended + timestamp -> gint64: timestamp + duration -> gint64: duration + seekable -> gboolean: seekable + seeking -> gboolean: seeking + loop -> gboolean: loop + muted -> gboolean: muted + volume -> gdouble: volume + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Signals from GObject: + notify (GParam) + """ + + class Props: + duration: int + ended: bool + error: Optional[GLib.Error] + has_audio: bool + has_video: bool + loop: bool + muted: bool + playing: bool + prepared: bool + seekable: bool + seeking: bool + timestamp: int + volume: float + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, + loop: bool = ..., + muted: bool = ..., + playing: bool = ..., + prepared: bool = ..., + volume: float = ..., + ): ... + def do_pause(self) -> None: ... + def do_play(self) -> bool: ... + def do_realize(self, surface: Gdk.Surface) -> None: ... + def do_seek(self, timestamp: int) -> None: ... + def do_unrealize(self, surface: Gdk.Surface) -> None: ... + def do_update_audio(self, muted: bool, volume: float) -> None: ... + def gerror(self, error: GLib.Error) -> None: ... + def get_duration(self) -> int: ... + def get_ended(self) -> bool: ... + def get_error(self) -> Optional[GLib.Error]: ... + def get_loop(self) -> bool: ... + def get_muted(self) -> bool: ... + def get_playing(self) -> bool: ... + def get_timestamp(self) -> int: ... + def get_volume(self) -> float: ... + def has_audio(self) -> bool: ... + def has_video(self) -> bool: ... + def is_prepared(self) -> bool: ... + def is_seekable(self) -> bool: ... + def is_seeking(self) -> bool: ... + def pause(self) -> None: ... + def play(self) -> None: ... + def realize(self, surface: Gdk.Surface) -> None: ... + def seek(self, timestamp: int) -> None: ... + def seek_failed(self) -> None: ... + def seek_success(self) -> None: ... + def set_loop(self, loop: bool) -> None: ... + def set_muted(self, muted: bool) -> None: ... + def set_playing(self, playing: bool) -> None: ... + def set_volume(self, volume: float) -> None: ... + def stream_ended(self) -> None: ... + def stream_prepared( + self, has_audio: bool, has_video: bool, seekable: bool, duration: int + ) -> None: ... + def stream_unprepared(self) -> None: ... + def unrealize(self, surface: Gdk.Surface) -> None: ... + def update(self, timestamp: int) -> None: ... + +class MediaStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + MediaStreamClass() + """ + + parent_class: GObject.ObjectClass = ... + play: Callable[[MediaStream], bool] = ... + pause: Callable[[MediaStream], None] = ... + seek: Callable[[MediaStream, int], None] = ... + update_audio: Callable[[MediaStream, bool, float], None] = ... + realize: Callable[[MediaStream, Gdk.Surface], None] = ... + unrealize: Callable[[MediaStream, Gdk.Surface], None] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + _gtk_reserved5: None = ... + _gtk_reserved6: None = ... + _gtk_reserved7: None = ... + _gtk_reserved8: None = ... + +class MenuButton(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + MenuButton(**properties) + new() -> Gtk.Widget + + Object GtkMenuButton + + Signals from GtkMenuButton: + activate () + + Properties from GtkMenuButton: + menu-model -> GMenuModel: menu-model + direction -> GtkArrowType: direction + popover -> GtkPopover: popover + icon-name -> gchararray: icon-name + always-show-arrow -> gboolean: always-show-arrow + label -> gchararray: label + use-underline -> gboolean: use-underline + has-frame -> gboolean: has-frame + primary -> gboolean: primary + child -> GtkWidget: child + active -> gboolean: active + can-shrink -> gboolean: can-shrink + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: bool + always_show_arrow: bool + can_shrink: bool + child: Optional[Widget] + direction: ArrowType + has_frame: bool + icon_name: Optional[str] + label: Optional[str] + menu_model: Optional[Gio.MenuModel] + popover: Optional[Popover] + primary: bool + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + active: bool = ..., + always_show_arrow: bool = ..., + can_shrink: bool = ..., + child: Optional[Widget] = ..., + direction: ArrowType = ..., + has_frame: bool = ..., + icon_name: str = ..., + label: str = ..., + menu_model: Optional[Gio.MenuModel] = ..., + popover: Optional[Popover] = ..., + primary: bool = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_active(self) -> bool: ... + def get_always_show_arrow(self) -> bool: ... + def get_can_shrink(self) -> bool: ... + def get_child(self) -> Optional[Widget]: ... + def get_direction(self) -> ArrowType: ... + def get_has_frame(self) -> bool: ... + def get_icon_name(self) -> Optional[str]: ... + def get_label(self) -> Optional[str]: ... + def get_menu_model(self) -> Optional[Gio.MenuModel]: ... + def get_popover(self) -> Optional[Popover]: ... + def get_primary(self) -> bool: ... + def get_use_underline(self) -> bool: ... + @classmethod + def new(cls) -> MenuButton: ... + def popdown(self) -> None: ... + def popup(self) -> None: ... + def set_active(self, active: bool) -> None: ... + def set_always_show_arrow(self, always_show_arrow: bool) -> None: ... + def set_can_shrink(self, can_shrink: bool) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_create_popup_func( + self, func: Optional[Callable[..., None]] = None, *user_data: Any + ) -> None: ... + def set_direction(self, direction: ArrowType) -> None: ... + def set_has_frame(self, has_frame: bool) -> None: ... + def set_icon_name(self, icon_name: str) -> None: ... + def set_label(self, label: str) -> None: ... + def set_menu_model(self, menu_model: Optional[Gio.MenuModel] = None) -> None: ... + def set_popover(self, popover: Optional[Widget] = None) -> None: ... + def set_primary(self, primary: bool) -> None: ... + def set_use_underline(self, use_underline: bool) -> None: ... + +class MessageDialog( + Dialog, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + MessageDialog(**properties) + + Object GtkMessageDialog + + Properties from GtkMessageDialog: + message-type -> GtkMessageType: message-type + buttons -> GtkButtonsType: buttons + text -> gchararray: text + use-markup -> gboolean: use-markup + secondary-text -> gchararray: secondary-text + secondary-use-markup -> gboolean: secondary-use-markup + message-area -> GtkWidget: message-area + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + message_area: Widget + message_type: MessageType + secondary_text: str + secondary_use_markup: bool + text: str + use_markup: bool + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + buttons: ButtonsType + startup_id: str + + props: Props = ... + parent_instance: Dialog = ... + def __init__( + self, + buttons: ButtonsType = ..., + message_type: MessageType = ..., + secondary_text: str = ..., + secondary_use_markup: bool = ..., + text: str = ..., + use_markup: bool = ..., + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_message_area(self) -> Widget: ... + def set_markup(self, str: str) -> None: ... + +class MessageDialogClass(GObject.GPointer): ... + +class MnemonicAction(ShortcutAction): + """ + :Constructors: + + :: + + MnemonicAction(**properties) + + Object GtkMnemonicAction + + Signals from GObject: + notify (GParam) + """ + + @staticmethod + def get() -> MnemonicAction: ... + +class MnemonicActionClass(GObject.GPointer): ... + +class MnemonicTrigger(ShortcutTrigger): + """ + :Constructors: + + :: + + MnemonicTrigger(**properties) + new(keyval:int) -> Gtk.MnemonicTrigger + + Object GtkMnemonicTrigger + + Properties from GtkMnemonicTrigger: + keyval -> guint: keyval + + Signals from GObject: + notify (GParam) + """ + + class Props: + keyval: int + + props: Props = ... + def __init__(self, keyval: int = ...): ... + def get_keyval(self) -> int: ... + @classmethod + def new(cls, keyval: int) -> MnemonicTrigger: ... + +class MnemonicTriggerClass(GObject.GPointer): ... + +class MountOperation(Gio.MountOperation): + """ + :Constructors: + + :: + + MountOperation(**properties) + new(parent:Gtk.Window=None) -> Gio.MountOperation + + Object GtkMountOperation + + Properties from GtkMountOperation: + parent -> GtkWindow: parent + is-showing -> gboolean: is-showing + display -> GdkDisplay: display + + Signals from GMountOperation: + ask-password (gchararray, gchararray, gchararray, GAskPasswordFlags) + ask-question (gchararray, GStrv) + reply (GMountOperationResult) + aborted () + show-processes (gchararray, GArray, GStrv) + show-unmount-progress (gchararray, gint64, gint64) + + Properties from GMountOperation: + username -> gchararray: username + password -> gchararray: password + anonymous -> gboolean: anonymous + domain -> gchararray: domain + password-save -> GPasswordSave: password-save + choice -> gint: choice + is-tcrypt-hidden-volume -> gboolean: is-tcrypt-hidden-volume + is-tcrypt-system-volume -> gboolean: is-tcrypt-system-volume + pim -> guint: pim + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Gdk.Display + is_showing: bool + parent: Optional[Window] + anonymous: bool + choice: int + domain: Optional[str] + is_tcrypt_hidden_volume: bool + is_tcrypt_system_volume: bool + password: Optional[str] + password_save: Gio.PasswordSave + pim: int + username: Optional[str] + + props: Props = ... + parent_instance: Gio.MountOperation = ... + priv: MountOperationPrivate = ... + def __init__( + self, + display: Gdk.Display = ..., + parent: Optional[Window] = ..., + anonymous: bool = ..., + choice: int = ..., + domain: Optional[str] = ..., + is_tcrypt_hidden_volume: bool = ..., + is_tcrypt_system_volume: bool = ..., + password: Optional[str] = ..., + password_save: Gio.PasswordSave = ..., + pim: int = ..., + username: Optional[str] = ..., + ): ... + def get_display(self) -> Gdk.Display: ... + def get_parent(self) -> Optional[Window]: ... + def is_showing(self) -> bool: ... + @classmethod + def new(cls, parent: Optional[Window] = None) -> MountOperation: ... + def set_display(self, display: Gdk.Display) -> None: ... + def set_parent(self, parent: Optional[Window] = None) -> None: ... + +class MountOperationClass(GObject.GPointer): + """ + :Constructors: + + :: + + MountOperationClass() + """ + + parent_class: Gio.MountOperationClass = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class MountOperationPrivate(GObject.GPointer): ... + +class MultiFilter(Filter, Gio.ListModel, Buildable): + """ + :Constructors: + + :: + + MultiFilter(**properties) + + Object GtkMultiFilter + + Properties from GtkMultiFilter: + item-type -> GType: item-type + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + n_items: int + + props: Props = ... + def append(self, filter: Filter) -> None: ... + def remove(self, position: int) -> None: ... + +class MultiFilterClass(GObject.GPointer): ... + +class MultiSelection(GObject.Object, Gio.ListModel, SectionModel, SelectionModel): + """ + :Constructors: + + :: + + MultiSelection(**properties) + new(model:Gio.ListModel=None) -> Gtk.MultiSelection + + Object GtkMultiSelection + + Properties from GtkMultiSelection: + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GtkSelectionModel: + selection-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + + props: Props = ... + def __init__(self, model: Optional[Gio.ListModel] = ...): ... + def get_model(self) -> Optional[Gio.ListModel]: ... + @classmethod + def new(cls, model: Optional[Gio.ListModel] = None) -> MultiSelection: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + +class MultiSelectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + MultiSelectionClass() + """ + + parent_class: GObject.ObjectClass = ... + +class MultiSorter(Sorter, Gio.ListModel, Buildable): + """ + :Constructors: + + :: + + MultiSorter(**properties) + new() -> Gtk.MultiSorter + + Object GtkMultiSorter + + Properties from GtkMultiSorter: + item-type -> GType: item-type + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSorter: + changed (GtkSorterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + n_items: int + + props: Props = ... + def append(self, sorter: Sorter) -> None: ... + @classmethod + def new(cls) -> MultiSorter: ... + def remove(self, position: int) -> None: ... + +class MultiSorterClass(GObject.GPointer): + """ + :Constructors: + + :: + + MultiSorterClass() + """ + + parent_class: SorterClass = ... + +class NamedAction(ShortcutAction): + """ + :Constructors: + + :: + + NamedAction(**properties) + new(name:str) -> Gtk.NamedAction + + Object GtkNamedAction + + Properties from GtkNamedAction: + action-name -> gchararray: action-name + + Signals from GObject: + notify (GParam) + """ + + class Props: + action_name: str + + props: Props = ... + def __init__(self, action_name: str = ...): ... + def get_action_name(self) -> str: ... + @classmethod + def new(cls, name: str) -> NamedAction: ... + +class NamedActionClass(GObject.GPointer): ... + +class Native(GObject.GInterface): + """ + Interface GtkNative + + Signals from GObject: + notify (GParam) + """ + + @staticmethod + def get_for_surface(surface: Gdk.Surface) -> Optional[Native]: ... + def get_renderer(self) -> Optional[Gsk.Renderer]: ... + def get_surface(self) -> Optional[Gdk.Surface]: ... + def get_surface_transform(self) -> Tuple[float, float]: ... + def realize(self) -> None: ... + def unrealize(self) -> None: ... + +class NativeDialog(GObject.Object): + """ + :Constructors: + + :: + + NativeDialog(**properties) + + Object GtkNativeDialog + + Signals from GtkNativeDialog: + response (gint) + + Properties from GtkNativeDialog: + title -> gchararray: title + visible -> gboolean: visible + modal -> gboolean: modal + transient-for -> GtkWindow: transient-for + + Signals from GObject: + notify (GParam) + """ + + class Props: + modal: bool + title: Optional[str] + transient_for: Optional[Window] + visible: bool + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, + modal: bool = ..., + title: str = ..., + transient_for: Optional[Window] = ..., + visible: bool = ..., + ): ... + def destroy(self) -> None: ... + def do_hide(self) -> None: ... + def do_response(self, response_id: int) -> None: ... + def do_show(self) -> None: ... + def get_modal(self) -> bool: ... + def get_title(self) -> Optional[str]: ... + def get_transient_for(self) -> Optional[Window]: ... + def get_visible(self) -> bool: ... + def hide(self) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def set_title(self, title: str) -> None: ... + def set_transient_for(self, parent: Optional[Window] = None) -> None: ... + def show(self) -> None: ... + +class NativeDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + NativeDialogClass() + """ + + parent_class: GObject.ObjectClass = ... + response: Callable[[NativeDialog, int], None] = ... + show: Callable[[NativeDialog], None] = ... + hide: Callable[[NativeDialog], None] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class NativeInterface(GObject.GPointer): ... + +class NeverTrigger(ShortcutTrigger): + """ + :Constructors: + + :: + + NeverTrigger(**properties) + + Object GtkNeverTrigger + + Signals from GObject: + notify (GParam) + """ + + @staticmethod + def get() -> NeverTrigger: ... + +class NeverTriggerClass(GObject.GPointer): ... + +class NoSelection(GObject.Object, Gio.ListModel, SectionModel, SelectionModel): + """ + :Constructors: + + :: + + NoSelection(**properties) + new(model:Gio.ListModel=None) -> Gtk.NoSelection + + Object GtkNoSelection + + Properties from GtkNoSelection: + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GtkSelectionModel: + selection-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + + props: Props = ... + def __init__(self, model: Optional[Gio.ListModel] = ...): ... + def get_model(self) -> Optional[Gio.ListModel]: ... + @classmethod + def new(cls, model: Optional[Gio.ListModel] = None) -> NoSelection: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + +class NoSelectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + NoSelectionClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Notebook(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Notebook(**properties) + new() -> Gtk.Widget + + Object GtkNotebook + + Signals from GtkNotebook: + switch-page (GtkWidget, guint) + focus-tab (GtkNotebookTab) -> gboolean + select-page (gboolean) -> gboolean + change-current-page (gint) -> gboolean + move-focus-out (GtkDirectionType) + reorder-tab (GtkDirectionType, gboolean) -> gboolean + page-reordered (GtkWidget, guint) + page-removed (GtkWidget, guint) + page-added (GtkWidget, guint) + create-window (GtkWidget) -> GtkNotebook + + Properties from GtkNotebook: + tab-pos -> GtkPositionType: tab-pos + show-tabs -> gboolean: show-tabs + show-border -> gboolean: show-border + scrollable -> gboolean: scrollable + page -> gint: page + enable-popup -> gboolean: enable-popup + group-name -> gchararray: group-name + pages -> GListModel: pages + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + enable_popup: bool + group_name: Optional[str] + page: int + pages: Gio.ListModel + scrollable: bool + show_border: bool + show_tabs: bool + tab_pos: PositionType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + enable_popup: bool = ..., + group_name: Optional[str] = ..., + page: int = ..., + scrollable: bool = ..., + show_border: bool = ..., + show_tabs: bool = ..., + tab_pos: PositionType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def append_page(self, child: Widget, tab_label: Optional[Widget] = None) -> int: ... + def append_page_menu( + self, + child: Widget, + tab_label: Optional[Widget] = None, + menu_label: Optional[Widget] = None, + ) -> int: ... + def detach_tab(self, child: Widget) -> None: ... + def get_action_widget(self, pack_type: PackType) -> Optional[Widget]: ... + def get_current_page(self) -> int: ... + def get_group_name(self) -> Optional[str]: ... + def get_menu_label(self, child: Widget) -> Optional[Widget]: ... + def get_menu_label_text(self, child: Widget) -> Optional[str]: ... + def get_n_pages(self) -> int: ... + def get_nth_page(self, page_num: int) -> Optional[Widget]: ... + def get_page(self, child: Widget) -> NotebookPage: ... + def get_pages(self) -> Gio.ListModel: ... + def get_scrollable(self) -> bool: ... + def get_show_border(self) -> bool: ... + def get_show_tabs(self) -> bool: ... + def get_tab_detachable(self, child: Widget) -> bool: ... + def get_tab_label(self, child: Widget) -> Optional[Widget]: ... + def get_tab_label_text(self, child: Widget) -> Optional[str]: ... + def get_tab_pos(self) -> PositionType: ... + def get_tab_reorderable(self, child: Widget) -> bool: ... + def insert_page( + self, child: Widget, tab_label: Optional[Widget], position: int + ) -> int: ... + def insert_page_menu( + self, + child: Widget, + tab_label: Optional[Widget], + menu_label: Optional[Widget], + position: int, + ) -> int: ... + @classmethod + def new(cls) -> Notebook: ... + def next_page(self) -> None: ... + def page_num(self, child: Widget) -> int: ... + def popup_disable(self) -> None: ... + def popup_enable(self) -> None: ... + def prepend_page( + self, child: Widget, tab_label: Optional[Widget] = None + ) -> int: ... + def prepend_page_menu( + self, + child: Widget, + tab_label: Optional[Widget] = None, + menu_label: Optional[Widget] = None, + ) -> int: ... + def prev_page(self) -> None: ... + def remove_page(self, page_num: int) -> None: ... + def reorder_child(self, child: Widget, position: int) -> None: ... + def set_action_widget(self, widget: Widget, pack_type: PackType) -> None: ... + def set_current_page(self, page_num: int) -> None: ... + def set_group_name(self, group_name: Optional[str] = None) -> None: ... + def set_menu_label( + self, child: Widget, menu_label: Optional[Widget] = None + ) -> None: ... + def set_menu_label_text(self, child: Widget, menu_text: str) -> None: ... + def set_scrollable(self, scrollable: bool) -> None: ... + def set_show_border(self, show_border: bool) -> None: ... + def set_show_tabs(self, show_tabs: bool) -> None: ... + def set_tab_detachable(self, child: Widget, detachable: bool) -> None: ... + def set_tab_label( + self, child: Widget, tab_label: Optional[Widget] = None + ) -> None: ... + def set_tab_label_text(self, child: Widget, tab_text: str) -> None: ... + def set_tab_pos(self, pos: PositionType) -> None: ... + def set_tab_reorderable(self, child: Widget, reorderable: bool) -> None: ... + +class NotebookPage(GObject.Object): + """ + :Constructors: + + :: + + NotebookPage(**properties) + + Object GtkNotebookPage + + Properties from GtkNotebookPage: + tab-label -> gchararray: tab-label + menu-label -> gchararray: menu-label + position -> gint: position + tab-expand -> gboolean: tab-expand + tab-fill -> gboolean: tab-fill + reorderable -> gboolean: reorderable + detachable -> gboolean: detachable + child -> GtkWidget: child + tab -> GtkWidget: tab + menu -> GtkWidget: menu + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Widget + detachable: bool + menu: Widget + menu_label: str + position: int + reorderable: bool + tab: Widget + tab_expand: bool + tab_fill: bool + tab_label: str + + props: Props = ... + def __init__( + self, + child: Widget = ..., + detachable: bool = ..., + menu: Widget = ..., + menu_label: str = ..., + position: int = ..., + reorderable: bool = ..., + tab: Widget = ..., + tab_expand: bool = ..., + tab_fill: bool = ..., + tab_label: str = ..., + ): ... + def get_child(self) -> Widget: ... + +class NothingAction(ShortcutAction): + """ + :Constructors: + + :: + + NothingAction(**properties) + + Object GtkNothingAction + + Signals from GObject: + notify (GParam) + """ + + @staticmethod + def get() -> NothingAction: ... + +class NothingActionClass(GObject.GPointer): ... + +class NumericSorter(Sorter): + """ + :Constructors: + + :: + + NumericSorter(**properties) + new(expression:Gtk.Expression=None) -> Gtk.NumericSorter + + Object GtkNumericSorter + + Properties from GtkNumericSorter: + expression -> GtkExpression: expression + sort-order -> GtkSortType: sort-order + + Signals from GtkSorter: + changed (GtkSorterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + expression: Optional[Expression] + sort_order: SortType + + props: Props = ... + def __init__( + self, expression: Optional[Expression] = ..., sort_order: SortType = ... + ): ... + def get_expression(self) -> Optional[Expression]: ... + def get_sort_order(self) -> SortType: ... + @classmethod + def new(cls, expression: Optional[Expression] = None) -> NumericSorter: ... + def set_expression(self, expression: Optional[Expression] = None) -> None: ... + def set_sort_order(self, sort_order: SortType) -> None: ... + +class NumericSorterClass(GObject.GPointer): + """ + :Constructors: + + :: + + NumericSorterClass() + """ + + parent_class: SorterClass = ... + +class ObjectExpression(Expression): + """ + :Constructors: + + :: + + ObjectExpression(**properties) + new(object:GObject.Object) -> Gtk.ObjectExpression + """ + + def get_object(self) -> Optional[GObject.Object]: ... + @classmethod + def new(cls, object: GObject.Object) -> ObjectExpression: ... + +class Orientable(GObject.GInterface): + """ + Interface GtkOrientable + + Signals from GObject: + notify (GParam) + """ + + def get_orientation(self) -> Orientation: ... + def set_orientation(self, orientation: Orientation) -> None: ... + +class OrientableIface(GObject.GPointer): + """ + :Constructors: + + :: + + OrientableIface() + """ + + base_iface: GObject.TypeInterface = ... + +class Overlay(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Overlay(**properties) + new() -> Gtk.Widget + + Object GtkOverlay + + Signals from GtkOverlay: + get-child-position (GtkWidget, GdkRectangle) -> gboolean + + Properties from GtkOverlay: + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_overlay(self, widget: Widget) -> None: ... + def get_child(self) -> Optional[Widget]: ... + def get_clip_overlay(self, widget: Widget) -> bool: ... + def get_measure_overlay(self, widget: Widget) -> bool: ... + @classmethod + def new(cls) -> Overlay: ... + def remove_overlay(self, widget: Widget) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_clip_overlay(self, widget: Widget, clip_overlay: bool) -> None: ... + def set_measure_overlay(self, widget: Widget, measure: bool) -> None: ... + +class OverlayLayout(LayoutManager): + """ + :Constructors: + + :: + + OverlayLayout(**properties) + new() -> Gtk.LayoutManager + + Object GtkOverlayLayout + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new(cls) -> OverlayLayout: ... + +class OverlayLayoutChild(LayoutChild): + """ + :Constructors: + + :: + + OverlayLayoutChild(**properties) + + Object GtkOverlayLayoutChild + + Properties from GtkOverlayLayoutChild: + measure -> gboolean: measure + clip-overlay -> gboolean: clip-overlay + + Properties from GtkLayoutChild: + layout-manager -> GtkLayoutManager: layout-manager + child-widget -> GtkWidget: child-widget + + Signals from GObject: + notify (GParam) + """ + + class Props: + clip_overlay: bool + measure: bool + child_widget: Widget + layout_manager: LayoutManager + + props: Props = ... + def __init__( + self, + clip_overlay: bool = ..., + measure: bool = ..., + child_widget: Widget = ..., + layout_manager: LayoutManager = ..., + ): ... + def get_clip_overlay(self) -> bool: ... + def get_measure(self) -> bool: ... + def set_clip_overlay(self, clip_overlay: bool) -> None: ... + def set_measure(self, measure: bool) -> None: ... + +class OverlayLayoutChildClass(GObject.GPointer): + """ + :Constructors: + + :: + + OverlayLayoutChildClass() + """ + + parent_class: LayoutChildClass = ... + +class OverlayLayoutClass(GObject.GPointer): + """ + :Constructors: + + :: + + OverlayLayoutClass() + """ + + parent_class: LayoutManagerClass = ... + +class PadActionEntry(GObject.GPointer): + """ + :Constructors: + + :: + + PadActionEntry() + """ + + type: PadActionType = ... + index: int = ... + mode: int = ... + label: str = ... + action_name: str = ... + +class PadController(EventController): + """ + :Constructors: + + :: + + PadController(**properties) + new(group:Gio.ActionGroup, pad:Gdk.Device=None) -> Gtk.PadController + + Object GtkPadController + + Properties from GtkPadController: + action-group -> GActionGroup: action-group + pad -> GdkDevice: pad + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + action_group: Gio.ActionGroup + pad: Gdk.Device + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + + props: Props = ... + def __init__( + self, + action_group: Gio.ActionGroup = ..., + pad: Gdk.Device = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + @classmethod + def new( + cls, group: Gio.ActionGroup, pad: Optional[Gdk.Device] = None + ) -> PadController: ... + def set_action( + self, type: PadActionType, index: int, mode: int, label: str, action_name: str + ) -> None: ... + def set_action_entries(self, entries: Sequence[PadActionEntry]) -> None: ... + +class PadControllerClass(GObject.GPointer): ... + +class PageRange(GObject.GPointer): + """ + :Constructors: + + :: + + PageRange() + """ + + start: int = ... + end: int = ... + +class PageSetup(GObject.Object): + """ + :Constructors: + + :: + + PageSetup(**properties) + new() -> Gtk.PageSetup + new_from_file(file_name:str) -> Gtk.PageSetup + new_from_gvariant(variant:GLib.Variant) -> Gtk.PageSetup + new_from_key_file(key_file:GLib.KeyFile, group_name:str=None) -> Gtk.PageSetup + + Object GtkPageSetup + + Signals from GObject: + notify (GParam) + """ + + def copy(self) -> PageSetup: ... + def get_bottom_margin(self, unit: Unit) -> float: ... + def get_left_margin(self, unit: Unit) -> float: ... + def get_orientation(self) -> PageOrientation: ... + def get_page_height(self, unit: Unit) -> float: ... + def get_page_width(self, unit: Unit) -> float: ... + def get_paper_height(self, unit: Unit) -> float: ... + def get_paper_size(self) -> PaperSize: ... + def get_paper_width(self, unit: Unit) -> float: ... + def get_right_margin(self, unit: Unit) -> float: ... + def get_top_margin(self, unit: Unit) -> float: ... + def load_file(self, file_name: str) -> bool: ... + def load_key_file( + self, key_file: GLib.KeyFile, group_name: Optional[str] = None + ) -> bool: ... + @classmethod + def new(cls) -> PageSetup: ... + @classmethod + def new_from_file(cls, file_name: str) -> PageSetup: ... + @classmethod + def new_from_gvariant(cls, variant: GLib.Variant) -> PageSetup: ... + @classmethod + def new_from_key_file( + cls, key_file: GLib.KeyFile, group_name: Optional[str] = None + ) -> PageSetup: ... + def set_bottom_margin(self, margin: float, unit: Unit) -> None: ... + def set_left_margin(self, margin: float, unit: Unit) -> None: ... + def set_orientation(self, orientation: PageOrientation) -> None: ... + def set_paper_size(self, size: PaperSize) -> None: ... + def set_paper_size_and_default_margins(self, size: PaperSize) -> None: ... + def set_right_margin(self, margin: float, unit: Unit) -> None: ... + def set_top_margin(self, margin: float, unit: Unit) -> None: ... + def to_file(self, file_name: str) -> bool: ... + def to_gvariant(self) -> GLib.Variant: ... + def to_key_file( + self, key_file: GLib.KeyFile, group_name: Optional[str] = None + ) -> None: ... + +class PageSetupUnixDialog( + Dialog, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + PageSetupUnixDialog(**properties) + new(title:str=None, parent:Gtk.Window=None) -> Gtk.Widget + + Object GtkPageSetupUnixDialog + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + def __init__( + self, + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_page_setup(self) -> PageSetup: ... + def get_print_settings(self) -> Optional[PrintSettings]: ... + @classmethod + def new( + cls, title: Optional[str] = None, parent: Optional[Window] = None + ) -> PageSetupUnixDialog: ... + def set_page_setup(self, page_setup: PageSetup) -> None: ... + def set_print_settings( + self, print_settings: Optional[PrintSettings] = None + ) -> None: ... + +class Paned( + Widget, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable +): + """ + :Constructors: + + :: + + Paned(**properties) + new(orientation:Gtk.Orientation) -> Gtk.Widget + + Object GtkPaned + + Signals from GtkPaned: + cycle-child-focus (gboolean) -> gboolean + toggle-handle-focus () -> gboolean + move-handle (GtkScrollType) -> gboolean + cycle-handle-focus (gboolean) -> gboolean + accept-position () -> gboolean + cancel-position () -> gboolean + + Properties from GtkPaned: + position -> gint: position + position-set -> gboolean: position-set + min-position -> gint: min-position + max-position -> gint: max-position + wide-handle -> gboolean: wide-handle + resize-start-child -> gboolean: resize-start-child + resize-end-child -> gboolean: resize-end-child + shrink-start-child -> gboolean: shrink-start-child + shrink-end-child -> gboolean: shrink-end-child + start-child -> GtkWidget: start-child + end-child -> GtkWidget: end-child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + end_child: Optional[Widget] + max_position: int + min_position: int + position: int + position_set: bool + resize_end_child: bool + resize_start_child: bool + shrink_end_child: bool + shrink_start_child: bool + start_child: Optional[Widget] + wide_handle: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + end_child: Optional[Widget] = ..., + position: int = ..., + position_set: bool = ..., + resize_end_child: bool = ..., + resize_start_child: bool = ..., + shrink_end_child: bool = ..., + shrink_start_child: bool = ..., + start_child: Optional[Widget] = ..., + wide_handle: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def get_end_child(self) -> Optional[Widget]: ... + def get_position(self) -> int: ... + def get_resize_end_child(self) -> bool: ... + def get_resize_start_child(self) -> bool: ... + def get_shrink_end_child(self) -> bool: ... + def get_shrink_start_child(self) -> bool: ... + def get_start_child(self) -> Optional[Widget]: ... + def get_wide_handle(self) -> bool: ... + @classmethod + def new(cls, orientation: Orientation) -> Paned: ... + def set_end_child(self, child: Optional[Widget] = None) -> None: ... + def set_position(self, position: int) -> None: ... + def set_resize_end_child(self, resize: bool) -> None: ... + def set_resize_start_child(self, resize: bool) -> None: ... + def set_shrink_end_child(self, resize: bool) -> None: ... + def set_shrink_start_child(self, resize: bool) -> None: ... + def set_start_child(self, child: Optional[Widget] = None) -> None: ... + def set_wide_handle(self, wide: bool) -> None: ... + +class PaperSize(GObject.GBoxed): + """ + :Constructors: + + :: + + new(name:str=None) -> Gtk.PaperSize + new_custom(name:str, display_name:str, width:float, height:float, unit:Gtk.Unit) -> Gtk.PaperSize + new_from_gvariant(variant:GLib.Variant) -> Gtk.PaperSize + new_from_ipp(ipp_name:str, width:float, height:float) -> Gtk.PaperSize + new_from_key_file(key_file:GLib.KeyFile, group_name:str=None) -> Gtk.PaperSize + new_from_ppd(ppd_name:str, ppd_display_name:str, width:float, height:float) -> Gtk.PaperSize + """ + + def copy(self) -> PaperSize: ... + def free(self) -> None: ... + @staticmethod + def get_default() -> str: ... + def get_default_bottom_margin(self, unit: Unit) -> float: ... + def get_default_left_margin(self, unit: Unit) -> float: ... + def get_default_right_margin(self, unit: Unit) -> float: ... + def get_default_top_margin(self, unit: Unit) -> float: ... + def get_display_name(self) -> str: ... + def get_height(self, unit: Unit) -> float: ... + def get_name(self) -> str: ... + @staticmethod + def get_paper_sizes(include_custom: bool) -> list[PaperSize]: ... + def get_ppd_name(self) -> str: ... + def get_width(self, unit: Unit) -> float: ... + def is_custom(self) -> bool: ... + def is_equal(self, size2: PaperSize) -> bool: ... + def is_ipp(self) -> bool: ... + @classmethod + def new(cls, name: Optional[str] = None) -> PaperSize: ... + @classmethod + def new_custom( + cls, name: str, display_name: str, width: float, height: float, unit: Unit + ) -> PaperSize: ... + @classmethod + def new_from_gvariant(cls, variant: GLib.Variant) -> PaperSize: ... + @classmethod + def new_from_ipp(cls, ipp_name: str, width: float, height: float) -> PaperSize: ... + @classmethod + def new_from_key_file( + cls, key_file: GLib.KeyFile, group_name: Optional[str] = None + ) -> PaperSize: ... + @classmethod + def new_from_ppd( + cls, ppd_name: str, ppd_display_name: str, width: float, height: float + ) -> PaperSize: ... + def set_size(self, width: float, height: float, unit: Unit) -> None: ... + def to_gvariant(self) -> GLib.Variant: ... + def to_key_file(self, key_file: GLib.KeyFile, group_name: str) -> None: ... + +class ParamSpecExpression(GObject.ParamSpec): + """ + :Constructors: + + :: + + ParamSpecExpression(**properties) + """ + + parent_instance: GObject.ParamSpec = ... + +class PasswordEntry(Widget, Accessible, Buildable, ConstraintTarget, Editable): + """ + :Constructors: + + :: + + PasswordEntry(**properties) + new() -> Gtk.Widget + + Object GtkPasswordEntry + + Signals from GtkPasswordEntry: + activate () + + Properties from GtkPasswordEntry: + placeholder-text -> gchararray: placeholder-text + activates-default -> gboolean: activates-default + show-peek-icon -> gboolean: show-peek-icon + extra-menu -> GMenuModel: extra-menu + + Signals from GtkEditable: + changed () + insert-text (gchararray, gint, gpointer) + delete-text (gint, gint) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activates_default: bool + extra_menu: Optional[Gio.MenuModel] + placeholder_text: str + show_peek_icon: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + cursor_position: int + editable: bool + enable_undo: bool + max_width_chars: int + selection_bound: int + text: str + width_chars: int + xalign: float + + props: Props = ... + def __init__( + self, + activates_default: bool = ..., + extra_menu: Optional[Gio.MenuModel] = ..., + placeholder_text: str = ..., + show_peek_icon: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editable: bool = ..., + enable_undo: bool = ..., + max_width_chars: int = ..., + text: str = ..., + width_chars: int = ..., + xalign: float = ..., + ): ... + def get_extra_menu(self) -> Optional[Gio.MenuModel]: ... + def get_show_peek_icon(self) -> bool: ... + @classmethod + def new(cls) -> PasswordEntry: ... + def set_extra_menu(self, model: Optional[Gio.MenuModel] = None) -> None: ... + def set_show_peek_icon(self, show_peek_icon: bool) -> None: ... + +class PasswordEntryBuffer(EntryBuffer): + """ + :Constructors: + + :: + + PasswordEntryBuffer(**properties) + new() -> Gtk.EntryBuffer + + Object GtkPasswordEntryBuffer + + Signals from GtkEntryBuffer: + inserted-text (guint, gchararray, guint) + deleted-text (guint, guint) + + Properties from GtkEntryBuffer: + text -> gchararray: text + length -> guint: length + max-length -> gint: max-length + + Signals from GObject: + notify (GParam) + """ + + class Props: + length: int + max_length: int + text: str + + props: Props = ... + def __init__(self, max_length: int = ..., text: str = ...): ... + @classmethod + def new(cls) -> PasswordEntryBuffer: ... + +class PasswordEntryBufferClass(GObject.GPointer): + """ + :Constructors: + + :: + + PasswordEntryBufferClass() + """ + + parent_class: EntryBufferClass = ... + +class PasswordEntryClass(GObject.GPointer): ... + +class Picture(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Picture(**properties) + new() -> Gtk.Widget + new_for_file(file:Gio.File=None) -> Gtk.Widget + new_for_filename(filename:str=None) -> Gtk.Widget + new_for_paintable(paintable:Gdk.Paintable=None) -> Gtk.Widget + new_for_pixbuf(pixbuf:GdkPixbuf.Pixbuf=None) -> Gtk.Widget + new_for_resource(resource_path:str=None) -> Gtk.Widget + + Object GtkPicture + + Properties from GtkPicture: + paintable -> GdkPaintable: paintable + file -> GFile: file + alternative-text -> gchararray: alternative-text + keep-aspect-ratio -> gboolean: keep-aspect-ratio + can-shrink -> gboolean: can-shrink + content-fit -> GtkContentFit: content-fit + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + alternative_text: Optional[str] + can_shrink: bool + content_fit: ContentFit + file: Optional[Gio.File] + keep_aspect_ratio: bool + paintable: Optional[Gdk.Paintable] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + alternative_text: Optional[str] = ..., + can_shrink: bool = ..., + content_fit: ContentFit = ..., + file: Optional[Gio.File] = ..., + keep_aspect_ratio: bool = ..., + paintable: Optional[Gdk.Paintable] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_alternative_text(self) -> Optional[str]: ... + def get_can_shrink(self) -> bool: ... + def get_content_fit(self) -> ContentFit: ... + def get_file(self) -> Optional[Gio.File]: ... + def get_keep_aspect_ratio(self) -> bool: ... + def get_paintable(self) -> Optional[Gdk.Paintable]: ... + @classmethod + def new(cls) -> Picture: ... + @classmethod + def new_for_file(cls, file: Optional[Gio.File] = None) -> Picture: ... + @classmethod + def new_for_filename(cls, filename: Optional[str] = None) -> Picture: ... + @classmethod + def new_for_paintable( + cls, paintable: Optional[Gdk.Paintable] = None + ) -> Picture: ... + @classmethod + def new_for_pixbuf(cls, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> Picture: ... + @classmethod + def new_for_resource(cls, resource_path: Optional[str] = None) -> Picture: ... + def set_alternative_text(self, alternative_text: Optional[str] = None) -> None: ... + def set_can_shrink(self, can_shrink: bool) -> None: ... + def set_content_fit(self, content_fit: ContentFit) -> None: ... + def set_file(self, file: Optional[Gio.File] = None) -> None: ... + def set_filename(self, filename: Optional[str] = None) -> None: ... + def set_keep_aspect_ratio(self, keep_aspect_ratio: bool) -> None: ... + def set_paintable(self, paintable: Optional[Gdk.Paintable] = None) -> None: ... + def set_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... + def set_resource(self, resource_path: Optional[str] = None) -> None: ... + +class PictureClass(GObject.GPointer): + """ + :Constructors: + + :: + + PictureClass() + """ + + parent_class: WidgetClass = ... + +class Popover(Widget, Accessible, Buildable, ConstraintTarget, Native, ShortcutManager): + """ + :Constructors: + + :: + + Popover(**properties) + new() -> Gtk.Widget + + Object GtkPopover + + Signals from GtkPopover: + closed () + activate-default () + + Properties from GtkPopover: + pointing-to -> GdkRectangle: pointing-to + position -> GtkPositionType: position + autohide -> gboolean: autohide + default-widget -> GtkWidget: default-widget + has-arrow -> gboolean: has-arrow + mnemonics-visible -> gboolean: mnemonics-visible + child -> GtkWidget: child + cascade-popdown -> gboolean: cascade-popdown + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + autohide: bool + cascade_popdown: bool + child: Optional[Widget] + default_widget: Optional[Widget] + has_arrow: bool + mnemonics_visible: bool + pointing_to: Gdk.Rectangle + position: PositionType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + parent: Widget = ... + def __init__( + self, + autohide: bool = ..., + cascade_popdown: bool = ..., + child: Optional[Widget] = ..., + default_widget: Optional[Widget] = ..., + has_arrow: bool = ..., + mnemonics_visible: bool = ..., + pointing_to: Optional[Gdk.Rectangle] = ..., + position: PositionType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def do_activate_default(self) -> None: ... + def do_closed(self) -> None: ... + def get_autohide(self) -> bool: ... + def get_cascade_popdown(self) -> bool: ... + def get_child(self) -> Optional[Widget]: ... + def get_has_arrow(self) -> bool: ... + def get_mnemonics_visible(self) -> bool: ... + def get_offset(self) -> Tuple[int, int]: ... + def get_pointing_to(self) -> Tuple[bool, Gdk.Rectangle]: ... + def get_position(self) -> PositionType: ... + @classmethod + def new(cls) -> Popover: ... + def popdown(self) -> None: ... + def popup(self) -> None: ... + def present(self) -> None: ... + def set_autohide(self, autohide: bool) -> None: ... + def set_cascade_popdown(self, cascade_popdown: bool) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_default_widget(self, widget: Optional[Widget] = None) -> None: ... + def set_has_arrow(self, has_arrow: bool) -> None: ... + def set_mnemonics_visible(self, mnemonics_visible: bool) -> None: ... + def set_offset(self, x_offset: int, y_offset: int) -> None: ... + def set_pointing_to(self, rect: Optional[Gdk.Rectangle] = None) -> None: ... + def set_position(self, position: PositionType) -> None: ... + +class PopoverClass(GObject.GPointer): + """ + :Constructors: + + :: + + PopoverClass() + """ + + parent_class: WidgetClass = ... + closed: Callable[[Popover], None] = ... + activate_default: Callable[[Popover], None] = ... + reserved: list[None] = ... + +class PopoverMenu( + Popover, Accessible, Buildable, ConstraintTarget, Native, ShortcutManager +): + """ + :Constructors: + + :: + + PopoverMenu(**properties) + new_from_model(model:Gio.MenuModel=None) -> Gtk.Widget + new_from_model_full(model:Gio.MenuModel, flags:Gtk.PopoverMenuFlags) -> Gtk.Widget + + Object GtkPopoverMenu + + Properties from GtkPopoverMenu: + visible-submenu -> gchararray: visible-submenu + menu-model -> GMenuModel: menu-model + flags -> GtkPopoverMenuFlags: flags + + Signals from GtkPopover: + closed () + activate-default () + + Properties from GtkPopover: + pointing-to -> GdkRectangle: pointing-to + position -> GtkPositionType: position + autohide -> gboolean: autohide + default-widget -> GtkWidget: default-widget + has-arrow -> gboolean: has-arrow + mnemonics-visible -> gboolean: mnemonics-visible + child -> GtkWidget: child + cascade-popdown -> gboolean: cascade-popdown + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + flags: PopoverMenuFlags + menu_model: Optional[Gio.MenuModel] + visible_submenu: str + autohide: bool + cascade_popdown: bool + child: Optional[Widget] + default_widget: Optional[Widget] + has_arrow: bool + mnemonics_visible: bool + pointing_to: Gdk.Rectangle + position: PositionType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + flags: PopoverMenuFlags = ..., + menu_model: Optional[Gio.MenuModel] = ..., + visible_submenu: str = ..., + autohide: bool = ..., + cascade_popdown: bool = ..., + child: Optional[Widget] = ..., + default_widget: Optional[Widget] = ..., + has_arrow: bool = ..., + mnemonics_visible: bool = ..., + pointing_to: Optional[Gdk.Rectangle] = ..., + position: PositionType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_child(self, child: Widget, id: str) -> bool: ... + def get_flags(self) -> PopoverMenuFlags: ... + def get_menu_model(self) -> Optional[Gio.MenuModel]: ... + @classmethod + def new_from_model(cls, model: Optional[Gio.MenuModel] = None) -> PopoverMenu: ... + @classmethod + def new_from_model_full( + cls, model: Gio.MenuModel, flags: PopoverMenuFlags + ) -> PopoverMenu: ... + def remove_child(self, child: Widget) -> bool: ... + def set_flags(self, flags: PopoverMenuFlags) -> None: ... + def set_menu_model(self, model: Optional[Gio.MenuModel] = None) -> None: ... + +class PopoverMenuBar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + PopoverMenuBar(**properties) + new_from_model(model:Gio.MenuModel=None) -> Gtk.Widget + + Object GtkPopoverMenuBar + + Properties from GtkPopoverMenuBar: + menu-model -> GMenuModel: menu-model + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + menu_model: Optional[Gio.MenuModel] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + menu_model: Optional[Gio.MenuModel] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_child(self, child: Widget, id: str) -> bool: ... + def get_menu_model(self) -> Optional[Gio.MenuModel]: ... + @classmethod + def new_from_model( + cls, model: Optional[Gio.MenuModel] = None + ) -> PopoverMenuBar: ... + def remove_child(self, child: Widget) -> bool: ... + def set_menu_model(self, model: Optional[Gio.MenuModel] = None) -> None: ... + +class PrintBackend(GObject.GPointer): ... + +class PrintContext(GObject.Object): + """ + :Constructors: + + :: + + PrintContext(**properties) + + Object GtkPrintContext + + Signals from GObject: + notify (GParam) + """ + + def create_pango_context(self) -> Pango.Context: ... + def create_pango_layout(self) -> Pango.Layout: ... + def get_cairo_context(self) -> cairo.Context: ... + def get_dpi_x(self) -> float: ... + def get_dpi_y(self) -> float: ... + def get_hard_margins(self) -> Tuple[bool, float, float, float, float]: ... + def get_height(self) -> float: ... + def get_page_setup(self) -> PageSetup: ... + def get_pango_fontmap(self) -> Pango.FontMap: ... + def get_width(self) -> float: ... + def set_cairo_context( + self, cr: cairo.Context[_SomeSurface], dpi_x: float, dpi_y: float + ) -> None: ... + +class PrintDialog(GObject.Object): + """ + :Constructors: + + :: + + PrintDialog(**properties) + new() -> Gtk.PrintDialog + + Object GtkPrintDialog + + Properties from GtkPrintDialog: + accept-label -> gchararray: accept-label + page-setup -> GtkPageSetup: page-setup + modal -> gboolean: modal + print-settings -> GtkPrintSettings: print-settings + title -> gchararray: title + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_label: str + modal: bool + page_setup: PageSetup + print_settings: PrintSettings + title: str + + props: Props = ... + def __init__( + self, + accept_label: str = ..., + modal: bool = ..., + page_setup: PageSetup = ..., + print_settings: PrintSettings = ..., + title: str = ..., + ): ... + def get_accept_label(self) -> str: ... + def get_modal(self) -> bool: ... + def get_page_setup(self) -> PageSetup: ... + def get_print_settings(self) -> PrintSettings: ... + def get_title(self) -> str: ... + @classmethod + def new(cls) -> PrintDialog: ... + def print_( + self, + parent: Optional[Window] = None, + setup: Optional[PrintSetup] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def print_file( + self, + parent: Optional[Window], + setup: Optional[PrintSetup], + file: Gio.File, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def print_file_finish(self, result: Gio.AsyncResult) -> bool: ... + def print_finish(self, result: Gio.AsyncResult) -> Optional[Gio.OutputStream]: ... + def set_accept_label(self, accept_label: str) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def set_page_setup(self, page_setup: PageSetup) -> None: ... + def set_print_settings(self, print_settings: PrintSettings) -> None: ... + def set_title(self, title: str) -> None: ... + def setup( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def setup_finish(self, result: Gio.AsyncResult) -> Optional[PrintSetup]: ... + +class PrintDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + PrintDialogClass() + """ + + parent_class: GObject.ObjectClass = ... + +class PrintJob(GObject.Object): + """ + :Constructors: + + :: + + PrintJob(**properties) + new(title:str, printer:Gtk.Printer, settings:Gtk.PrintSettings, page_setup:Gtk.PageSetup) -> Gtk.PrintJob + + Object GtkPrintJob + + Signals from GtkPrintJob: + status-changed () + + Properties from GtkPrintJob: + title -> gchararray: title + printer -> GtkPrinter: printer + page-setup -> GtkPageSetup: page-setup + settings -> GtkPrintSettings: settings + track-print-status -> gboolean: track-print-status + + Signals from GObject: + notify (GParam) + """ + + class Props: + page_setup: PageSetup + printer: Printer + settings: PrintSettings + title: str + track_print_status: bool + + props: Props = ... + def __init__( + self, + page_setup: PageSetup = ..., + printer: Printer = ..., + settings: PrintSettings = ..., + title: str = ..., + track_print_status: bool = ..., + ): ... + def get_collate(self) -> bool: ... + def get_n_up(self) -> int: ... + def get_n_up_layout(self) -> NumberUpLayout: ... + def get_num_copies(self) -> int: ... + def get_page_ranges(self) -> list[PageRange]: ... + def get_page_set(self) -> PageSet: ... + def get_pages(self) -> PrintPages: ... + def get_printer(self) -> Printer: ... + def get_reverse(self) -> bool: ... + def get_rotate(self) -> bool: ... + def get_scale(self) -> float: ... + def get_settings(self) -> PrintSettings: ... + def get_status(self) -> PrintStatus: ... + def get_surface(self) -> cairo.Surface: ... + def get_title(self) -> str: ... + def get_track_print_status(self) -> bool: ... + @classmethod + def new( + cls, + title: str, + printer: Printer, + settings: PrintSettings, + page_setup: PageSetup, + ) -> PrintJob: ... + def send(self, callback: Callable[..., None], *user_data: Any) -> None: ... + def set_collate(self, collate: bool) -> None: ... + def set_n_up(self, n_up: int) -> None: ... + def set_n_up_layout(self, layout: NumberUpLayout) -> None: ... + def set_num_copies(self, num_copies: int) -> None: ... + def set_page_ranges(self, ranges: Sequence[PageRange]) -> None: ... + def set_page_set(self, page_set: PageSet) -> None: ... + def set_pages(self, pages: PrintPages) -> None: ... + def set_reverse(self, reverse: bool) -> None: ... + def set_rotate(self, rotate: bool) -> None: ... + def set_scale(self, scale: float) -> None: ... + def set_source_fd(self, fd: int) -> bool: ... + def set_source_file(self, filename: str) -> bool: ... + def set_track_print_status(self, track_status: bool) -> None: ... + +class PrintOperation(GObject.Object, PrintOperationPreview): + """ + :Constructors: + + :: + + PrintOperation(**properties) + new() -> Gtk.PrintOperation + + Object GtkPrintOperation + + Signals from GtkPrintOperation: + status-changed () + done (GtkPrintOperationResult) + begin-print (GtkPrintContext) + paginate (GtkPrintContext) -> gboolean + request-page-setup (GtkPrintContext, gint, GtkPageSetup) + draw-page (GtkPrintContext, gint) + end-print (GtkPrintContext) + create-custom-widget () -> GObject + update-custom-widget (GtkWidget, GtkPageSetup, GtkPrintSettings) + custom-widget-apply (GtkWidget) + preview (GtkPrintOperationPreview, GtkPrintContext, GtkWindow) -> gboolean + + Properties from GtkPrintOperation: + default-page-setup -> GtkPageSetup: default-page-setup + print-settings -> GtkPrintSettings: print-settings + job-name -> gchararray: job-name + n-pages -> gint: n-pages + current-page -> gint: current-page + use-full-page -> gboolean: use-full-page + track-print-status -> gboolean: track-print-status + unit -> GtkUnit: unit + show-progress -> gboolean: show-progress + allow-async -> gboolean: allow-async + export-filename -> gchararray: export-filename + status -> GtkPrintStatus: status + status-string -> gchararray: status-string + custom-tab-label -> gchararray: custom-tab-label + embed-page-setup -> gboolean: embed-page-setup + has-selection -> gboolean: has-selection + support-selection -> gboolean: support-selection + n-pages-to-print -> gint: n-pages-to-print + + Signals from GtkPrintOperationPreview: + ready (GtkPrintContext) + got-page-size (GtkPrintContext, GtkPageSetup) + + Signals from GObject: + notify (GParam) + """ + + class Props: + allow_async: bool + current_page: int + custom_tab_label: Optional[str] + default_page_setup: PageSetup + embed_page_setup: bool + export_filename: str + has_selection: bool + job_name: str + n_pages: int + n_pages_to_print: int + print_settings: Optional[PrintSettings] + show_progress: bool + status: PrintStatus + status_string: str + support_selection: bool + track_print_status: bool + unit: Unit + use_full_page: bool + + props: Props = ... + parent_instance: GObject.Object = ... + priv: PrintOperationPrivate = ... + def __init__( + self, + allow_async: bool = ..., + current_page: int = ..., + custom_tab_label: Optional[str] = ..., + default_page_setup: Optional[PageSetup] = ..., + embed_page_setup: bool = ..., + export_filename: str = ..., + has_selection: bool = ..., + job_name: str = ..., + n_pages: int = ..., + print_settings: Optional[PrintSettings] = ..., + show_progress: bool = ..., + support_selection: bool = ..., + track_print_status: bool = ..., + unit: Unit = ..., + use_full_page: bool = ..., + ): ... + def cancel(self) -> None: ... + def do_begin_print(self, context: PrintContext) -> None: ... + def do_custom_widget_apply(self, widget: Widget) -> None: ... + def do_done(self, result: PrintOperationResult) -> None: ... + def do_draw_page(self, context: PrintContext, page_nr: int) -> None: ... + def do_end_print(self, context: PrintContext) -> None: ... + def do_paginate(self, context: PrintContext) -> bool: ... + def do_preview( + self, preview: PrintOperationPreview, context: PrintContext, parent: Window + ) -> bool: ... + def do_request_page_setup( + self, context: PrintContext, page_nr: int, setup: PageSetup + ) -> None: ... + def do_status_changed(self) -> None: ... + def do_update_custom_widget( + self, widget: Widget, setup: PageSetup, settings: PrintSettings + ) -> None: ... + def draw_page_finish(self) -> None: ... + def get_default_page_setup(self) -> PageSetup: ... + def get_embed_page_setup(self) -> bool: ... + def get_error(self) -> None: ... + def get_has_selection(self) -> bool: ... + def get_n_pages_to_print(self) -> int: ... + def get_print_settings(self) -> Optional[PrintSettings]: ... + def get_status(self) -> PrintStatus: ... + def get_status_string(self) -> str: ... + def get_support_selection(self) -> bool: ... + def is_finished(self) -> bool: ... + @classmethod + def new(cls) -> PrintOperation: ... + def run( + self, action: PrintOperationAction, parent: Optional[Window] = None + ) -> PrintOperationResult: ... + def set_allow_async(self, allow_async: bool) -> None: ... + def set_current_page(self, current_page: int) -> None: ... + def set_custom_tab_label(self, label: Optional[str] = None) -> None: ... + def set_default_page_setup( + self, default_page_setup: Optional[PageSetup] = None + ) -> None: ... + def set_defer_drawing(self) -> None: ... + def set_embed_page_setup(self, embed: bool) -> None: ... + def set_export_filename(self, filename: str) -> None: ... + def set_has_selection(self, has_selection: bool) -> None: ... + def set_job_name(self, job_name: str) -> None: ... + def set_n_pages(self, n_pages: int) -> None: ... + def set_print_settings( + self, print_settings: Optional[PrintSettings] = None + ) -> None: ... + def set_show_progress(self, show_progress: bool) -> None: ... + def set_support_selection(self, support_selection: bool) -> None: ... + def set_track_print_status(self, track_status: bool) -> None: ... + def set_unit(self, unit: Unit) -> None: ... + def set_use_full_page(self, full_page: bool) -> None: ... + +class PrintOperationClass(GObject.GPointer): + """ + :Constructors: + + :: + + PrintOperationClass() + """ + + parent_class: GObject.ObjectClass = ... + done: Callable[[PrintOperation, PrintOperationResult], None] = ... + begin_print: Callable[[PrintOperation, PrintContext], None] = ... + paginate: Callable[[PrintOperation, PrintContext], bool] = ... + request_page_setup: Callable[ + [PrintOperation, PrintContext, int, PageSetup], None + ] = ... + draw_page: Callable[[PrintOperation, PrintContext, int], None] = ... + end_print: Callable[[PrintOperation, PrintContext], None] = ... + status_changed: Callable[[PrintOperation], None] = ... + create_custom_widget: None = ... + custom_widget_apply: Callable[[PrintOperation, Widget], None] = ... + preview: Callable[ + [PrintOperation, PrintOperationPreview, PrintContext, Window], bool + ] = ... + update_custom_widget: Callable[ + [PrintOperation, Widget, PageSetup, PrintSettings], None + ] = ... + padding: list[None] = ... + +class PrintOperationPreview(GObject.GInterface): + """ + Interface GtkPrintOperationPreview + + Signals from GObject: + notify (GParam) + """ + + def end_preview(self) -> None: ... + def is_selected(self, page_nr: int) -> bool: ... + def render_page(self, page_nr: int) -> None: ... + +class PrintOperationPreviewIface(GObject.GPointer): + """ + :Constructors: + + :: + + PrintOperationPreviewIface() + """ + + g_iface: GObject.TypeInterface = ... + ready: Callable[[PrintOperationPreview, PrintContext], None] = ... + got_page_size: Callable[[PrintOperationPreview, PrintContext, PageSetup], None] = ( + ... + ) + render_page: Callable[[PrintOperationPreview, int], None] = ... + is_selected: Callable[[PrintOperationPreview, int], bool] = ... + end_preview: Callable[[PrintOperationPreview], None] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + _gtk_reserved5: None = ... + _gtk_reserved6: None = ... + _gtk_reserved7: None = ... + _gtk_reserved8: None = ... + +class PrintOperationPrivate(GObject.GPointer): ... + +class PrintSettings(GObject.Object): + """ + :Constructors: + + :: + + PrintSettings(**properties) + new() -> Gtk.PrintSettings + new_from_file(file_name:str) -> Gtk.PrintSettings + new_from_gvariant(variant:GLib.Variant) -> Gtk.PrintSettings + new_from_key_file(key_file:GLib.KeyFile, group_name:str=None) -> Gtk.PrintSettings + + Object GtkPrintSettings + + Signals from GObject: + notify (GParam) + """ + + def copy(self) -> PrintSettings: ... + def foreach(self, func: Callable[..., None], *user_data: Any) -> None: ... + def get(self, key: str) -> Optional[str]: ... + def get_bool(self, key: str) -> bool: ... + def get_collate(self) -> bool: ... + def get_default_source(self) -> Optional[str]: ... + def get_dither(self) -> Optional[str]: ... + def get_double(self, key: str) -> float: ... + def get_double_with_default(self, key: str, def_: float) -> float: ... + def get_duplex(self) -> PrintDuplex: ... + def get_finishings(self) -> Optional[str]: ... + def get_int(self, key: str) -> int: ... + def get_int_with_default(self, key: str, def_: int) -> int: ... + def get_length(self, key: str, unit: Unit) -> float: ... + def get_media_type(self) -> Optional[str]: ... + def get_n_copies(self) -> int: ... + def get_number_up(self) -> int: ... + def get_number_up_layout(self) -> NumberUpLayout: ... + def get_orientation(self) -> PageOrientation: ... + def get_output_bin(self) -> Optional[str]: ... + def get_page_ranges(self) -> list[PageRange]: ... + def get_page_set(self) -> PageSet: ... + def get_paper_height(self, unit: Unit) -> float: ... + def get_paper_size(self) -> Optional[PaperSize]: ... + def get_paper_width(self, unit: Unit) -> float: ... + def get_print_pages(self) -> PrintPages: ... + def get_printer(self) -> Optional[str]: ... + def get_printer_lpi(self) -> float: ... + def get_quality(self) -> PrintQuality: ... + def get_resolution(self) -> int: ... + def get_resolution_x(self) -> int: ... + def get_resolution_y(self) -> int: ... + def get_reverse(self) -> bool: ... + def get_scale(self) -> float: ... + def get_use_color(self) -> bool: ... + def has_key(self, key: str) -> bool: ... + def load_file(self, file_name: str) -> bool: ... + def load_key_file( + self, key_file: GLib.KeyFile, group_name: Optional[str] = None + ) -> bool: ... + @classmethod + def new(cls) -> PrintSettings: ... + @classmethod + def new_from_file(cls, file_name: str) -> PrintSettings: ... + @classmethod + def new_from_gvariant(cls, variant: GLib.Variant) -> PrintSettings: ... + @classmethod + def new_from_key_file( + cls, key_file: GLib.KeyFile, group_name: Optional[str] = None + ) -> PrintSettings: ... + def set(self, key: str, value: Optional[str] = None) -> None: ... + def set_bool(self, key: str, value: bool) -> None: ... + def set_collate(self, collate: bool) -> None: ... + def set_default_source(self, default_source: str) -> None: ... + def set_dither(self, dither: str) -> None: ... + def set_double(self, key: str, value: float) -> None: ... + def set_duplex(self, duplex: PrintDuplex) -> None: ... + def set_finishings(self, finishings: str) -> None: ... + def set_int(self, key: str, value: int) -> None: ... + def set_length(self, key: str, value: float, unit: Unit) -> None: ... + def set_media_type(self, media_type: str) -> None: ... + def set_n_copies(self, num_copies: int) -> None: ... + def set_number_up(self, number_up: int) -> None: ... + def set_number_up_layout(self, number_up_layout: NumberUpLayout) -> None: ... + def set_orientation(self, orientation: PageOrientation) -> None: ... + def set_output_bin(self, output_bin: str) -> None: ... + def set_page_ranges(self, page_ranges: Sequence[PageRange]) -> None: ... + def set_page_set(self, page_set: PageSet) -> None: ... + def set_paper_height(self, height: float, unit: Unit) -> None: ... + def set_paper_size(self, paper_size: PaperSize) -> None: ... + def set_paper_width(self, width: float, unit: Unit) -> None: ... + def set_print_pages(self, pages: PrintPages) -> None: ... + def set_printer(self, printer: str) -> None: ... + def set_printer_lpi(self, lpi: float) -> None: ... + def set_quality(self, quality: PrintQuality) -> None: ... + def set_resolution(self, resolution: int) -> None: ... + def set_resolution_xy(self, resolution_x: int, resolution_y: int) -> None: ... + def set_reverse(self, reverse: bool) -> None: ... + def set_scale(self, scale: float) -> None: ... + def set_use_color(self, use_color: bool) -> None: ... + def to_file(self, file_name: str) -> bool: ... + def to_gvariant(self) -> GLib.Variant: ... + def to_key_file( + self, key_file: GLib.KeyFile, group_name: Optional[str] = None + ) -> None: ... + def unset(self, key: str) -> None: ... + +class PrintSetup(GObject.GBoxed): + def get_page_setup(self) -> Optional[PageSetup]: ... + def get_print_settings(self) -> Optional[PrintSettings]: ... + def ref(self) -> PrintSetup: ... + def unref(self) -> None: ... + +class PrintUnixDialog( + Dialog, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + PrintUnixDialog(**properties) + new(title:str=None, parent:Gtk.Window=None) -> Gtk.Widget + + Object GtkPrintUnixDialog + + Properties from GtkPrintUnixDialog: + page-setup -> GtkPageSetup: page-setup + current-page -> gint: current-page + print-settings -> GtkPrintSettings: print-settings + selected-printer -> GtkPrinter: selected-printer + manual-capabilities -> GtkPrintCapabilities: manual-capabilities + support-selection -> gboolean: support-selection + has-selection -> gboolean: has-selection + embed-page-setup -> gboolean: embed-page-setup + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: use-header-bar + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + current_page: int + embed_page_setup: bool + has_selection: bool + manual_capabilities: PrintCapabilities + page_setup: PageSetup + print_settings: PrintSettings + selected_printer: Optional[Printer] + support_selection: bool + use_header_bar: int + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + def __init__( + self, + current_page: int = ..., + embed_page_setup: bool = ..., + has_selection: bool = ..., + manual_capabilities: PrintCapabilities = ..., + page_setup: PageSetup = ..., + print_settings: PrintSettings = ..., + support_selection: bool = ..., + use_header_bar: int = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_custom_tab(self, child: Widget, tab_label: Widget) -> None: ... + def get_current_page(self) -> int: ... + def get_embed_page_setup(self) -> bool: ... + def get_has_selection(self) -> bool: ... + def get_manual_capabilities(self) -> PrintCapabilities: ... + def get_page_setup(self) -> PageSetup: ... + def get_page_setup_set(self) -> bool: ... + def get_selected_printer(self) -> Optional[Printer]: ... + def get_settings(self) -> PrintSettings: ... + def get_support_selection(self) -> bool: ... + @classmethod + def new( + cls, title: Optional[str] = None, parent: Optional[Window] = None + ) -> PrintUnixDialog: ... + def set_current_page(self, current_page: int) -> None: ... + def set_embed_page_setup(self, embed: bool) -> None: ... + def set_has_selection(self, has_selection: bool) -> None: ... + def set_manual_capabilities(self, capabilities: PrintCapabilities) -> None: ... + def set_page_setup(self, page_setup: PageSetup) -> None: ... + def set_settings(self, settings: Optional[PrintSettings] = None) -> None: ... + def set_support_selection(self, support_selection: bool) -> None: ... + +class Printer(GObject.Object): + """ + :Constructors: + + :: + + Printer(**properties) + new(name:str, backend:Gtk.PrintBackend, virtual_:bool) -> Gtk.Printer + + Object GtkPrinter + + Signals from GtkPrinter: + details-acquired (gboolean) + + Properties from GtkPrinter: + name -> gchararray: name + backend -> GtkPrintBackend: backend + is-virtual -> gboolean: is-virtual + state-message -> gchararray: state-message + location -> gchararray: location + icon-name -> gchararray: icon-name + job-count -> gint: job-count + accepts-pdf -> gboolean: accepts-pdf + accepts-ps -> gboolean: accepts-ps + paused -> gboolean: paused + accepting-jobs -> gboolean: accepting-jobs + + Signals from GObject: + notify (GParam) + """ + + class Props: + accepting_jobs: bool + accepts_pdf: bool + accepts_ps: bool + icon_name: str + is_virtual: bool + job_count: int + location: str + name: str + paused: bool + state_message: str + + props: Props = ... + def __init__( + self, + accepts_pdf: bool = ..., + accepts_ps: bool = ..., + is_virtual: bool = ..., + name: str = ..., + ): ... + def accepts_pdf(self) -> bool: ... + def accepts_ps(self) -> bool: ... + def compare(self, b: Printer) -> int: ... + def get_backend(self) -> PrintBackend: ... + def get_capabilities(self) -> PrintCapabilities: ... + def get_default_page_size(self) -> PageSetup: ... + def get_description(self) -> str: ... + def get_hard_margins(self) -> Tuple[bool, float, float, float, float]: ... + def get_hard_margins_for_paper_size( + self, paper_size: PaperSize + ) -> Tuple[bool, float, float, float, float]: ... + def get_icon_name(self) -> str: ... + def get_job_count(self) -> int: ... + def get_location(self) -> str: ... + def get_name(self) -> str: ... + def get_state_message(self) -> str: ... + def has_details(self) -> bool: ... + def is_accepting_jobs(self) -> bool: ... + def is_active(self) -> bool: ... + def is_default(self) -> bool: ... + def is_paused(self) -> bool: ... + def is_virtual(self) -> bool: ... + def list_papers(self) -> list[PageSetup]: ... + @classmethod + def new(cls, name: str, backend: PrintBackend, virtual_: bool) -> Printer: ... + def request_details(self) -> None: ... + +class ProgressBar( + Widget, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable +): + """ + :Constructors: + + :: + + ProgressBar(**properties) + new() -> Gtk.Widget + + Object GtkProgressBar + + Properties from GtkProgressBar: + fraction -> gdouble: fraction + pulse-step -> gdouble: pulse-step + inverted -> gboolean: inverted + text -> gchararray: text + show-text -> gboolean: show-text + ellipsize -> PangoEllipsizeMode: ellipsize + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + ellipsize: Pango.EllipsizeMode + fraction: float + inverted: bool + pulse_step: float + show_text: bool + text: Optional[str] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + ellipsize: Pango.EllipsizeMode = ..., + fraction: float = ..., + inverted: bool = ..., + pulse_step: float = ..., + show_text: bool = ..., + text: Optional[str] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def get_ellipsize(self) -> Pango.EllipsizeMode: ... + def get_fraction(self) -> float: ... + def get_inverted(self) -> bool: ... + def get_pulse_step(self) -> float: ... + def get_show_text(self) -> bool: ... + def get_text(self) -> Optional[str]: ... + @classmethod + def new(cls) -> ProgressBar: ... + def pulse(self) -> None: ... + def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ... + def set_fraction(self, fraction: float) -> None: ... + def set_inverted(self, inverted: bool) -> None: ... + def set_pulse_step(self, fraction: float) -> None: ... + def set_show_text(self, show_text: bool) -> None: ... + def set_text(self, text: Optional[str] = None) -> None: ... + +class PropertyExpression(Expression): + """ + :Constructors: + + :: + + PropertyExpression(**properties) + new(this_type:GType, expression:Gtk.Expression=None, property_name:str) -> Gtk.PropertyExpression + new_for_pspec(expression:Gtk.Expression=None, pspec:GObject.ParamSpec) -> Gtk.PropertyExpression + """ + + def get_expression(self) -> Optional[Expression]: ... + def get_pspec(self) -> GObject.ParamSpec: ... + @classmethod + def new( + cls, this_type: Type, expression: Optional[Expression], property_name: str + ) -> PropertyExpression: ... + @classmethod + def new_for_pspec( + cls, expression: Optional[Expression], pspec: GObject.ParamSpec + ) -> PropertyExpression: ... + +class PyGTKDeprecationWarning: + args = ... # FIXME Constant + + def add_note(self, *args, **kwargs): ... # FIXME Function + def with_traceback(self, *args, **kwargs): ... # FIXME Function + +class Range( + Widget, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable +): + """ + :Constructors: + + :: + + Range(**properties) + + Object GtkRange + + Signals from GtkRange: + value-changed () + adjust-bounds (gdouble) + move-slider (GtkScrollType) + change-value (GtkScrollType, gdouble) -> gboolean + + Properties from GtkRange: + adjustment -> GtkAdjustment: adjustment + inverted -> gboolean: inverted + show-fill-level -> gboolean: show-fill-level + restrict-to-fill-level -> gboolean: restrict-to-fill-level + fill-level -> gdouble: fill-level + round-digits -> gint: round-digits + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + adjustment: Adjustment + fill_level: float + inverted: bool + restrict_to_fill_level: bool + round_digits: int + show_fill_level: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + adjustment: Adjustment = ..., + fill_level: float = ..., + inverted: bool = ..., + restrict_to_fill_level: bool = ..., + round_digits: int = ..., + show_fill_level: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def do_adjust_bounds(self, new_value: float) -> None: ... + def do_change_value(self, scroll: ScrollType, new_value: float) -> bool: ... + def do_get_range_border(self, border_: Border) -> None: ... + def do_move_slider(self, scroll: ScrollType) -> None: ... + def do_value_changed(self) -> None: ... + def get_adjustment(self) -> Adjustment: ... + def get_fill_level(self) -> float: ... + def get_flippable(self) -> bool: ... + def get_inverted(self) -> bool: ... + def get_range_rect(self) -> Gdk.Rectangle: ... + def get_restrict_to_fill_level(self) -> bool: ... + def get_round_digits(self) -> int: ... + def get_show_fill_level(self) -> bool: ... + def get_slider_range(self) -> Tuple[int, int]: ... + def get_slider_size_fixed(self) -> bool: ... + def get_value(self) -> float: ... + def set_adjustment(self, adjustment: Adjustment) -> None: ... + def set_fill_level(self, fill_level: float) -> None: ... + def set_flippable(self, flippable: bool) -> None: ... + def set_increments(self, step: float, page: float) -> None: ... + def set_inverted(self, setting: bool) -> None: ... + def set_range(self, min: float, max: float) -> None: ... + def set_restrict_to_fill_level(self, restrict_to_fill_level: bool) -> None: ... + def set_round_digits(self, round_digits: int) -> None: ... + def set_show_fill_level(self, show_fill_level: bool) -> None: ... + def set_slider_size_fixed(self, size_fixed: bool) -> None: ... + def set_value(self, value: float) -> None: ... + +class RangeClass(GObject.GPointer): + """ + :Constructors: + + :: + + RangeClass() + """ + + parent_class: WidgetClass = ... + value_changed: Callable[[Range], None] = ... + adjust_bounds: Callable[[Range, float], None] = ... + move_slider: Callable[[Range, ScrollType], None] = ... + get_range_border: Callable[[Range, Border], None] = ... + change_value: Callable[[Range, ScrollType, float], bool] = ... + padding: list[None] = ... + +class RecentData(GObject.GPointer): + """ + :Constructors: + + :: + + RecentData() + """ + + display_name: str = ... + description: str = ... + mime_type: str = ... + app_name: str = ... + app_exec: str = ... + groups: list[str] = ... + is_private: bool = ... + +class RecentInfo(GObject.GBoxed): + def create_app_info( + self, app_name: Optional[str] = None + ) -> Optional[Gio.AppInfo]: ... + def exists(self) -> bool: ... + def get_added(self) -> GLib.DateTime: ... + def get_age(self) -> int: ... + def get_application_info( + self, app_name: str + ) -> Optional[Tuple[str, int, GLib.DateTime]]: ... # CHECK Wrapped function + def get_applications(self) -> list[str]: ... + def get_description(self) -> str: ... + def get_display_name(self) -> str: ... + def get_gicon(self) -> Optional[Gio.Icon]: ... + def get_groups(self) -> list[str]: ... + def get_mime_type(self) -> str: ... + def get_modified(self) -> GLib.DateTime: ... + def get_private_hint(self) -> bool: ... + def get_short_name(self) -> str: ... + def get_uri(self) -> str: ... + def get_uri_display(self) -> Optional[str]: ... + def get_visited(self) -> GLib.DateTime: ... + def has_application(self, app_name: str) -> bool: ... + def has_group(self, group_name: str) -> bool: ... + def is_local(self) -> bool: ... + def last_application(self) -> str: ... + def match(self, info_b: RecentInfo) -> bool: ... + def ref(self) -> RecentInfo: ... + def unref(self) -> None: ... + +class RecentManager(GObject.Object): + """ + :Constructors: + + :: + + RecentManager(**properties) + new() -> Gtk.RecentManager + + Object GtkRecentManager + + Signals from GtkRecentManager: + changed () + + Properties from GtkRecentManager: + filename -> gchararray: filename + size -> gint: size + + Signals from GObject: + notify (GParam) + """ + + class Props: + filename: str + size: int + + props: Props = ... + parent_instance: GObject.Object = ... + priv: RecentManagerPrivate = ... + def __init__(self, filename: str = ...): ... + def add_full(self, uri: str, recent_data: RecentData) -> bool: ... + def add_item(self, uri: str) -> bool: ... + def do_changed(self) -> None: ... + @staticmethod + def get_default() -> RecentManager: ... + def get_items(self) -> list[RecentInfo]: ... + def has_item(self, uri: str) -> bool: ... + def lookup_item(self, uri: str) -> Optional[RecentInfo]: ... + def move_item(self, uri: str, new_uri: Optional[str] = None) -> bool: ... + @classmethod + def new(cls) -> RecentManager: ... + def purge_items(self) -> int: ... + def remove_item(self, uri: str) -> bool: ... + +class RecentManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + RecentManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + changed: Callable[[RecentManager], None] = ... + _gtk_recent1: None = ... + _gtk_recent2: None = ... + _gtk_recent3: None = ... + _gtk_recent4: None = ... + +class RecentManagerPrivate(GObject.GPointer): ... + +class RequestedSize(GObject.GPointer): + """ + :Constructors: + + :: + + RequestedSize() + """ + + data: None = ... + minimum_size: int = ... + natural_size: int = ... + +class Requisition(GObject.GBoxed): + """ + :Constructors: + + :: + + Requisition() + new() -> Gtk.Requisition + """ + + width: int = ... + height: int = ... + def copy(self) -> Requisition: ... + def free(self) -> None: ... + @classmethod + def new(cls) -> Requisition: ... + +class Revealer(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Revealer(**properties) + new() -> Gtk.Widget + + Object GtkRevealer + + Properties from GtkRevealer: + transition-type -> GtkRevealerTransitionType: transition-type + transition-duration -> guint: transition-duration + reveal-child -> gboolean: reveal-child + child-revealed -> gboolean: child-revealed + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + child_revealed: bool + reveal_child: bool + transition_duration: int + transition_type: RevealerTransitionType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + reveal_child: bool = ..., + transition_duration: int = ..., + transition_type: RevealerTransitionType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_child_revealed(self) -> bool: ... + def get_reveal_child(self) -> bool: ... + def get_transition_duration(self) -> int: ... + def get_transition_type(self) -> RevealerTransitionType: ... + @classmethod + def new(cls) -> Revealer: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_reveal_child(self, reveal_child: bool) -> None: ... + def set_transition_duration(self, duration: int) -> None: ... + def set_transition_type(self, transition: RevealerTransitionType) -> None: ... + +class Root(GObject.GInterface): + """ + Interface GtkRoot + + Signals from GObject: + notify (GParam) + """ + + def get_display(self) -> Gdk.Display: ... + def get_focus(self) -> Optional[Widget]: ... + def set_focus(self, focus: Optional[Widget] = None) -> None: ... + +class RootInterface(GObject.GPointer): ... + +class Scale( + Range, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable +): + """ + :Constructors: + + :: + + Scale(**properties) + new(orientation:Gtk.Orientation, adjustment:Gtk.Adjustment=None) -> Gtk.Widget + new_with_range(orientation:Gtk.Orientation, min:float, max:float, step:float) -> Gtk.Widget + + Object GtkScale + + Properties from GtkScale: + digits -> gint: digits + draw-value -> gboolean: draw-value + has-origin -> gboolean: has-origin + value-pos -> GtkPositionType: value-pos + + Signals from GtkRange: + value-changed () + adjust-bounds (gdouble) + move-slider (GtkScrollType) + change-value (GtkScrollType, gdouble) -> gboolean + + Properties from GtkRange: + adjustment -> GtkAdjustment: adjustment + inverted -> gboolean: inverted + show-fill-level -> gboolean: show-fill-level + restrict-to-fill-level -> gboolean: restrict-to-fill-level + fill-level -> gdouble: fill-level + round-digits -> gint: round-digits + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + digits: int + draw_value: bool + has_origin: bool + value_pos: PositionType + adjustment: Adjustment + fill_level: float + inverted: bool + restrict_to_fill_level: bool + round_digits: int + show_fill_level: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + parent_instance: Range = ... + def __init__( + self, + digits: int = ..., + draw_value: bool = ..., + has_origin: bool = ..., + value_pos: PositionType = ..., + adjustment: Adjustment = ..., + fill_level: float = ..., + inverted: bool = ..., + restrict_to_fill_level: bool = ..., + round_digits: int = ..., + show_fill_level: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def add_mark( + self, value: float, position: PositionType, markup: Optional[str] = None + ) -> None: ... + def clear_marks(self) -> None: ... + def do_get_layout_offsets(self) -> Tuple[int, int]: ... + def get_digits(self) -> int: ... + def get_draw_value(self) -> bool: ... + def get_has_origin(self) -> bool: ... + def get_layout(self) -> Optional[Pango.Layout]: ... + def get_layout_offsets(self) -> Tuple[int, int]: ... + def get_value_pos(self) -> PositionType: ... + @classmethod + def new( + cls, orientation: Orientation, adjustment: Optional[Adjustment] = None + ) -> Scale: ... + @classmethod + def new_with_range( + cls, orientation: Orientation, min: float, max: float, step: float + ) -> Scale: ... + def set_digits(self, digits: int) -> None: ... + def set_draw_value(self, draw_value: bool) -> None: ... + def set_format_value_func( + self, func: Optional[Callable[..., str]] = None, *user_data: Any + ) -> None: ... + def set_has_origin(self, has_origin: bool) -> None: ... + def set_value_pos(self, pos: PositionType) -> None: ... + +class ScaleButton( + Widget, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable +): + """ + :Constructors: + + :: + + ScaleButton(**properties) + new(min:float, max:float, step:float, icons:list=None) -> Gtk.Widget + + Object GtkScaleButton + + Signals from GtkScaleButton: + value-changed (gdouble) + popup () + popdown () + + Properties from GtkScaleButton: + value -> gdouble: value + adjustment -> GtkAdjustment: adjustment + icons -> GStrv: icons + active -> gboolean: active + has-frame -> gboolean: has-frame + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: bool + adjustment: Adjustment + has_frame: bool + icons: list[str] + value: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + adjustment: Adjustment = ..., + has_frame: bool = ..., + icons: Sequence[str] = ..., + value: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def do_value_changed(self, value: float) -> None: ... + def get_active(self) -> bool: ... + def get_adjustment(self) -> Adjustment: ... + def get_has_frame(self) -> bool: ... + def get_minus_button(self) -> Button: ... + def get_plus_button(self) -> Button: ... + def get_popup(self) -> Widget: ... + def get_value(self) -> float: ... + @classmethod + def new( + cls, min: float, max: float, step: float, icons: Optional[Sequence[str]] = None + ) -> ScaleButton: ... + def set_adjustment(self, adjustment: Adjustment) -> None: ... + def set_has_frame(self, has_frame: bool) -> None: ... + def set_icons(self, icons: Sequence[str]) -> None: ... + def set_value(self, value: float) -> None: ... + +class ScaleButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + ScaleButtonClass() + """ + + parent_class: WidgetClass = ... + value_changed: Callable[[ScaleButton, float], None] = ... + padding: list[None] = ... + +class ScaleClass(GObject.GPointer): + """ + :Constructors: + + :: + + ScaleClass() + """ + + parent_class: RangeClass = ... + get_layout_offsets: Callable[[Scale], Tuple[int, int]] = ... + padding: list[None] = ... + +class ScrollInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gtk.ScrollInfo + """ + + def get_enable_horizontal(self) -> bool: ... + def get_enable_vertical(self) -> bool: ... + @classmethod + def new(cls) -> ScrollInfo: ... + def ref(self) -> ScrollInfo: ... + def set_enable_horizontal(self, horizontal: bool) -> None: ... + def set_enable_vertical(self, vertical: bool) -> None: ... + def unref(self) -> None: ... + +class Scrollable(GObject.GInterface): + """ + Interface GtkScrollable + + Signals from GObject: + notify (GParam) + """ + + def get_border(self) -> Tuple[bool, Border]: ... + def get_hadjustment(self) -> Optional[Adjustment]: ... + def get_hscroll_policy(self) -> ScrollablePolicy: ... + def get_vadjustment(self) -> Optional[Adjustment]: ... + def get_vscroll_policy(self) -> ScrollablePolicy: ... + def set_hadjustment(self, hadjustment: Optional[Adjustment] = None) -> None: ... + def set_hscroll_policy(self, policy: ScrollablePolicy) -> None: ... + def set_vadjustment(self, vadjustment: Optional[Adjustment] = None) -> None: ... + def set_vscroll_policy(self, policy: ScrollablePolicy) -> None: ... + +class ScrollableInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ScrollableInterface() + """ + + base_iface: GObject.TypeInterface = ... + get_border: Callable[[Scrollable], Tuple[bool, Border]] = ... + +class Scrollbar(Widget, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + Scrollbar(**properties) + new(orientation:Gtk.Orientation, adjustment:Gtk.Adjustment=None) -> Gtk.Widget + + Object GtkScrollbar + + Properties from GtkScrollbar: + adjustment -> GtkAdjustment: adjustment + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + adjustment: Adjustment + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + adjustment: Optional[Adjustment] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def get_adjustment(self) -> Adjustment: ... + @classmethod + def new( + cls, orientation: Orientation, adjustment: Optional[Adjustment] = None + ) -> Scrollbar: ... + def set_adjustment(self, adjustment: Optional[Adjustment] = None) -> None: ... + +class ScrolledWindow(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ScrolledWindow(**properties) + new() -> Gtk.Widget + + Object GtkScrolledWindow + + Signals from GtkScrolledWindow: + move-focus-out (GtkDirectionType) + scroll-child (GtkScrollType, gboolean) -> gboolean + edge-overshot (GtkPositionType) + edge-reached (GtkPositionType) + + Properties from GtkScrolledWindow: + hadjustment -> GtkAdjustment: hadjustment + vadjustment -> GtkAdjustment: vadjustment + hscrollbar-policy -> GtkPolicyType: hscrollbar-policy + vscrollbar-policy -> GtkPolicyType: vscrollbar-policy + window-placement -> GtkCornerType: window-placement + has-frame -> gboolean: has-frame + min-content-width -> gint: min-content-width + min-content-height -> gint: min-content-height + kinetic-scrolling -> gboolean: kinetic-scrolling + overlay-scrolling -> gboolean: overlay-scrolling + max-content-width -> gint: max-content-width + max-content-height -> gint: max-content-height + propagate-natural-width -> gboolean: propagate-natural-width + propagate-natural-height -> gboolean: propagate-natural-height + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + hadjustment: Adjustment + has_frame: bool + hscrollbar_policy: PolicyType + kinetic_scrolling: bool + max_content_height: int + max_content_width: int + min_content_height: int + min_content_width: int + overlay_scrolling: bool + propagate_natural_height: bool + propagate_natural_width: bool + vadjustment: Adjustment + vscrollbar_policy: PolicyType + window_placement: CornerType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + hadjustment: Optional[Adjustment] = ..., + has_frame: bool = ..., + hscrollbar_policy: PolicyType = ..., + kinetic_scrolling: bool = ..., + max_content_height: int = ..., + max_content_width: int = ..., + min_content_height: int = ..., + min_content_width: int = ..., + overlay_scrolling: bool = ..., + propagate_natural_height: bool = ..., + propagate_natural_width: bool = ..., + vadjustment: Optional[Adjustment] = ..., + vscrollbar_policy: PolicyType = ..., + window_placement: CornerType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_hadjustment(self) -> Adjustment: ... + def get_has_frame(self) -> bool: ... + def get_hscrollbar(self) -> Widget: ... + def get_kinetic_scrolling(self) -> bool: ... + def get_max_content_height(self) -> int: ... + def get_max_content_width(self) -> int: ... + def get_min_content_height(self) -> int: ... + def get_min_content_width(self) -> int: ... + def get_overlay_scrolling(self) -> bool: ... + def get_placement(self) -> CornerType: ... + def get_policy(self) -> Tuple[PolicyType, PolicyType]: ... + def get_propagate_natural_height(self) -> bool: ... + def get_propagate_natural_width(self) -> bool: ... + def get_vadjustment(self) -> Adjustment: ... + def get_vscrollbar(self) -> Widget: ... + @classmethod + def new(cls) -> ScrolledWindow: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_hadjustment(self, hadjustment: Optional[Adjustment] = None) -> None: ... + def set_has_frame(self, has_frame: bool) -> None: ... + def set_kinetic_scrolling(self, kinetic_scrolling: bool) -> None: ... + def set_max_content_height(self, height: int) -> None: ... + def set_max_content_width(self, width: int) -> None: ... + def set_min_content_height(self, height: int) -> None: ... + def set_min_content_width(self, width: int) -> None: ... + def set_overlay_scrolling(self, overlay_scrolling: bool) -> None: ... + def set_placement(self, window_placement: CornerType) -> None: ... + def set_policy( + self, hscrollbar_policy: PolicyType, vscrollbar_policy: PolicyType + ) -> None: ... + def set_propagate_natural_height(self, propagate: bool) -> None: ... + def set_propagate_natural_width(self, propagate: bool) -> None: ... + def set_vadjustment(self, vadjustment: Optional[Adjustment] = None) -> None: ... + def unset_placement(self) -> None: ... + +class SearchBar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + SearchBar(**properties) + new() -> Gtk.Widget + + Object GtkSearchBar + + Properties from GtkSearchBar: + search-mode-enabled -> gboolean: search-mode-enabled + show-close-button -> gboolean: show-close-button + child -> GtkWidget: child + key-capture-widget -> GtkWidget: key-capture-widget + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + key_capture_widget: Optional[Widget] + search_mode_enabled: bool + show_close_button: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + key_capture_widget: Optional[Widget] = ..., + search_mode_enabled: bool = ..., + show_close_button: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def connect_entry(self, entry: Editable) -> None: ... + def get_child(self) -> Optional[Widget]: ... + def get_key_capture_widget(self) -> Optional[Widget]: ... + def get_search_mode(self) -> bool: ... + def get_show_close_button(self) -> bool: ... + @classmethod + def new(cls) -> SearchBar: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_key_capture_widget(self, widget: Optional[Widget] = None) -> None: ... + def set_search_mode(self, search_mode: bool) -> None: ... + def set_show_close_button(self, visible: bool) -> None: ... + +class SearchEntry(Widget, Accessible, Buildable, ConstraintTarget, Editable): + """ + :Constructors: + + :: + + SearchEntry(**properties) + new() -> Gtk.Widget + + Object GtkSearchEntry + + Signals from GtkSearchEntry: + activate () + search-changed () + next-match () + previous-match () + stop-search () + search-started () + + Properties from GtkSearchEntry: + placeholder-text -> gchararray: placeholder-text + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + activates-default -> gboolean: activates-default + search-delay -> guint: search-delay + + Signals from GtkEditable: + changed () + insert-text (gchararray, gint, gpointer) + delete-text (gint, gint) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activates_default: bool + input_hints: InputHints + input_purpose: InputPurpose + placeholder_text: Optional[str] + search_delay: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + cursor_position: int + editable: bool + enable_undo: bool + max_width_chars: int + selection_bound: int + text: str + width_chars: int + xalign: float + + props: Props = ... + def __init__( + self, + activates_default: bool = ..., + input_hints: InputHints = ..., + input_purpose: InputPurpose = ..., + placeholder_text: Optional[str] = ..., + search_delay: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editable: bool = ..., + enable_undo: bool = ..., + max_width_chars: int = ..., + text: str = ..., + width_chars: int = ..., + xalign: float = ..., + ): ... + def get_input_hints(self) -> InputHints: ... + def get_input_purpose(self) -> InputPurpose: ... + def get_key_capture_widget(self) -> Optional[Widget]: ... + def get_placeholder_text(self) -> Optional[str]: ... + def get_search_delay(self) -> int: ... + @classmethod + def new(cls) -> SearchEntry: ... + def set_input_hints(self, hints: InputHints) -> None: ... + def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_key_capture_widget(self, widget: Optional[Widget] = None) -> None: ... + def set_placeholder_text(self, text: Optional[str] = None) -> None: ... + def set_search_delay(self, delay: int) -> None: ... + +class SectionModel(GObject.GInterface): + """ + Interface GtkSectionModel + + Signals from GObject: + notify (GParam) + """ + + def get_section(self, position: int) -> Tuple[int, int]: ... + def sections_changed(self, position: int, n_items: int) -> None: ... + +class SectionModelInterface(GObject.GPointer): + """ + :Constructors: + + :: + + SectionModelInterface() + """ + + g_iface: GObject.TypeInterface = ... + get_section: Callable[[SectionModel, int], Tuple[int, int]] = ... + +class SelectionFilterModel(GObject.Object, Gio.ListModel): + """ + :Constructors: + + :: + + SelectionFilterModel(**properties) + new(model:Gtk.SelectionModel=None) -> Gtk.SelectionFilterModel + + Object GtkSelectionFilterModel + + Properties from GtkSelectionFilterModel: + item-type -> GType: item-type + model -> GtkSelectionModel: model + n-items -> guint: n-items + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + model: Optional[SelectionModel] + n_items: int + + props: Props = ... + def __init__(self, model: Optional[SelectionModel] = ...): ... + def get_model(self) -> Optional[SelectionModel]: ... + @classmethod + def new(cls, model: Optional[SelectionModel] = None) -> SelectionFilterModel: ... + def set_model(self, model: Optional[SelectionModel] = None) -> None: ... + +class SelectionFilterModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + SelectionFilterModelClass() + """ + + parent_class: GObject.ObjectClass = ... + +class SelectionModel(GObject.GInterface): + """ + Interface GtkSelectionModel + + Signals from GObject: + notify (GParam) + """ + + def get_selection(self) -> Bitset: ... + def get_selection_in_range(self, position: int, n_items: int) -> Bitset: ... + def is_selected(self, position: int) -> bool: ... + def select_all(self) -> bool: ... + def select_item(self, position: int, unselect_rest: bool) -> bool: ... + def select_range( + self, position: int, n_items: int, unselect_rest: bool + ) -> bool: ... + def selection_changed(self, position: int, n_items: int) -> None: ... + def set_selection(self, selected: Bitset, mask: Bitset) -> bool: ... + def unselect_all(self) -> bool: ... + def unselect_item(self, position: int) -> bool: ... + def unselect_range(self, position: int, n_items: int) -> bool: ... + +class SelectionModelInterface(GObject.GPointer): + """ + :Constructors: + + :: + + SelectionModelInterface() + """ + + g_iface: GObject.TypeInterface = ... + is_selected: Callable[[SelectionModel, int], bool] = ... + get_selection_in_range: Callable[[SelectionModel, int, int], Bitset] = ... + select_item: Callable[[SelectionModel, int, bool], bool] = ... + unselect_item: Callable[[SelectionModel, int], bool] = ... + select_range: Callable[[SelectionModel, int, int, bool], bool] = ... + unselect_range: Callable[[SelectionModel, int, int], bool] = ... + select_all: Callable[[SelectionModel], bool] = ... + unselect_all: Callable[[SelectionModel], bool] = ... + set_selection: Callable[[SelectionModel, Bitset, Bitset], bool] = ... + +class Separator(Widget, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + Separator(**properties) + new(orientation:Gtk.Orientation) -> Gtk.Widget + + Object GtkSeparator + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + @classmethod + def new(cls, orientation: Orientation) -> Separator: ... + +class Settings(GObject.Object, StyleProvider): + """ + :Constructors: + + :: + + Settings(**properties) + + Object GtkSettings + + Properties from GtkSettings: + gtk-double-click-time -> gint: gtk-double-click-time + gtk-double-click-distance -> gint: gtk-double-click-distance + gtk-cursor-blink -> gboolean: gtk-cursor-blink + gtk-cursor-blink-time -> gint: gtk-cursor-blink-time + gtk-cursor-blink-timeout -> gint: gtk-cursor-blink-timeout + gtk-split-cursor -> gboolean: gtk-split-cursor + gtk-cursor-aspect-ratio -> gdouble: gtk-cursor-aspect-ratio + gtk-theme-name -> gchararray: gtk-theme-name + gtk-icon-theme-name -> gchararray: gtk-icon-theme-name + gtk-dnd-drag-threshold -> gint: gtk-dnd-drag-threshold + gtk-font-name -> gchararray: gtk-font-name + gtk-xft-antialias -> gint: gtk-xft-antialias + gtk-xft-hinting -> gint: gtk-xft-hinting + gtk-xft-hintstyle -> gchararray: gtk-xft-hintstyle + gtk-xft-rgba -> gchararray: gtk-xft-rgba + gtk-xft-dpi -> gint: gtk-xft-dpi + gtk-hint-font-metrics -> gboolean: gtk-hint-font-metrics + gtk-cursor-theme-name -> gchararray: gtk-cursor-theme-name + gtk-cursor-theme-size -> gint: gtk-cursor-theme-size + gtk-alternative-button-order -> gboolean: gtk-alternative-button-order + gtk-alternative-sort-arrows -> gboolean: gtk-alternative-sort-arrows + gtk-enable-animations -> gboolean: gtk-enable-animations + gtk-error-bell -> gboolean: gtk-error-bell + gtk-show-status-shapes -> gboolean: gtk-show-status-shapes + gtk-print-backends -> gchararray: gtk-print-backends + gtk-print-preview-command -> gchararray: gtk-print-preview-command + gtk-enable-accels -> gboolean: gtk-enable-accels + gtk-im-module -> gchararray: gtk-im-module + gtk-recent-files-max-age -> gint: gtk-recent-files-max-age + gtk-fontconfig-timestamp -> guint: gtk-fontconfig-timestamp + gtk-sound-theme-name -> gchararray: gtk-sound-theme-name + gtk-enable-input-feedback-sounds -> gboolean: gtk-enable-input-feedback-sounds + gtk-enable-event-sounds -> gboolean: gtk-enable-event-sounds + gtk-primary-button-warps-slider -> gboolean: gtk-primary-button-warps-slider + gtk-application-prefer-dark-theme -> gboolean: gtk-application-prefer-dark-theme + gtk-entry-select-on-focus -> gboolean: gtk-entry-select-on-focus + gtk-entry-password-hint-timeout -> guint: gtk-entry-password-hint-timeout + gtk-label-select-on-focus -> gboolean: gtk-label-select-on-focus + gtk-shell-shows-app-menu -> gboolean: gtk-shell-shows-app-menu + gtk-shell-shows-menubar -> gboolean: gtk-shell-shows-menubar + gtk-shell-shows-desktop -> gboolean: gtk-shell-shows-desktop + gtk-decoration-layout -> gchararray: gtk-decoration-layout + gtk-titlebar-double-click -> gchararray: gtk-titlebar-double-click + gtk-titlebar-middle-click -> gchararray: gtk-titlebar-middle-click + gtk-titlebar-right-click -> gchararray: gtk-titlebar-right-click + gtk-dialogs-use-header -> gboolean: gtk-dialogs-use-header + gtk-enable-primary-paste -> gboolean: gtk-enable-primary-paste + gtk-recent-files-enabled -> gboolean: gtk-recent-files-enabled + gtk-long-press-time -> guint: gtk-long-press-time + gtk-keynav-use-caret -> gboolean: gtk-keynav-use-caret + gtk-overlay-scrolling -> gboolean: gtk-overlay-scrolling + + Signals from GtkStyleProvider: + gtk-private-changed () + + Signals from GObject: + notify (GParam) + """ + + class Props: + gtk_alternative_button_order: bool + gtk_alternative_sort_arrows: bool + gtk_application_prefer_dark_theme: bool + gtk_cursor_aspect_ratio: float + gtk_cursor_blink: bool + gtk_cursor_blink_time: int + gtk_cursor_blink_timeout: int + gtk_cursor_theme_name: str + gtk_cursor_theme_size: int + gtk_decoration_layout: str + gtk_dialogs_use_header: bool + gtk_dnd_drag_threshold: int + gtk_double_click_distance: int + gtk_double_click_time: int + gtk_enable_accels: bool + gtk_enable_animations: bool + gtk_enable_event_sounds: bool + gtk_enable_input_feedback_sounds: bool + gtk_enable_primary_paste: bool + gtk_entry_password_hint_timeout: int + gtk_entry_select_on_focus: bool + gtk_error_bell: bool + gtk_font_name: str + gtk_fontconfig_timestamp: int + gtk_hint_font_metrics: bool + gtk_icon_theme_name: str + gtk_im_module: str + gtk_keynav_use_caret: bool + gtk_label_select_on_focus: bool + gtk_long_press_time: int + gtk_overlay_scrolling: bool + gtk_primary_button_warps_slider: bool + gtk_print_backends: str + gtk_print_preview_command: str + gtk_recent_files_enabled: bool + gtk_recent_files_max_age: int + gtk_shell_shows_app_menu: bool + gtk_shell_shows_desktop: bool + gtk_shell_shows_menubar: bool + gtk_show_status_shapes: bool + gtk_sound_theme_name: str + gtk_split_cursor: bool + gtk_theme_name: str + gtk_titlebar_double_click: str + gtk_titlebar_middle_click: str + gtk_titlebar_right_click: str + gtk_xft_antialias: int + gtk_xft_dpi: int + gtk_xft_hinting: int + gtk_xft_hintstyle: str + gtk_xft_rgba: str + + props: Props = ... + def __init__( + self, + gtk_alternative_button_order: bool = ..., + gtk_alternative_sort_arrows: bool = ..., + gtk_application_prefer_dark_theme: bool = ..., + gtk_cursor_aspect_ratio: float = ..., + gtk_cursor_blink: bool = ..., + gtk_cursor_blink_time: int = ..., + gtk_cursor_blink_timeout: int = ..., + gtk_cursor_theme_name: str = ..., + gtk_cursor_theme_size: int = ..., + gtk_decoration_layout: str = ..., + gtk_dialogs_use_header: bool = ..., + gtk_dnd_drag_threshold: int = ..., + gtk_double_click_distance: int = ..., + gtk_double_click_time: int = ..., + gtk_enable_accels: bool = ..., + gtk_enable_animations: bool = ..., + gtk_enable_event_sounds: bool = ..., + gtk_enable_input_feedback_sounds: bool = ..., + gtk_enable_primary_paste: bool = ..., + gtk_entry_password_hint_timeout: int = ..., + gtk_entry_select_on_focus: bool = ..., + gtk_error_bell: bool = ..., + gtk_font_name: str = ..., + gtk_fontconfig_timestamp: int = ..., + gtk_hint_font_metrics: bool = ..., + gtk_icon_theme_name: str = ..., + gtk_im_module: str = ..., + gtk_keynav_use_caret: bool = ..., + gtk_label_select_on_focus: bool = ..., + gtk_long_press_time: int = ..., + gtk_overlay_scrolling: bool = ..., + gtk_primary_button_warps_slider: bool = ..., + gtk_print_backends: str = ..., + gtk_print_preview_command: str = ..., + gtk_recent_files_enabled: bool = ..., + gtk_recent_files_max_age: int = ..., + gtk_shell_shows_app_menu: bool = ..., + gtk_shell_shows_desktop: bool = ..., + gtk_shell_shows_menubar: bool = ..., + gtk_show_status_shapes: bool = ..., + gtk_sound_theme_name: str = ..., + gtk_split_cursor: bool = ..., + gtk_theme_name: str = ..., + gtk_titlebar_double_click: str = ..., + gtk_titlebar_middle_click: str = ..., + gtk_titlebar_right_click: str = ..., + gtk_xft_antialias: int = ..., + gtk_xft_dpi: int = ..., + gtk_xft_hinting: int = ..., + gtk_xft_hintstyle: str = ..., + gtk_xft_rgba: str = ..., + ): ... + @staticmethod + def get_default() -> Optional[Settings]: ... + @staticmethod + def get_for_display(display: Gdk.Display) -> Settings: ... + def reset_property(self, name: str) -> None: ... + +class Shortcut(GObject.Object): + """ + :Constructors: + + :: + + Shortcut(**properties) + new(trigger:Gtk.ShortcutTrigger=None, action:Gtk.ShortcutAction=None) -> Gtk.Shortcut + + Object GtkShortcut + + Properties from GtkShortcut: + action -> GtkShortcutAction: action + arguments -> GVariant: arguments + trigger -> GtkShortcutTrigger: trigger + + Signals from GObject: + notify (GParam) + """ + + class Props: + action: Optional[ShortcutAction] + arguments: Optional[GLib.Variant] + trigger: Optional[ShortcutTrigger] + + props: Props = ... + def __init__( + self, + action: Optional[ShortcutAction] = ..., + arguments: Optional[GLib.Variant] = ..., + trigger: Optional[ShortcutTrigger] = ..., + ): ... + def get_action(self) -> Optional[ShortcutAction]: ... + def get_arguments(self) -> Optional[GLib.Variant]: ... + def get_trigger(self) -> Optional[ShortcutTrigger]: ... + @classmethod + def new( + cls, + trigger: Optional[ShortcutTrigger] = None, + action: Optional[ShortcutAction] = None, + ) -> Shortcut: ... + def set_action(self, action: Optional[ShortcutAction] = None) -> None: ... + def set_arguments(self, args: Optional[GLib.Variant] = None) -> None: ... + def set_trigger(self, trigger: Optional[ShortcutTrigger] = None) -> None: ... + +class ShortcutAction(GObject.Object): + """ + :Constructors: + + :: + + ShortcutAction(**properties) + parse_string(string:str) -> Gtk.ShortcutAction or None + + Object GtkShortcutAction + + Signals from GObject: + notify (GParam) + """ + + def activate( + self, + flags: ShortcutActionFlags, + widget: Widget, + args: Optional[GLib.Variant] = None, + ) -> bool: ... + @classmethod + def parse_string(cls, string: str) -> Optional[ShortcutAction]: ... + def print_(self, string: GLib.String) -> None: ... + def to_string(self) -> str: ... + +class ShortcutActionClass(GObject.GPointer): ... + +class ShortcutClass(GObject.GPointer): + """ + :Constructors: + + :: + + ShortcutClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ShortcutController(EventController, Gio.ListModel, Buildable): + """ + :Constructors: + + :: + + ShortcutController(**properties) + new() -> Gtk.EventController + new_for_model(model:Gio.ListModel) -> Gtk.EventController + + Object GtkShortcutController + + Properties from GtkShortcutController: + item-type -> GType: item-type + mnemonic-modifiers -> GdkModifierType: mnemonic-modifiers + model -> GListModel: model + n-items -> guint: n-items + scope -> GtkShortcutScope: scope + + Signals from GListModel: + items-changed (guint, guint, guint) + + Properties from GtkEventController: + widget -> GtkWidget: widget + propagation-phase -> GtkPropagationPhase: propagation-phase + propagation-limit -> GtkPropagationLimit: propagation-limit + name -> gchararray: name + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + mnemonic_modifiers: Gdk.ModifierType + n_items: int + scope: ShortcutScope + name: Optional[str] + propagation_limit: PropagationLimit + propagation_phase: PropagationPhase + widget: Widget + model: Gio.ListModel + + props: Props = ... + def __init__( + self, + mnemonic_modifiers: Gdk.ModifierType = ..., + model: Gio.ListModel = ..., + scope: ShortcutScope = ..., + name: Optional[str] = ..., + propagation_limit: PropagationLimit = ..., + propagation_phase: PropagationPhase = ..., + ): ... + def add_shortcut(self, shortcut: Shortcut) -> None: ... + def get_mnemonics_modifiers(self) -> Gdk.ModifierType: ... + def get_scope(self) -> ShortcutScope: ... + @classmethod + def new(cls) -> ShortcutController: ... + @classmethod + def new_for_model(cls, model: Gio.ListModel) -> ShortcutController: ... + def remove_shortcut(self, shortcut: Shortcut) -> None: ... + def set_mnemonics_modifiers(self, modifiers: Gdk.ModifierType) -> None: ... + def set_scope(self, scope: ShortcutScope) -> None: ... + +class ShortcutControllerClass(GObject.GPointer): ... + +class ShortcutLabel(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ShortcutLabel(**properties) + new(accelerator:str) -> Gtk.Widget + + Object GtkShortcutLabel + + Properties from GtkShortcutLabel: + accelerator -> gchararray: accelerator + disabled-text -> gchararray: disabled-text + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + accelerator: Optional[str] + disabled_text: Optional[str] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + accelerator: str = ..., + disabled_text: str = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_accelerator(self) -> Optional[str]: ... + def get_disabled_text(self) -> Optional[str]: ... + @classmethod + def new(cls, accelerator: str) -> ShortcutLabel: ... + def set_accelerator(self, accelerator: str) -> None: ... + def set_disabled_text(self, disabled_text: str) -> None: ... + +class ShortcutLabelClass(GObject.GPointer): ... +class ShortcutManager(GObject.GInterface): ... + +class ShortcutManagerInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ShortcutManagerInterface() + """ + + g_iface: GObject.TypeInterface = ... + add_controller: Callable[[ShortcutManager, ShortcutController], None] = ... + remove_controller: Callable[[ShortcutManager, ShortcutController], None] = ... + +class ShortcutTrigger(GObject.Object): + """ + :Constructors: + + :: + + ShortcutTrigger(**properties) + parse_string(string:str) -> Gtk.ShortcutTrigger or None + + Object GtkShortcutTrigger + + Signals from GObject: + notify (GParam) + """ + + def compare(self, trigger2: ShortcutTrigger) -> int: ... + def equal(self, trigger2: ShortcutTrigger) -> bool: ... + def hash(self) -> int: ... + @classmethod + def parse_string(cls, string: str) -> Optional[ShortcutTrigger]: ... + def print_(self, string: GLib.String) -> None: ... + def print_label(self, display: Gdk.Display, string: GLib.String) -> bool: ... + def to_label(self, display: Gdk.Display) -> str: ... + def to_string(self) -> str: ... + def trigger(self, event: Gdk.Event, enable_mnemonics: bool) -> Gdk.KeyMatch: ... + +class ShortcutTriggerClass(GObject.GPointer): ... + +class ShortcutsGroup(Box, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + ShortcutsGroup(**properties) + + Object GtkShortcutsGroup + + Properties from GtkShortcutsGroup: + title -> gchararray: title + view -> gchararray: view + accel-size-group -> GtkSizeGroup: accel-size-group + title-size-group -> GtkSizeGroup: title-size-group + height -> guint: height + + Properties from GtkBox: + spacing -> gint: spacing + homogeneous -> gboolean: homogeneous + baseline-child -> gint: baseline-child + baseline-position -> GtkBaselinePosition: baseline-position + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + height: int + title: str + view: str + baseline_child: int + baseline_position: BaselinePosition + homogeneous: bool + spacing: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + accel_size_group: SizeGroup + title_size_group: SizeGroup + + props: Props = ... + def __init__( + self, + accel_size_group: SizeGroup = ..., + title: str = ..., + title_size_group: SizeGroup = ..., + view: str = ..., + baseline_child: int = ..., + baseline_position: BaselinePosition = ..., + homogeneous: bool = ..., + spacing: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def add_shortcut(self, shortcut: ShortcutsShortcut) -> None: ... + +class ShortcutsGroupClass(GObject.GPointer): ... + +class ShortcutsSection(Box, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + ShortcutsSection(**properties) + + Object GtkShortcutsSection + + Signals from GtkShortcutsSection: + change-current-page (gint) -> gboolean + + Properties from GtkShortcutsSection: + title -> gchararray: title + section-name -> gchararray: section-name + view-name -> gchararray: view-name + max-height -> guint: max-height + + Properties from GtkBox: + spacing -> gint: spacing + homogeneous -> gboolean: homogeneous + baseline-child -> gint: baseline-child + baseline-position -> GtkBaselinePosition: baseline-position + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + max_height: int + section_name: str + title: str + view_name: str + baseline_child: int + baseline_position: BaselinePosition + homogeneous: bool + spacing: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + max_height: int = ..., + section_name: str = ..., + title: str = ..., + view_name: str = ..., + baseline_child: int = ..., + baseline_position: BaselinePosition = ..., + homogeneous: bool = ..., + spacing: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def add_group(self, group: ShortcutsGroup) -> None: ... + +class ShortcutsSectionClass(GObject.GPointer): ... + +class ShortcutsShortcut(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ShortcutsShortcut(**properties) + + Object GtkShortcutsShortcut + + Properties from GtkShortcutsShortcut: + accelerator -> gchararray: accelerator + icon -> GIcon: icon + icon-set -> gboolean: icon-set + title -> gchararray: title + subtitle -> gchararray: subtitle + subtitle-set -> gboolean: subtitle-set + accel-size-group -> GtkSizeGroup: accel-size-group + title-size-group -> GtkSizeGroup: title-size-group + direction -> GtkTextDirection: direction + shortcut-type -> GtkShortcutType: shortcut-type + action-name -> gchararray: action-name + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + accelerator: str + action_name: str + direction: TextDirection + icon: Gio.Icon + icon_set: bool + shortcut_type: ShortcutType + subtitle: str + subtitle_set: bool + title: str + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + accel_size_group: SizeGroup + title_size_group: SizeGroup + + props: Props = ... + def __init__( + self, + accel_size_group: SizeGroup = ..., + accelerator: str = ..., + action_name: str = ..., + direction: TextDirection = ..., + icon: Gio.Icon = ..., + icon_set: bool = ..., + shortcut_type: ShortcutType = ..., + subtitle: str = ..., + subtitle_set: bool = ..., + title: str = ..., + title_size_group: SizeGroup = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + +class ShortcutsShortcutClass(GObject.GPointer): ... + +class ShortcutsWindow( + Window, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + ShortcutsWindow(**properties) + + Object GtkShortcutsWindow + + Signals from GtkShortcutsWindow: + close () + search () + + Properties from GtkShortcutsWindow: + section-name -> gchararray: section-name + view-name -> gchararray: view-name + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + section_name: str + view_name: str + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + def __init__( + self, + section_name: str = ..., + view_name: str = ..., + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_section(self, section: ShortcutsSection) -> None: ... + +class SignalAction(ShortcutAction): + """ + :Constructors: + + :: + + SignalAction(**properties) + new(signal_name:str) -> Gtk.SignalAction + + Object GtkSignalAction + + Properties from GtkSignalAction: + signal-name -> gchararray: signal-name + + Signals from GObject: + notify (GParam) + """ + + class Props: + signal_name: str + + props: Props = ... + def __init__(self, signal_name: str = ...): ... + def get_signal_name(self) -> str: ... + @classmethod + def new(cls, signal_name: str) -> SignalAction: ... + +class SignalActionClass(GObject.GPointer): ... + +class SignalListItemFactory(ListItemFactory): + """ + :Constructors: + + :: + + SignalListItemFactory(**properties) + new() -> Gtk.ListItemFactory + + Object GtkSignalListItemFactory + + Signals from GtkSignalListItemFactory: + setup (GObject) + bind (GObject) + unbind (GObject) + teardown (GObject) + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new(cls) -> SignalListItemFactory: ... + +class SignalListItemFactoryClass(GObject.GPointer): ... + +class SingleSelection(GObject.Object, Gio.ListModel, SectionModel, SelectionModel): + """ + :Constructors: + + :: + + SingleSelection(**properties) + new(model:Gio.ListModel=None) -> Gtk.SingleSelection + + Object GtkSingleSelection + + Properties from GtkSingleSelection: + autoselect -> gboolean: autoselect + can-unselect -> gboolean: can-unselect + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + selected -> guint: selected + selected-item -> GObject: selected-item + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GtkSelectionModel: + selection-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + autoselect: bool + can_unselect: bool + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + selected: int + selected_item: Optional[GObject.Object] + + props: Props = ... + def __init__( + self, + autoselect: bool = ..., + can_unselect: bool = ..., + model: Optional[Gio.ListModel] = ..., + selected: int = ..., + ): ... + def get_autoselect(self) -> bool: ... + def get_can_unselect(self) -> bool: ... + def get_model(self) -> Optional[Gio.ListModel]: ... + def get_selected(self) -> int: ... + def get_selected_item(self) -> Optional[GObject.Object]: ... + @classmethod + def new(cls, model: Optional[Gio.ListModel] = None) -> SingleSelection: ... + def set_autoselect(self, autoselect: bool) -> None: ... + def set_can_unselect(self, can_unselect: bool) -> None: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + def set_selected(self, position: int) -> None: ... + +class SingleSelectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + SingleSelectionClass() + """ + + parent_class: GObject.ObjectClass = ... + +class SizeGroup(GObject.Object, Buildable): + """ + :Constructors: + + :: + + SizeGroup(**properties) + new(mode:Gtk.SizeGroupMode) -> Gtk.SizeGroup + + Object GtkSizeGroup + + Properties from GtkSizeGroup: + mode -> GtkSizeGroupMode: mode + + Signals from GObject: + notify (GParam) + """ + + class Props: + mode: SizeGroupMode + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, mode: SizeGroupMode = ...): ... + def add_widget(self, widget: Widget) -> None: ... + def get_mode(self) -> SizeGroupMode: ... + def get_widgets(self) -> list[Widget]: ... + @classmethod + def new(cls, mode: SizeGroupMode) -> SizeGroup: ... + def remove_widget(self, widget: Widget) -> None: ... + def set_mode(self, mode: SizeGroupMode) -> None: ... + +class SliceListModel(GObject.Object, Gio.ListModel, SectionModel): + """ + :Constructors: + + :: + + SliceListModel(**properties) + new(model:Gio.ListModel=None, offset:int, size:int) -> Gtk.SliceListModel + + Object GtkSliceListModel + + Properties from GtkSliceListModel: + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + offset -> guint: offset + size -> guint: size + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + offset: int + size: int + + props: Props = ... + def __init__( + self, model: Optional[Gio.ListModel] = ..., offset: int = ..., size: int = ... + ): ... + def get_model(self) -> Optional[Gio.ListModel]: ... + def get_offset(self) -> int: ... + def get_size(self) -> int: ... + @classmethod + def new( + cls, model: Optional[Gio.ListModel], offset: int, size: int + ) -> SliceListModel: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + def set_offset(self, offset: int) -> None: ... + def set_size(self, size: int) -> None: ... + +class SliceListModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + SliceListModelClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Snapshot(Gdk.Snapshot): + """ + :Constructors: + + :: + + Snapshot(**properties) + new() -> Gtk.Snapshot + + Object GtkSnapshot + + Signals from GObject: + notify (GParam) + """ + + def append_border( + self, + outline: Gsk.RoundedRect, + border_width: Sequence[float], + border_color: Sequence[Gdk.RGBA], + ) -> None: ... + def append_cairo(self, bounds: Graphene.Rect) -> cairo.Context: ... + def append_color(self, color: Gdk.RGBA, bounds: Graphene.Rect) -> None: ... + def append_conic_gradient( + self, + bounds: Graphene.Rect, + center: Graphene.Point, + rotation: float, + stops: Sequence[Gsk.ColorStop], + ) -> None: ... + def append_fill( + self, path: Gsk.Path, fill_rule: Gsk.FillRule, color: Gdk.RGBA + ) -> None: ... + def append_inset_shadow( + self, + outline: Gsk.RoundedRect, + color: Gdk.RGBA, + dx: float, + dy: float, + spread: float, + blur_radius: float, + ) -> None: ... + def append_layout(self, layout: Pango.Layout, color: Gdk.RGBA) -> None: ... + def append_linear_gradient( + self, + bounds: Graphene.Rect, + start_point: Graphene.Point, + end_point: Graphene.Point, + stops: Sequence[Gsk.ColorStop], + ) -> None: ... + def append_node(self, node: Gsk.RenderNode) -> None: ... + def append_outset_shadow( + self, + outline: Gsk.RoundedRect, + color: Gdk.RGBA, + dx: float, + dy: float, + spread: float, + blur_radius: float, + ) -> None: ... + def append_radial_gradient( + self, + bounds: Graphene.Rect, + center: Graphene.Point, + hradius: float, + vradius: float, + start: float, + end: float, + stops: Sequence[Gsk.ColorStop], + ) -> None: ... + def append_repeating_linear_gradient( + self, + bounds: Graphene.Rect, + start_point: Graphene.Point, + end_point: Graphene.Point, + stops: Sequence[Gsk.ColorStop], + ) -> None: ... + def append_repeating_radial_gradient( + self, + bounds: Graphene.Rect, + center: Graphene.Point, + hradius: float, + vradius: float, + start: float, + end: float, + stops: Sequence[Gsk.ColorStop], + ) -> None: ... + def append_scaled_texture( + self, texture: Gdk.Texture, filter: Gsk.ScalingFilter, bounds: Graphene.Rect + ) -> None: ... + def append_stroke( + self, path: Gsk.Path, stroke: Gsk.Stroke, color: Gdk.RGBA + ) -> None: ... + def append_texture(self, texture: Gdk.Texture, bounds: Graphene.Rect) -> None: ... + def gl_shader_pop_texture(self) -> None: ... + @classmethod + def new(cls) -> Snapshot: ... + def perspective(self, depth: float) -> None: ... + def pop(self) -> None: ... + def push_blend(self, blend_mode: Gsk.BlendMode) -> None: ... + def push_blur(self, radius: float) -> None: ... + def push_clip(self, bounds: Graphene.Rect) -> None: ... + def push_color_matrix( + self, color_matrix: Graphene.Matrix, color_offset: Graphene.Vec4 + ) -> None: ... + def push_cross_fade(self, progress: float) -> None: ... + def push_fill(self, path: Gsk.Path, fill_rule: Gsk.FillRule) -> None: ... + def push_gl_shader( + self, shader: Gsk.GLShader, bounds: Graphene.Rect, take_args: GLib.Bytes + ) -> None: ... + def push_mask(self, mask_mode: Gsk.MaskMode) -> None: ... + def push_opacity(self, opacity: float) -> None: ... + def push_repeat( + self, bounds: Graphene.Rect, child_bounds: Optional[Graphene.Rect] = None + ) -> None: ... + def push_rounded_clip(self, bounds: Gsk.RoundedRect) -> None: ... + def push_shadow(self, shadow: Sequence[Gsk.Shadow]) -> None: ... + def push_stroke(self, path: Gsk.Path, stroke: Gsk.Stroke) -> None: ... + def render_background( + self, context: StyleContext, x: float, y: float, width: float, height: float + ) -> None: ... + def render_focus( + self, context: StyleContext, x: float, y: float, width: float, height: float + ) -> None: ... + def render_frame( + self, context: StyleContext, x: float, y: float, width: float, height: float + ) -> None: ... + def render_insertion_cursor( + self, + context: StyleContext, + x: float, + y: float, + layout: Pango.Layout, + index: int, + direction: Pango.Direction, + ) -> None: ... + def render_layout( + self, context: StyleContext, x: float, y: float, layout: Pango.Layout + ) -> None: ... + def restore(self) -> None: ... + def rotate(self, angle: float) -> None: ... + def rotate_3d(self, angle: float, axis: Graphene.Vec3) -> None: ... + def save(self) -> None: ... + def scale(self, factor_x: float, factor_y: float) -> None: ... + def scale_3d(self, factor_x: float, factor_y: float, factor_z: float) -> None: ... + def to_node(self) -> Optional[Gsk.RenderNode]: ... + def to_paintable( + self, size: Optional[Graphene.Size] = None + ) -> Optional[Gdk.Paintable]: ... + def transform(self, transform: Optional[Gsk.Transform] = None) -> None: ... + def transform_matrix(self, matrix: Graphene.Matrix) -> None: ... + def translate(self, point: Graphene.Point) -> None: ... + def translate_3d(self, point: Graphene.Point3D) -> None: ... + +class SnapshotClass(GObject.GPointer): ... + +class SortListModel(GObject.Object, Gio.ListModel, SectionModel): + """ + :Constructors: + + :: + + SortListModel(**properties) + new(model:Gio.ListModel=None, sorter:Gtk.Sorter=None) -> Gtk.SortListModel + + Object GtkSortListModel + + Properties from GtkSortListModel: + incremental -> gboolean: incremental + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + pending -> guint: pending + section-sorter -> GtkSorter: section-sorter + sorter -> GtkSorter: sorter + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GtkSectionModel: + sections-changed (guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + incremental: bool + item_type: Type + model: Optional[Gio.ListModel] + n_items: int + pending: int + section_sorter: Optional[Sorter] + sorter: Optional[Sorter] + + props: Props = ... + def __init__( + self, + incremental: bool = ..., + model: Optional[Gio.ListModel] = ..., + section_sorter: Optional[Sorter] = ..., + sorter: Optional[Sorter] = ..., + ): ... + def get_incremental(self) -> bool: ... + def get_model(self) -> Optional[Gio.ListModel]: ... + def get_pending(self) -> int: ... + def get_section_sorter(self) -> Optional[Sorter]: ... + def get_sorter(self) -> Optional[Sorter]: ... + @classmethod + def new( + cls, model: Optional[Gio.ListModel] = None, sorter: Optional[Sorter] = None + ) -> SortListModel: ... + def set_incremental(self, incremental: bool) -> None: ... + def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + def set_section_sorter(self, sorter: Optional[Sorter] = None) -> None: ... + def set_sorter(self, sorter: Optional[Sorter] = None) -> None: ... + +class SortListModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + SortListModelClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Sorter(GObject.Object): + """ + :Constructors: + + :: + + Sorter(**properties) + + Object GtkSorter + + Signals from GtkSorter: + changed (GtkSorterChange) + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + def changed(self, change: SorterChange) -> None: ... + def compare(self, item1: GObject.Object, item2: GObject.Object) -> Ordering: ... + def do_compare( + self, + item1: Optional[GObject.Object] = None, + item2: Optional[GObject.Object] = None, + ) -> Ordering: ... + def do_get_order(self) -> SorterOrder: ... + def get_order(self) -> SorterOrder: ... + +class SorterClass(GObject.GPointer): + """ + :Constructors: + + :: + + SorterClass() + """ + + parent_class: GObject.ObjectClass = ... + compare: Callable[ + [Sorter, Optional[GObject.Object], Optional[GObject.Object]], Ordering + ] = ... + get_order: Callable[[Sorter], SorterOrder] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + _gtk_reserved5: None = ... + _gtk_reserved6: None = ... + _gtk_reserved7: None = ... + _gtk_reserved8: None = ... + +class SpinButton( + Widget, + Accessible, + AccessibleRange, + Buildable, + CellEditable, + ConstraintTarget, + Editable, + Orientable, +): + """ + :Constructors: + + :: + + SpinButton(**properties) + new(adjustment:Gtk.Adjustment=None, climb_rate:float, digits:int) -> Gtk.Widget + new_with_range(min:float, max:float, step:float) -> Gtk.Widget + + Object GtkSpinButton + + Signals from GtkSpinButton: + value-changed () + activate () + change-value (GtkScrollType) + input (gpointer) -> gint + output () -> gboolean + wrapped () + + Properties from GtkSpinButton: + activates-default -> gboolean: activates-default + adjustment -> GtkAdjustment: adjustment + climb-rate -> gdouble: climb-rate + digits -> guint: digits + snap-to-ticks -> gboolean: snap-to-ticks + numeric -> gboolean: numeric + wrap -> gboolean: wrap + update-policy -> GtkSpinButtonUpdatePolicy: update-policy + value -> gdouble: value + + Signals from GtkEditable: + changed () + insert-text (gchararray, gint, gpointer) + delete-text (gint, gint) + + Signals from GtkCellEditable: + editing-done () + remove-widget () + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activates_default: bool + adjustment: Adjustment + climb_rate: float + digits: int + numeric: bool + snap_to_ticks: bool + update_policy: SpinButtonUpdatePolicy + value: float + wrap: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + editing_canceled: bool + cursor_position: int + editable: bool + enable_undo: bool + max_width_chars: int + selection_bound: int + text: str + width_chars: int + xalign: float + orientation: Orientation + + props: Props = ... + def __init__( + self, + activates_default: bool = ..., + adjustment: Adjustment = ..., + climb_rate: float = ..., + digits: int = ..., + numeric: bool = ..., + snap_to_ticks: bool = ..., + update_policy: SpinButtonUpdatePolicy = ..., + value: float = ..., + wrap: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editing_canceled: bool = ..., + editable: bool = ..., + enable_undo: bool = ..., + max_width_chars: int = ..., + text: str = ..., + width_chars: int = ..., + xalign: float = ..., + orientation: Orientation = ..., + ): ... + def configure( + self, adjustment: Optional[Adjustment], climb_rate: float, digits: int + ) -> None: ... + def get_activates_default(self) -> bool: ... + def get_adjustment(self) -> Adjustment: ... + def get_climb_rate(self) -> float: ... + def get_digits(self) -> int: ... + def get_increments(self) -> Tuple[float, float]: ... + def get_numeric(self) -> bool: ... + def get_range(self) -> Tuple[float, float]: ... + def get_snap_to_ticks(self) -> bool: ... + def get_update_policy(self) -> SpinButtonUpdatePolicy: ... + def get_value(self) -> float: ... + def get_value_as_int(self) -> int: ... + def get_wrap(self) -> bool: ... + @classmethod + def new( + cls, adjustment: Optional[Adjustment], climb_rate: float, digits: int + ) -> SpinButton: ... + @classmethod + def new_with_range(cls, min: float, max: float, step: float) -> SpinButton: ... + def set_activates_default(self, activates_default: bool) -> None: ... + def set_adjustment(self, adjustment: Adjustment) -> None: ... + def set_climb_rate(self, climb_rate: float) -> None: ... + def set_digits(self, digits: int) -> None: ... + def set_increments(self, step: float, page: float) -> None: ... + def set_numeric(self, numeric: bool) -> None: ... + def set_range(self, min: float, max: float) -> None: ... + def set_snap_to_ticks(self, snap_to_ticks: bool) -> None: ... + def set_update_policy(self, policy: SpinButtonUpdatePolicy) -> None: ... + def set_value(self, value: float) -> None: ... + def set_wrap(self, wrap: bool) -> None: ... + def spin(self, direction: SpinType, increment: float) -> None: ... + def update(self) -> None: ... + +class Spinner(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Spinner(**properties) + new() -> Gtk.Widget + + Object GtkSpinner + + Properties from GtkSpinner: + spinning -> gboolean: spinning + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + spinning: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + spinning: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_spinning(self) -> bool: ... + @classmethod + def new(cls) -> Spinner: ... + def set_spinning(self, spinning: bool) -> None: ... + def start(self) -> None: ... + def stop(self) -> None: ... + +class Stack(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Stack(**properties) + new() -> Gtk.Widget + + Object GtkStack + + Properties from GtkStack: + hhomogeneous -> gboolean: hhomogeneous + vhomogeneous -> gboolean: vhomogeneous + visible-child -> GtkWidget: visible-child + visible-child-name -> gchararray: visible-child-name + transition-duration -> guint: transition-duration + transition-type -> GtkStackTransitionType: transition-type + transition-running -> gboolean: transition-running + interpolate-size -> gboolean: interpolate-size + pages -> GtkSelectionModel: pages + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + hhomogeneous: bool + interpolate_size: bool + pages: SelectionModel + transition_duration: int + transition_running: bool + transition_type: StackTransitionType + vhomogeneous: bool + visible_child: Optional[Widget] + visible_child_name: Optional[str] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + hhomogeneous: bool = ..., + interpolate_size: bool = ..., + transition_duration: int = ..., + transition_type: StackTransitionType = ..., + vhomogeneous: bool = ..., + visible_child: Widget = ..., + visible_child_name: str = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def add_child(self, child: Widget) -> StackPage: ... + def add_named(self, child: Widget, name: Optional[str] = None) -> StackPage: ... + def add_titled( + self, child: Widget, name: Optional[str], title: str + ) -> StackPage: ... + def get_child_by_name(self, name: str) -> Optional[Widget]: ... + def get_hhomogeneous(self) -> bool: ... + def get_interpolate_size(self) -> bool: ... + def get_page(self, child: Widget) -> StackPage: ... + def get_pages(self) -> SelectionModel: ... + def get_transition_duration(self) -> int: ... + def get_transition_running(self) -> bool: ... + def get_transition_type(self) -> StackTransitionType: ... + def get_vhomogeneous(self) -> bool: ... + def get_visible_child(self) -> Optional[Widget]: ... + def get_visible_child_name(self) -> Optional[str]: ... + @classmethod + def new(cls) -> Stack: ... + def remove(self, child: Widget) -> None: ... + def set_hhomogeneous(self, hhomogeneous: bool) -> None: ... + def set_interpolate_size(self, interpolate_size: bool) -> None: ... + def set_transition_duration(self, duration: int) -> None: ... + def set_transition_type(self, transition: StackTransitionType) -> None: ... + def set_vhomogeneous(self, vhomogeneous: bool) -> None: ... + def set_visible_child(self, child: Widget) -> None: ... + def set_visible_child_full( + self, name: str, transition: StackTransitionType + ) -> None: ... + def set_visible_child_name(self, name: str) -> None: ... + +class StackPage(GObject.Object, Accessible): + """ + :Constructors: + + :: + + StackPage(**properties) + + Object GtkStackPage + + Properties from GtkStackPage: + child -> GtkWidget: child + name -> gchararray: name + title -> gchararray: title + icon-name -> gchararray: icon-name + needs-attention -> gboolean: needs-attention + visible -> gboolean: visible + use-underline -> gboolean: use-underline + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Widget + icon_name: Optional[str] + name: Optional[str] + needs_attention: bool + title: Optional[str] + use_underline: bool + visible: bool + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Widget = ..., + icon_name: str = ..., + name: str = ..., + needs_attention: bool = ..., + title: str = ..., + use_underline: bool = ..., + visible: bool = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Widget: ... + def get_icon_name(self) -> Optional[str]: ... + def get_name(self) -> Optional[str]: ... + def get_needs_attention(self) -> bool: ... + def get_title(self) -> Optional[str]: ... + def get_use_underline(self) -> bool: ... + def get_visible(self) -> bool: ... + def set_icon_name(self, setting: str) -> None: ... + def set_name(self, setting: str) -> None: ... + def set_needs_attention(self, setting: bool) -> None: ... + def set_title(self, setting: str) -> None: ... + def set_use_underline(self, setting: bool) -> None: ... + def set_visible(self, visible: bool) -> None: ... + +class StackSidebar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + StackSidebar(**properties) + new() -> Gtk.Widget + + Object GtkStackSidebar + + Properties from GtkStackSidebar: + stack -> GtkStack: stack + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + stack: Optional[Stack] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + stack: Stack = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_stack(self) -> Optional[Stack]: ... + @classmethod + def new(cls) -> StackSidebar: ... + def set_stack(self, stack: Stack) -> None: ... + +class StackSwitcher(Widget, Accessible, Buildable, ConstraintTarget, Orientable): + """ + :Constructors: + + :: + + StackSwitcher(**properties) + new() -> Gtk.Widget + + Object GtkStackSwitcher + + Properties from GtkStackSwitcher: + stack -> GtkStack: stack + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + stack: Optional[Stack] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + def __init__( + self, + stack: Optional[Stack] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + def get_stack(self) -> Optional[Stack]: ... + @classmethod + def new(cls) -> StackSwitcher: ... + def set_stack(self, stack: Optional[Stack] = None) -> None: ... + +class Statusbar(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Statusbar(**properties) + new() -> Gtk.Widget + + Object GtkStatusbar + + Signals from GtkStatusbar: + text-pushed (guint, gchararray) + text-popped (guint, gchararray) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_context_id(self, context_description: str) -> int: ... + @classmethod + def new(cls) -> Statusbar: ... + def pop(self, context_id: int) -> None: ... + def push(self, context_id: int, text: str) -> int: ... + def remove(self, context_id: int, message_id: int) -> None: ... + def remove_all(self, context_id: int) -> None: ... + +class StringFilter(Filter): + """ + :Constructors: + + :: + + StringFilter(**properties) + new(expression:Gtk.Expression=None) -> Gtk.StringFilter + + Object GtkStringFilter + + Properties from GtkStringFilter: + expression -> GtkExpression: expression + ignore-case -> gboolean: ignore-case + match-mode -> GtkStringFilterMatchMode: match-mode + search -> gchararray: search + + Signals from GtkFilter: + changed (GtkFilterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + expression: Optional[Expression] + ignore_case: bool + match_mode: StringFilterMatchMode + search: Optional[str] + + props: Props = ... + def __init__( + self, + expression: Optional[Expression] = ..., + ignore_case: bool = ..., + match_mode: StringFilterMatchMode = ..., + search: Optional[str] = ..., + ): ... + def get_expression(self) -> Optional[Expression]: ... + def get_ignore_case(self) -> bool: ... + def get_match_mode(self) -> StringFilterMatchMode: ... + def get_search(self) -> Optional[str]: ... + @classmethod + def new(cls, expression: Optional[Expression] = None) -> StringFilter: ... + def set_expression(self, expression: Optional[Expression] = None) -> None: ... + def set_ignore_case(self, ignore_case: bool) -> None: ... + def set_match_mode(self, mode: StringFilterMatchMode) -> None: ... + def set_search(self, search: Optional[str] = None) -> None: ... + +class StringFilterClass(GObject.GPointer): + """ + :Constructors: + + :: + + StringFilterClass() + """ + + parent_class: FilterClass = ... + +class StringList(GObject.Object, Gio.ListModel, Buildable): + """ + :Constructors: + + :: + + StringList(**properties) + new(strings:list=None) -> Gtk.StringList + + Object GtkStringList + + Properties from GtkStringList: + item-type -> GType: item-type + n-items -> guint: n-items + strings -> GStrv: strings + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + item_type: Type + n_items: int + strings: list[str] + + props: Props = ... + def __init__(self, strings: Sequence[str] = ...): ... + def append(self, string: str) -> None: ... + def get_string(self, position: int) -> Optional[str]: ... + @classmethod + def new(cls, strings: Optional[Sequence[str]] = None) -> StringList: ... + def remove(self, position: int) -> None: ... + def splice( + self, position: int, n_removals: int, additions: Optional[Sequence[str]] = None + ) -> None: ... + def take(self, string: str) -> None: ... + +class StringListClass(GObject.GPointer): + """ + :Constructors: + + :: + + StringListClass() + """ + + parent_class: GObject.ObjectClass = ... + +class StringObject(GObject.Object): + """ + :Constructors: + + :: + + StringObject(**properties) + new(string:str) -> Gtk.StringObject + + Object GtkStringObject + + Properties from GtkStringObject: + string -> gchararray: string + + Signals from GObject: + notify (GParam) + """ + + class Props: + string: str + + props: Props = ... + def get_string(self) -> str: ... + @classmethod + def new(cls, string: str) -> StringObject: ... + +class StringObjectClass(GObject.GPointer): + """ + :Constructors: + + :: + + StringObjectClass() + """ + + parent_class: GObject.ObjectClass = ... + +class StringSorter(Sorter): + """ + :Constructors: + + :: + + StringSorter(**properties) + new(expression:Gtk.Expression=None) -> Gtk.StringSorter + + Object GtkStringSorter + + Properties from GtkStringSorter: + expression -> GtkExpression: expression + ignore-case -> gboolean: ignore-case + collation -> GtkCollation: collation + + Signals from GtkSorter: + changed (GtkSorterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + collation: Collation + expression: Optional[Expression] + ignore_case: bool + + props: Props = ... + def __init__( + self, + collation: Collation = ..., + expression: Optional[Expression] = ..., + ignore_case: bool = ..., + ): ... + def get_collation(self) -> Collation: ... + def get_expression(self) -> Optional[Expression]: ... + def get_ignore_case(self) -> bool: ... + @classmethod + def new(cls, expression: Optional[Expression] = None) -> StringSorter: ... + def set_collation(self, collation: Collation) -> None: ... + def set_expression(self, expression: Optional[Expression] = None) -> None: ... + def set_ignore_case(self, ignore_case: bool) -> None: ... + +class StringSorterClass(GObject.GPointer): + """ + :Constructors: + + :: + + StringSorterClass() + """ + + parent_class: SorterClass = ... + +class StyleContext(GObject.Object): + """ + :Constructors: + + :: + + StyleContext(**properties) + + Object GtkStyleContext + + Properties from GtkStyleContext: + display -> GdkDisplay: display + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Gdk.Display + + props: Props = ... + parent_object: GObject.Object = ... + def __init__(self, display: Gdk.Display = ...): ... + def add_class(self, class_name: str) -> None: ... + def add_provider(self, provider: StyleProvider, priority: int) -> None: ... + @staticmethod + def add_provider_for_display( + display: Gdk.Display, provider: StyleProvider, priority: int + ) -> None: ... + def do_changed(self) -> None: ... + def get_border(self) -> Border: ... + def get_color(self) -> Gdk.RGBA: ... + def get_display(self) -> Gdk.Display: ... + def get_margin(self) -> Border: ... + def get_padding(self) -> Border: ... + def get_scale(self) -> int: ... + def get_state(self) -> StateFlags: ... + def has_class(self, class_name: str) -> bool: ... + def lookup_color(self, color_name: str) -> Tuple[bool, Gdk.RGBA]: ... + def remove_class(self, class_name: str) -> None: ... + def remove_provider(self, provider: StyleProvider) -> None: ... + @staticmethod + def remove_provider_for_display( + display: Gdk.Display, provider: StyleProvider + ) -> None: ... + def restore(self) -> None: ... + def save(self) -> None: ... + def set_display(self, display: Gdk.Display) -> None: ... + def set_scale(self, scale: int) -> None: ... + def set_state(self, flags: StateFlags) -> None: ... + def to_string(self, flags: StyleContextPrintFlags) -> str: ... + +class StyleContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleContextClass() + """ + + parent_class: GObject.ObjectClass = ... + changed: Callable[[StyleContext], None] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class StyleProvider(GObject.GInterface): ... + +class Switch(Widget, Accessible, Actionable, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Switch(**properties) + new() -> Gtk.Widget + + Object GtkSwitch + + Signals from GtkSwitch: + activate () + state-set (gboolean) -> gboolean + + Properties from GtkSwitch: + active -> gboolean: active + state -> gboolean: state + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: bool + state: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action_name: Optional[str] + action_target: GLib.Variant + + props: Props = ... + def __init__( + self, + active: bool = ..., + state: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + ): ... + def get_active(self) -> bool: ... + def get_state(self) -> bool: ... + @classmethod + def new(cls) -> Switch: ... + def set_active(self, is_active: bool) -> None: ... + def set_state(self, state: bool) -> None: ... + +class SymbolicPaintable(GObject.GInterface): + """ + Interface GtkSymbolicPaintable + + Signals from GObject: + notify (GParam) + """ + + def snapshot_symbolic( + self, + snapshot: Gdk.Snapshot, + width: float, + height: float, + colors: Sequence[Gdk.RGBA], + ) -> None: ... + +class SymbolicPaintableInterface(GObject.GPointer): + """ + :Constructors: + + :: + + SymbolicPaintableInterface() + """ + + g_iface: GObject.TypeInterface = ... + snapshot_symbolic: Callable[ + [SymbolicPaintable, Gdk.Snapshot, float, float, Sequence[Gdk.RGBA]], None + ] = ... + +# override +class Template: + def __init__( + self, filename: str = ..., resource_path: str = ..., string: str = ... + ) -> None: ... + @classmethod + def from_file(cls, filename: str): ... + @classmethod + def from_resource(cls, resource_path: str): ... + @classmethod + def from_string(cls, string: str): ... + def __call__(self, cls): ... + + class Callback: + def __init__(self, name: str = ...) -> None: ... + def __call__(self, func: Callable[..., Any]) -> Any: ... + + class Child: ... + +class Text(Widget, Accessible, AccessibleText, Buildable, ConstraintTarget, Editable): + """ + :Constructors: + + :: + + Text(**properties) + new() -> Gtk.Widget + new_with_buffer(buffer:Gtk.EntryBuffer) -> Gtk.Widget + + Object GtkText + + Signals from GtkText: + activate () + move-cursor (GtkMovementStep, gint, gboolean) + preedit-changed (gchararray) + copy-clipboard () + insert-at-cursor (gchararray) + delete-from-cursor (GtkDeleteType, gint) + backspace () + cut-clipboard () + paste-clipboard () + toggle-overwrite () + insert-emoji () + + Properties from GtkText: + buffer -> GtkEntryBuffer: buffer + max-length -> gint: max-length + visibility -> gboolean: visibility + invisible-char -> guint: invisible-char + invisible-char-set -> gboolean: invisible-char-set + activates-default -> gboolean: activates-default + scroll-offset -> gint: scroll-offset + truncate-multiline -> gboolean: truncate-multiline + overwrite-mode -> gboolean: overwrite-mode + im-module -> gchararray: im-module + placeholder-text -> gchararray: placeholder-text + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + attributes -> PangoAttrList: attributes + tabs -> PangoTabArray: tabs + enable-emoji-completion -> gboolean: enable-emoji-completion + propagate-text-width -> gboolean: propagate-text-width + extra-menu -> GMenuModel: extra-menu + + Signals from GtkEditable: + changed () + insert-text (gchararray, gint, gpointer) + delete-text (gint, gint) + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activates_default: bool + attributes: Optional[Pango.AttrList] + buffer: EntryBuffer + enable_emoji_completion: bool + extra_menu: Optional[Gio.MenuModel] + im_module: str + input_hints: InputHints + input_purpose: InputPurpose + invisible_char: int + invisible_char_set: bool + max_length: int + overwrite_mode: bool + placeholder_text: Optional[str] + propagate_text_width: bool + scroll_offset: int + tabs: Optional[Pango.TabArray] + truncate_multiline: bool + visibility: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + cursor_position: int + editable: bool + enable_undo: bool + max_width_chars: int + selection_bound: int + text: str + width_chars: int + xalign: float + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + activates_default: bool = ..., + attributes: Optional[Pango.AttrList] = ..., + buffer: EntryBuffer = ..., + enable_emoji_completion: bool = ..., + extra_menu: Optional[Gio.MenuModel] = ..., + im_module: str = ..., + input_hints: InputHints = ..., + input_purpose: InputPurpose = ..., + invisible_char: int = ..., + invisible_char_set: bool = ..., + max_length: int = ..., + overwrite_mode: bool = ..., + placeholder_text: Optional[str] = ..., + propagate_text_width: bool = ..., + tabs: Optional[Pango.TabArray] = ..., + truncate_multiline: bool = ..., + visibility: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + editable: bool = ..., + enable_undo: bool = ..., + max_width_chars: int = ..., + text: str = ..., + width_chars: int = ..., + xalign: float = ..., + ): ... + def compute_cursor_extents( + self, position: int + ) -> Tuple[Graphene.Rect, Graphene.Rect]: ... + def get_activates_default(self) -> bool: ... + def get_attributes(self) -> Optional[Pango.AttrList]: ... + def get_buffer(self) -> EntryBuffer: ... + def get_enable_emoji_completion(self) -> bool: ... + def get_extra_menu(self) -> Optional[Gio.MenuModel]: ... + def get_input_hints(self) -> InputHints: ... + def get_input_purpose(self) -> InputPurpose: ... + def get_invisible_char(self) -> str: ... + def get_max_length(self) -> int: ... + def get_overwrite_mode(self) -> bool: ... + def get_placeholder_text(self) -> Optional[str]: ... + def get_propagate_text_width(self) -> bool: ... + def get_tabs(self) -> Optional[Pango.TabArray]: ... + def get_text_length(self) -> int: ... + def get_truncate_multiline(self) -> bool: ... + def get_visibility(self) -> bool: ... + def grab_focus_without_selecting(self) -> bool: ... + @classmethod + def new(cls) -> Text: ... + @classmethod + def new_with_buffer(cls, buffer: EntryBuffer) -> Text: ... + def set_activates_default(self, activates: bool) -> None: ... + def set_attributes(self, attrs: Optional[Pango.AttrList] = None) -> None: ... + def set_buffer(self, buffer: EntryBuffer) -> None: ... + def set_enable_emoji_completion(self, enable_emoji_completion: bool) -> None: ... + def set_extra_menu(self, model: Optional[Gio.MenuModel] = None) -> None: ... + def set_input_hints(self, hints: InputHints) -> None: ... + def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_invisible_char(self, ch: str) -> None: ... + def set_max_length(self, length: int) -> None: ... + def set_overwrite_mode(self, overwrite: bool) -> None: ... + def set_placeholder_text(self, text: Optional[str] = None) -> None: ... + def set_propagate_text_width(self, propagate_text_width: bool) -> None: ... + def set_tabs(self, tabs: Optional[Pango.TabArray] = None) -> None: ... + def set_truncate_multiline(self, truncate_multiline: bool) -> None: ... + def set_visibility(self, visible: bool) -> None: ... + def unset_invisible_char(self) -> None: ... + +class TextBuffer(GObject.Object): + """ + :Constructors: + + :: + + TextBuffer(**properties) + new(table:Gtk.TextTagTable=None) -> Gtk.TextBuffer + + Object GtkTextBuffer + + Signals from GtkTextBuffer: + changed () + insert-text (GtkTextIter, gchararray, gint) + insert-paintable (GtkTextIter, GdkPaintable) + insert-child-anchor (GtkTextIter, GtkTextChildAnchor) + delete-range (GtkTextIter, GtkTextIter) + modified-changed () + mark-set (GtkTextIter, GtkTextMark) + mark-deleted (GtkTextMark) + apply-tag (GtkTextTag, GtkTextIter, GtkTextIter) + remove-tag (GtkTextTag, GtkTextIter, GtkTextIter) + begin-user-action () + end-user-action () + paste-done (GdkClipboard) + redo () + undo () + + Properties from GtkTextBuffer: + tag-table -> GtkTextTagTable: tag-table + text -> gchararray: text + has-selection -> gboolean: has-selection + cursor-position -> gint: cursor-position + can-undo -> gboolean: can-undo + can-redo -> gboolean: can-redo + enable-undo -> gboolean: enable-undo + + Signals from GObject: + notify (GParam) + """ + + class Props: + can_redo: bool + can_undo: bool + cursor_position: int + enable_undo: bool + has_selection: bool + tag_table: TextTagTable + text: str + + props: Props = ... + parent_instance: GObject.Object = ... + priv: TextBufferPrivate = ... + def __init__( + self, enable_undo: bool = ..., tag_table: TextTagTable = ..., text: str = ... + ): ... + def add_mark(self, mark: TextMark, where: TextIter) -> None: ... + def add_selection_clipboard(self, clipboard: Gdk.Clipboard) -> None: ... + def apply_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def apply_tag_by_name(self, name: str, start: TextIter, end: TextIter) -> None: ... + def backspace( + self, iter: TextIter, interactive: bool, default_editable: bool + ) -> bool: ... + def begin_irreversible_action(self) -> None: ... + def begin_user_action(self) -> None: ... + def copy_clipboard(self, clipboard: Gdk.Clipboard) -> None: ... + def create_child_anchor(self, iter: TextIter) -> TextChildAnchor: ... + def create_mark(self, mark_name, where, left_gravity=False): ... # FIXME Function + # override + def create_tag(self, tag_name: str, **properties) -> None: ... + def cut_clipboard( + self, clipboard: Gdk.Clipboard, default_editable: bool + ) -> None: ... + def delete(self, start: TextIter, end: TextIter) -> None: ... + def delete_interactive( + self, start_iter: TextIter, end_iter: TextIter, default_editable: bool + ) -> bool: ... + def delete_mark(self, mark: TextMark) -> None: ... + def delete_mark_by_name(self, name: str) -> None: ... + def delete_selection(self, interactive: bool, default_editable: bool) -> bool: ... + def do_apply_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def do_begin_user_action(self) -> None: ... + def do_changed(self) -> None: ... + def do_delete_range(self, start: TextIter, end: TextIter) -> None: ... + def do_end_user_action(self) -> None: ... + def do_insert_child_anchor( + self, iter: TextIter, anchor: TextChildAnchor + ) -> None: ... + def do_insert_paintable(self, iter: TextIter, paintable: Gdk.Paintable) -> None: ... + def do_insert_text( + self, pos: TextIter, new_text: str, new_text_length: int + ) -> None: ... + def do_mark_deleted(self, mark: TextMark) -> None: ... + def do_mark_set(self, location: TextIter, mark: TextMark) -> None: ... + def do_modified_changed(self) -> None: ... + def do_paste_done(self, clipboard: Gdk.Clipboard) -> None: ... + def do_redo(self) -> None: ... + def do_remove_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def do_undo(self) -> None: ... + def end_irreversible_action(self) -> None: ... + def end_user_action(self) -> None: ... + def get_bounds(self) -> Tuple[TextIter, TextIter]: ... + def get_can_redo(self) -> bool: ... + def get_can_undo(self) -> bool: ... + def get_char_count(self) -> int: ... + def get_enable_undo(self) -> bool: ... + def get_end_iter(self) -> TextIter: ... + def get_has_selection(self) -> bool: ... + def get_insert(self) -> TextMark: ... + def get_iter_at_child_anchor(self, anchor: TextChildAnchor) -> TextIter: ... + def get_iter_at_line(self, line_number: int) -> Tuple[bool, TextIter]: ... + def get_iter_at_line_index( + self, line_number: int, byte_index: int + ) -> Tuple[bool, TextIter]: ... + def get_iter_at_line_offset( + self, line_number: int, char_offset: int + ) -> Tuple[bool, TextIter]: ... + def get_iter_at_mark(self, mark: TextMark) -> TextIter: ... + def get_iter_at_offset(self, char_offset: int) -> TextIter: ... + def get_line_count(self) -> int: ... + def get_mark(self, name: str) -> Optional[TextMark]: ... + def get_max_undo_levels(self) -> int: ... + def get_modified(self) -> bool: ... + def get_selection_bound(self) -> TextMark: ... + def get_selection_bounds( + self, + ) -> Tuple[TextIter, TextIter] | Tuple[()]: ... # CHECK Wrapped function + def get_selection_content(self) -> Gdk.ContentProvider: ... + def get_slice( + self, start: TextIter, end: TextIter, include_hidden_chars: bool + ) -> str: ... + def get_start_iter(self) -> TextIter: ... + def get_tag_table(self) -> TextTagTable: ... + def get_text( + self, start: TextIter, end: TextIter, include_hidden_chars: bool + ) -> str: ... + def insert(self, iter, text, length=-1): ... # FIXME Function + def insert_at_cursor(self, text, length=-1): ... # FIXME Function + def insert_child_anchor(self, iter: TextIter, anchor: TextChildAnchor) -> None: ... + def insert_interactive( + self, iter: TextIter, text: str, len: int, default_editable: bool + ) -> bool: ... + def insert_interactive_at_cursor( + self, text: str, len: int, default_editable: bool + ) -> bool: ... + def insert_markup(self, iter: TextIter, markup: str, len: int) -> None: ... + def insert_paintable(self, iter: TextIter, paintable: Gdk.Paintable) -> None: ... + def insert_range(self, iter: TextIter, start: TextIter, end: TextIter) -> None: ... + def insert_range_interactive( + self, iter: TextIter, start: TextIter, end: TextIter, default_editable: bool + ) -> bool: ... + def insert_with_tags(self, iter, text, *tags): ... # FIXME Function + # override + def insert_with_tags_by_name( + self, iter: TextIter, text: str, *tags: Any + ) -> None: ... + def move_mark(self, mark: TextMark, where: TextIter) -> None: ... + def move_mark_by_name(self, name: str, where: TextIter) -> None: ... + @classmethod + def new(cls, table: Optional[TextTagTable] = None) -> TextBuffer: ... + def paste_clipboard( + self, + clipboard: Gdk.Clipboard, + override_location: Optional[TextIter], + default_editable: bool, + ) -> None: ... + def place_cursor(self, where: TextIter) -> None: ... + def redo(self) -> None: ... + def remove_all_tags(self, start: TextIter, end: TextIter) -> None: ... + def remove_selection_clipboard(self, clipboard: Gdk.Clipboard) -> None: ... + def remove_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def remove_tag_by_name(self, name: str, start: TextIter, end: TextIter) -> None: ... + def select_range(self, ins: TextIter, bound: TextIter) -> None: ... + def set_enable_undo(self, enable_undo: bool) -> None: ... + def set_max_undo_levels(self, max_undo_levels: int) -> None: ... + def set_modified(self, setting: bool) -> None: ... + # override + def set_text(self, text: str, len: int = -1) -> None: ... + def undo(self) -> None: ... + +class TextBufferClass(GObject.GPointer): + """ + :Constructors: + + :: + + TextBufferClass() + """ + + parent_class: GObject.ObjectClass = ... + insert_text: Callable[[TextBuffer, TextIter, str, int], None] = ... + insert_paintable: Callable[[TextBuffer, TextIter, Gdk.Paintable], None] = ... + insert_child_anchor: Callable[[TextBuffer, TextIter, TextChildAnchor], None] = ... + delete_range: Callable[[TextBuffer, TextIter, TextIter], None] = ... + changed: Callable[[TextBuffer], None] = ... + modified_changed: Callable[[TextBuffer], None] = ... + mark_set: Callable[[TextBuffer, TextIter, TextMark], None] = ... + mark_deleted: Callable[[TextBuffer, TextMark], None] = ... + apply_tag: Callable[[TextBuffer, TextTag, TextIter, TextIter], None] = ... + remove_tag: Callable[[TextBuffer, TextTag, TextIter, TextIter], None] = ... + begin_user_action: Callable[[TextBuffer], None] = ... + end_user_action: Callable[[TextBuffer], None] = ... + paste_done: Callable[[TextBuffer, Gdk.Clipboard], None] = ... + undo: Callable[[TextBuffer], None] = ... + redo: Callable[[TextBuffer], None] = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class TextBufferPrivate(GObject.GPointer): ... + +class TextChildAnchor(GObject.Object): + """ + :Constructors: + + :: + + TextChildAnchor(**properties) + new() -> Gtk.TextChildAnchor + new_with_replacement(character:str) -> Gtk.TextChildAnchor + + Object GtkTextChildAnchor + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + segment: None = ... + def get_deleted(self) -> bool: ... + def get_widgets(self) -> list[Widget]: ... + @classmethod + def new(cls) -> TextChildAnchor: ... + @classmethod + def new_with_replacement(cls, character: str) -> TextChildAnchor: ... + +class TextChildAnchorClass(GObject.GPointer): + """ + :Constructors: + + :: + + TextChildAnchorClass() + """ + + parent_class: GObject.ObjectClass = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class TextIter(GObject.GBoxed): + """ + :Constructors: + + :: + + TextIter() + """ + + dummy1: None = ... + dummy2: None = ... + dummy3: int = ... + dummy4: int = ... + dummy5: int = ... + dummy6: int = ... + dummy7: int = ... + dummy8: int = ... + dummy9: None = ... + dummy10: None = ... + dummy11: int = ... + dummy12: int = ... + dummy13: int = ... + dummy14: None = ... + def assign(self, other: TextIter) -> None: ... + def backward_char(self) -> bool: ... + def backward_chars(self, count: int) -> bool: ... + def backward_cursor_position(self) -> bool: ... + def backward_cursor_positions(self, count: int) -> bool: ... + def backward_find_char( + self, + pred: Callable[..., bool], + limit: Optional[TextIter] = None, + *user_data: Any, + ) -> bool: ... + def backward_line(self) -> bool: ... + def backward_lines(self, count: int) -> bool: ... + def backward_search( + self, str: str, flags: TextSearchFlags, limit: Optional[TextIter] = None + ) -> Optional[Tuple[TextIter, TextIter]]: ... # CHECK Wrapped function + def backward_sentence_start(self) -> bool: ... + def backward_sentence_starts(self, count: int) -> bool: ... + def backward_to_tag_toggle(self, tag: Optional[TextTag] = None) -> bool: ... + def backward_visible_cursor_position(self) -> bool: ... + def backward_visible_cursor_positions(self, count: int) -> bool: ... + def backward_visible_line(self) -> bool: ... + def backward_visible_lines(self, count: int) -> bool: ... + def backward_visible_word_start(self) -> bool: ... + def backward_visible_word_starts(self, count: int) -> bool: ... + def backward_word_start(self) -> bool: ... + def backward_word_starts(self, count: int) -> bool: ... + def can_insert(self, default_editability: bool) -> bool: ... + def compare(self, rhs: TextIter) -> int: ... + def copy(self) -> TextIter: ... + def editable(self, default_setting: bool) -> bool: ... + def ends_line(self) -> bool: ... + def ends_sentence(self) -> bool: ... + def ends_tag(self, tag: Optional[TextTag] = None) -> bool: ... + def ends_word(self) -> bool: ... + def equal(self, rhs: TextIter) -> bool: ... + def forward_char(self) -> bool: ... + def forward_chars(self, count: int) -> bool: ... + def forward_cursor_position(self) -> bool: ... + def forward_cursor_positions(self, count: int) -> bool: ... + def forward_find_char( + self, + pred: Callable[..., bool], + limit: Optional[TextIter] = None, + *user_data: Any, + ) -> bool: ... + def forward_line(self) -> bool: ... + def forward_lines(self, count: int) -> bool: ... + def forward_search( + self, str: str, flags: TextSearchFlags, limit: Optional[TextIter] = None + ) -> Optional[Tuple[TextIter, TextIter]]: ... # CHECK Wrapped function + def forward_sentence_end(self) -> bool: ... + def forward_sentence_ends(self, count: int) -> bool: ... + def forward_to_end(self) -> None: ... + def forward_to_line_end(self) -> bool: ... + def forward_to_tag_toggle(self, tag: Optional[TextTag] = None) -> bool: ... + def forward_visible_cursor_position(self) -> bool: ... + def forward_visible_cursor_positions(self, count: int) -> bool: ... + def forward_visible_line(self) -> bool: ... + def forward_visible_lines(self, count: int) -> bool: ... + def forward_visible_word_end(self) -> bool: ... + def forward_visible_word_ends(self, count: int) -> bool: ... + def forward_word_end(self) -> bool: ... + def forward_word_ends(self, count: int) -> bool: ... + def free(self) -> None: ... + def get_buffer(self) -> TextBuffer: ... + def get_bytes_in_line(self) -> int: ... + def get_char(self) -> str: ... + def get_chars_in_line(self) -> int: ... + def get_child_anchor(self) -> Optional[TextChildAnchor]: ... + def get_language(self) -> Pango.Language: ... + def get_line(self) -> int: ... + def get_line_index(self) -> int: ... + def get_line_offset(self) -> int: ... + def get_marks(self) -> list[TextMark]: ... + def get_offset(self) -> int: ... + def get_paintable(self) -> Optional[Gdk.Paintable]: ... + def get_slice(self, end: TextIter) -> str: ... + def get_tags(self) -> list[TextTag]: ... + def get_text(self, end: TextIter) -> str: ... + def get_toggled_tags(self, toggled_on: bool) -> list[TextTag]: ... + def get_visible_line_index(self) -> int: ... + def get_visible_line_offset(self) -> int: ... + def get_visible_slice(self, end: TextIter) -> str: ... + def get_visible_text(self, end: TextIter) -> str: ... + def has_tag(self, tag: TextTag) -> bool: ... + def in_range(self, start: TextIter, end: TextIter) -> bool: ... + def inside_sentence(self) -> bool: ... + def inside_word(self) -> bool: ... + def is_cursor_position(self) -> bool: ... + def is_end(self) -> bool: ... + def is_start(self) -> bool: ... + def order(self, second: TextIter) -> None: ... + def set_line(self, line_number: int) -> None: ... + def set_line_index(self, byte_on_line: int) -> None: ... + def set_line_offset(self, char_on_line: int) -> None: ... + def set_offset(self, char_offset: int) -> None: ... + def set_visible_line_index(self, byte_on_line: int) -> None: ... + def set_visible_line_offset(self, char_on_line: int) -> None: ... + def starts_line(self) -> bool: ... + def starts_sentence(self) -> bool: ... + def starts_tag(self, tag: Optional[TextTag] = None) -> bool: ... + def starts_word(self) -> bool: ... + def toggles_tag(self, tag: Optional[TextTag] = None) -> bool: ... + +class TextMark(GObject.Object): + """ + :Constructors: + + :: + + TextMark(**properties) + new(name:str=None, left_gravity:bool) -> Gtk.TextMark + + Object GtkTextMark + + Properties from GtkTextMark: + name -> gchararray: name + left-gravity -> gboolean: left-gravity + + Signals from GObject: + notify (GParam) + """ + + class Props: + left_gravity: bool + name: Optional[str] + + props: Props = ... + parent_instance: GObject.Object = ... + segment: None = ... + def __init__(self, left_gravity: bool = ..., name: str = ...): ... + def get_buffer(self) -> Optional[TextBuffer]: ... + def get_deleted(self) -> bool: ... + def get_left_gravity(self) -> bool: ... + def get_name(self) -> Optional[str]: ... + def get_visible(self) -> bool: ... + @classmethod + def new(cls, name: Optional[str], left_gravity: bool) -> TextMark: ... + def set_visible(self, setting: bool) -> None: ... + +class TextMarkClass(GObject.GPointer): + """ + :Constructors: + + :: + + TextMarkClass() + """ + + parent_class: GObject.ObjectClass = ... + padding: list[None] = ... + +class TextTag(GObject.Object): + """ + :Constructors: + + :: + + TextTag(**properties) + new(name:str=None) -> Gtk.TextTag + + Object GtkTextTag + + Properties from GtkTextTag: + name -> gchararray: name + background -> gchararray: background + foreground -> gchararray: foreground + background-rgba -> GdkRGBA: background-rgba + foreground-rgba -> GdkRGBA: foreground-rgba + font -> gchararray: font + font-desc -> PangoFontDescription: font-desc + family -> gchararray: family + style -> PangoStyle: style + variant -> PangoVariant: variant + weight -> gint: weight + stretch -> PangoStretch: stretch + size -> gint: size + size-points -> gdouble: size-points + scale -> gdouble: scale + pixels-above-lines -> gint: pixels-above-lines + pixels-below-lines -> gint: pixels-below-lines + pixels-inside-wrap -> gint: pixels-inside-wrap + line-height -> gfloat: line-height + editable -> gboolean: editable + wrap-mode -> GtkWrapMode: wrap-mode + justification -> GtkJustification: justification + direction -> GtkTextDirection: direction + left-margin -> gint: left-margin + indent -> gint: indent + strikethrough -> gboolean: strikethrough + strikethrough-rgba -> GdkRGBA: strikethrough-rgba + right-margin -> gint: right-margin + underline -> PangoUnderline: underline + underline-rgba -> GdkRGBA: underline-rgba + overline -> PangoOverline: overline + overline-rgba -> GdkRGBA: overline-rgba + rise -> gint: rise + background-full-height -> gboolean: background-full-height + language -> gchararray: language + tabs -> PangoTabArray: tabs + invisible -> gboolean: invisible + paragraph-background -> gchararray: paragraph-background + paragraph-background-rgba -> GdkRGBA: paragraph-background-rgba + fallback -> gboolean: fallback + letter-spacing -> gint: letter-spacing + font-features -> gchararray: font-features + allow-breaks -> gboolean: allow-breaks + show-spaces -> PangoShowFlags: show-spaces + insert-hyphens -> gboolean: insert-hyphens + text-transform -> PangoTextTransform: text-transform + word -> gboolean: word + sentence -> gboolean: sentence + accumulative-margin -> gboolean: accumulative-margin + background-set -> gboolean: background-set + foreground-set -> gboolean: foreground-set + family-set -> gboolean: family-set + style-set -> gboolean: style-set + variant-set -> gboolean: variant-set + weight-set -> gboolean: weight-set + stretch-set -> gboolean: stretch-set + size-set -> gboolean: size-set + scale-set -> gboolean: scale-set + pixels-above-lines-set -> gboolean: pixels-above-lines-set + pixels-below-lines-set -> gboolean: pixels-below-lines-set + pixels-inside-wrap-set -> gboolean: pixels-inside-wrap-set + line-height-set -> gboolean: line-height-set + editable-set -> gboolean: editable-set + wrap-mode-set -> gboolean: wrap-mode-set + justification-set -> gboolean: justification-set + left-margin-set -> gboolean: left-margin-set + indent-set -> gboolean: indent-set + strikethrough-set -> gboolean: strikethrough-set + strikethrough-rgba-set -> gboolean: strikethrough-rgba-set + right-margin-set -> gboolean: right-margin-set + underline-set -> gboolean: underline-set + underline-rgba-set -> gboolean: underline-rgba-set + overline-set -> gboolean: overline-set + overline-rgba-set -> gboolean: overline-rgba-set + rise-set -> gboolean: rise-set + background-full-height-set -> gboolean: background-full-height-set + language-set -> gboolean: language-set + tabs-set -> gboolean: tabs-set + invisible-set -> gboolean: invisible-set + paragraph-background-set -> gboolean: paragraph-background-set + fallback-set -> gboolean: fallback-set + letter-spacing-set -> gboolean: letter-spacing-set + font-features-set -> gboolean: font-features-set + allow-breaks-set -> gboolean: allow-breaks-set + show-spaces-set -> gboolean: show-spaces-set + insert-hyphens-set -> gboolean: insert-hyphens-set + text-transform-set -> gboolean: text-transform-set + sentence-set -> gboolean: sentence-set + word-set -> gboolean: word-set + + Signals from GObject: + notify (GParam) + """ + + class Props: + accumulative_margin: bool + allow_breaks: bool + allow_breaks_set: bool + background_full_height: bool + background_full_height_set: bool + background_rgba: Gdk.RGBA + background_set: bool + direction: TextDirection + editable: bool + editable_set: bool + fallback: bool + fallback_set: bool + family: str + family_set: bool + font: str + font_desc: Pango.FontDescription + font_features: str + font_features_set: bool + foreground_rgba: Gdk.RGBA + foreground_set: bool + indent: int + indent_set: bool + insert_hyphens: bool + insert_hyphens_set: bool + invisible: bool + invisible_set: bool + justification: Justification + justification_set: bool + language: str + language_set: bool + left_margin: int + left_margin_set: bool + letter_spacing: int + letter_spacing_set: bool + line_height: float + line_height_set: bool + name: str + overline: Pango.Overline + overline_rgba: Gdk.RGBA + overline_rgba_set: bool + overline_set: bool + paragraph_background_rgba: Gdk.RGBA + paragraph_background_set: bool + pixels_above_lines: int + pixels_above_lines_set: bool + pixels_below_lines: int + pixels_below_lines_set: bool + pixels_inside_wrap: int + pixels_inside_wrap_set: bool + right_margin: int + right_margin_set: bool + rise: int + rise_set: bool + scale: float + scale_set: bool + sentence: bool + sentence_set: bool + show_spaces: Pango.ShowFlags + show_spaces_set: bool + size: int + size_points: float + size_set: bool + stretch: Pango.Stretch + stretch_set: bool + strikethrough: bool + strikethrough_rgba: Gdk.RGBA + strikethrough_rgba_set: bool + strikethrough_set: bool + style: Pango.Style + style_set: bool + tabs: Pango.TabArray + tabs_set: bool + text_transform: Pango.TextTransform + text_transform_set: bool + underline: Pango.Underline + underline_rgba: Gdk.RGBA + underline_rgba_set: bool + underline_set: bool + variant: Pango.Variant + variant_set: bool + weight: int + weight_set: bool + word: bool + word_set: bool + wrap_mode: WrapMode + wrap_mode_set: bool + background: str + foreground: str + paragraph_background: str + + props: Props = ... + parent_instance: GObject.Object = ... + priv: TextTagPrivate = ... + def __init__( + self, + accumulative_margin: bool = ..., + allow_breaks: bool = ..., + allow_breaks_set: bool = ..., + background: str = ..., + background_full_height: bool = ..., + background_full_height_set: bool = ..., + background_rgba: Gdk.RGBA = ..., + background_set: bool = ..., + direction: TextDirection = ..., + editable: bool = ..., + editable_set: bool = ..., + fallback: bool = ..., + fallback_set: bool = ..., + family: str = ..., + family_set: bool = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + font_features: str = ..., + font_features_set: bool = ..., + foreground: str = ..., + foreground_rgba: Gdk.RGBA = ..., + foreground_set: bool = ..., + indent: int = ..., + indent_set: bool = ..., + insert_hyphens: bool = ..., + insert_hyphens_set: bool = ..., + invisible: bool = ..., + invisible_set: bool = ..., + justification: Justification = ..., + justification_set: bool = ..., + language: str = ..., + language_set: bool = ..., + left_margin: int = ..., + left_margin_set: bool = ..., + letter_spacing: int = ..., + letter_spacing_set: bool = ..., + line_height: float = ..., + line_height_set: bool = ..., + name: str = ..., + overline: Pango.Overline = ..., + overline_rgba: Gdk.RGBA = ..., + overline_rgba_set: bool = ..., + overline_set: bool = ..., + paragraph_background: str = ..., + paragraph_background_rgba: Gdk.RGBA = ..., + paragraph_background_set: bool = ..., + pixels_above_lines: int = ..., + pixels_above_lines_set: bool = ..., + pixels_below_lines: int = ..., + pixels_below_lines_set: bool = ..., + pixels_inside_wrap: int = ..., + pixels_inside_wrap_set: bool = ..., + right_margin: int = ..., + right_margin_set: bool = ..., + rise: int = ..., + rise_set: bool = ..., + scale: float = ..., + scale_set: bool = ..., + sentence: bool = ..., + sentence_set: bool = ..., + show_spaces: Pango.ShowFlags = ..., + show_spaces_set: bool = ..., + size: int = ..., + size_points: float = ..., + size_set: bool = ..., + stretch: Pango.Stretch = ..., + stretch_set: bool = ..., + strikethrough: bool = ..., + strikethrough_rgba: Gdk.RGBA = ..., + strikethrough_rgba_set: bool = ..., + strikethrough_set: bool = ..., + style: Pango.Style = ..., + style_set: bool = ..., + tabs: Pango.TabArray = ..., + tabs_set: bool = ..., + text_transform: Pango.TextTransform = ..., + text_transform_set: bool = ..., + underline: Pango.Underline = ..., + underline_rgba: Gdk.RGBA = ..., + underline_rgba_set: bool = ..., + underline_set: bool = ..., + variant: Pango.Variant = ..., + variant_set: bool = ..., + weight: int = ..., + weight_set: bool = ..., + word: bool = ..., + word_set: bool = ..., + wrap_mode: WrapMode = ..., + wrap_mode_set: bool = ..., + ): ... + def changed(self, size_changed: bool) -> None: ... + def get_priority(self) -> int: ... + @classmethod + def new(cls, name: Optional[str] = None) -> TextTag: ... + def set_priority(self, priority: int) -> None: ... + +class TextTagClass(GObject.GPointer): + """ + :Constructors: + + :: + + TextTagClass() + """ + + parent_class: GObject.ObjectClass = ... + padding: list[None] = ... + +class TextTagPrivate(GObject.GPointer): ... + +class TextTagTable(GObject.Object, Buildable): + """ + :Constructors: + + :: + + TextTagTable(**properties) + new() -> Gtk.TextTagTable + + Object GtkTextTagTable + + Signals from GtkTextTagTable: + tag-changed (GtkTextTag, gboolean) + tag-added (GtkTextTag) + tag-removed (GtkTextTag) + + Signals from GObject: + notify (GParam) + """ + + def add(self, tag: TextTag) -> bool: ... + def foreach(self, func: Callable[..., None], *data: Any) -> None: ... + def get_size(self) -> int: ... + def lookup(self, name: str) -> Optional[TextTag]: ... + @classmethod + def new(cls) -> TextTagTable: ... + def remove(self, tag: TextTag) -> None: ... + +class TextView( + Widget, Accessible, AccessibleText, Buildable, ConstraintTarget, Scrollable +): + """ + :Constructors: + + :: + + TextView(**properties) + new() -> Gtk.Widget + new_with_buffer(buffer:Gtk.TextBuffer) -> Gtk.Widget + + Object GtkTextView + + Signals from GtkTextView: + move-cursor (GtkMovementStep, gint, gboolean) + select-all (gboolean) + preedit-changed (gchararray) + copy-clipboard () + insert-at-cursor (gchararray) + delete-from-cursor (GtkDeleteType, gint) + backspace () + cut-clipboard () + paste-clipboard () + toggle-overwrite () + insert-emoji () + move-viewport (GtkScrollStep, gint) + set-anchor () + toggle-cursor-visible () + extend-selection (GtkTextExtendSelection, GtkTextIter, GtkTextIter, GtkTextIter) -> gboolean + + Properties from GtkTextView: + pixels-above-lines -> gint: pixels-above-lines + pixels-below-lines -> gint: pixels-below-lines + pixels-inside-wrap -> gint: pixels-inside-wrap + editable -> gboolean: editable + wrap-mode -> GtkWrapMode: wrap-mode + justification -> GtkJustification: justification + left-margin -> gint: left-margin + right-margin -> gint: right-margin + top-margin -> gint: top-margin + bottom-margin -> gint: bottom-margin + indent -> gint: indent + tabs -> PangoTabArray: tabs + cursor-visible -> gboolean: cursor-visible + buffer -> GtkTextBuffer: buffer + overwrite -> gboolean: overwrite + accepts-tab -> gboolean: accepts-tab + im-module -> gchararray: im-module + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + monospace -> gboolean: monospace + extra-menu -> GMenuModel: extra-menu + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + accepts_tab: bool + bottom_margin: int + buffer: TextBuffer + cursor_visible: bool + editable: bool + extra_menu: Gio.MenuModel + im_module: str + indent: int + input_hints: InputHints + input_purpose: InputPurpose + justification: Justification + left_margin: int + monospace: bool + overwrite: bool + pixels_above_lines: int + pixels_below_lines: int + pixels_inside_wrap: int + right_margin: int + tabs: Optional[Pango.TabArray] + top_margin: int + wrap_mode: WrapMode + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + parent_instance: Widget = ... + priv: TextViewPrivate = ... + def __init__( + self, + accepts_tab: bool = ..., + bottom_margin: int = ..., + buffer: Optional[TextBuffer] = ..., + cursor_visible: bool = ..., + editable: bool = ..., + extra_menu: Optional[Gio.MenuModel] = ..., + im_module: str = ..., + indent: int = ..., + input_hints: InputHints = ..., + input_purpose: InputPurpose = ..., + justification: Justification = ..., + left_margin: int = ..., + monospace: bool = ..., + overwrite: bool = ..., + pixels_above_lines: int = ..., + pixels_below_lines: int = ..., + pixels_inside_wrap: int = ..., + right_margin: int = ..., + tabs: Pango.TabArray = ..., + top_margin: int = ..., + wrap_mode: WrapMode = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + def add_child_at_anchor(self, child: Widget, anchor: TextChildAnchor) -> None: ... + def add_overlay(self, child: Widget, xpos: int, ypos: int) -> None: ... + def backward_display_line(self, iter: TextIter) -> bool: ... + def backward_display_line_start(self, iter: TextIter) -> bool: ... + def buffer_to_window_coords( + self, win: TextWindowType, buffer_x: int, buffer_y: int + ) -> Tuple[int, int]: ... + def do_backspace(self) -> None: ... + def do_copy_clipboard(self) -> None: ... + def do_cut_clipboard(self) -> None: ... + def do_delete_from_cursor(self, type: DeleteType, count: int) -> None: ... + def do_extend_selection( + self, + granularity: TextExtendSelection, + location: TextIter, + start: TextIter, + end: TextIter, + ) -> bool: ... + def do_insert_at_cursor(self, str: str) -> None: ... + def do_insert_emoji(self) -> None: ... + def do_move_cursor( + self, step: MovementStep, count: int, extend_selection: bool + ) -> None: ... + def do_paste_clipboard(self) -> None: ... + def do_set_anchor(self) -> None: ... + def do_snapshot_layer(self, layer: TextViewLayer, snapshot: Snapshot) -> None: ... + def do_toggle_overwrite(self) -> None: ... + def forward_display_line(self, iter: TextIter) -> bool: ... + def forward_display_line_end(self, iter: TextIter) -> bool: ... + def get_accepts_tab(self) -> bool: ... + def get_bottom_margin(self) -> int: ... + def get_buffer(self) -> TextBuffer: ... + def get_cursor_locations( + self, iter: Optional[TextIter] = None + ) -> Tuple[Gdk.Rectangle, Gdk.Rectangle]: ... + def get_cursor_visible(self) -> bool: ... + def get_editable(self) -> bool: ... + def get_extra_menu(self) -> Gio.MenuModel: ... + def get_gutter(self, win: TextWindowType) -> Optional[Widget]: ... + def get_indent(self) -> int: ... + def get_input_hints(self) -> InputHints: ... + def get_input_purpose(self) -> InputPurpose: ... + def get_iter_at_location(self, x: int, y: int) -> Tuple[bool, TextIter]: ... + def get_iter_at_position(self, x: int, y: int) -> Tuple[bool, TextIter, int]: ... + def get_iter_location(self, iter: TextIter) -> Gdk.Rectangle: ... + def get_justification(self) -> Justification: ... + def get_left_margin(self) -> int: ... + def get_line_at_y(self, y: int) -> Tuple[TextIter, int]: ... + def get_line_yrange(self, iter: TextIter) -> Tuple[int, int]: ... + def get_ltr_context(self) -> Pango.Context: ... + def get_monospace(self) -> bool: ... + def get_overwrite(self) -> bool: ... + def get_pixels_above_lines(self) -> int: ... + def get_pixels_below_lines(self) -> int: ... + def get_pixels_inside_wrap(self) -> int: ... + def get_right_margin(self) -> int: ... + def get_rtl_context(self) -> Pango.Context: ... + def get_tabs(self) -> Optional[Pango.TabArray]: ... + def get_top_margin(self) -> int: ... + def get_visible_rect(self) -> Gdk.Rectangle: ... + def get_wrap_mode(self) -> WrapMode: ... + def im_context_filter_keypress(self, event: Gdk.Event) -> bool: ... + def move_mark_onscreen(self, mark: TextMark) -> bool: ... + def move_overlay(self, child: Widget, xpos: int, ypos: int) -> None: ... + def move_visually(self, iter: TextIter, count: int) -> bool: ... + @classmethod + def new(cls) -> TextView: ... + @classmethod + def new_with_buffer(cls, buffer: TextBuffer) -> TextView: ... + def place_cursor_onscreen(self) -> bool: ... + def remove(self, child: Widget) -> None: ... + def reset_cursor_blink(self) -> None: ... + def reset_im_context(self) -> None: ... + def scroll_mark_onscreen(self, mark: TextMark) -> None: ... + def scroll_to_iter( + self, + iter: TextIter, + within_margin: float, + use_align: bool, + xalign: float, + yalign: float, + ) -> bool: ... + def scroll_to_mark( + self, + mark: TextMark, + within_margin: float, + use_align: bool, + xalign: float, + yalign: float, + ) -> None: ... + def set_accepts_tab(self, accepts_tab: bool) -> None: ... + def set_bottom_margin(self, bottom_margin: int) -> None: ... + def set_buffer(self, buffer: Optional[TextBuffer] = None) -> None: ... + def set_cursor_visible(self, setting: bool) -> None: ... + def set_editable(self, setting: bool) -> None: ... + def set_extra_menu(self, model: Optional[Gio.MenuModel] = None) -> None: ... + def set_gutter( + self, win: TextWindowType, widget: Optional[Widget] = None + ) -> None: ... + def set_indent(self, indent: int) -> None: ... + def set_input_hints(self, hints: InputHints) -> None: ... + def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_justification(self, justification: Justification) -> None: ... + def set_left_margin(self, left_margin: int) -> None: ... + def set_monospace(self, monospace: bool) -> None: ... + def set_overwrite(self, overwrite: bool) -> None: ... + def set_pixels_above_lines(self, pixels_above_lines: int) -> None: ... + def set_pixels_below_lines(self, pixels_below_lines: int) -> None: ... + def set_pixels_inside_wrap(self, pixels_inside_wrap: int) -> None: ... + def set_right_margin(self, right_margin: int) -> None: ... + def set_tabs(self, tabs: Pango.TabArray) -> None: ... + def set_top_margin(self, top_margin: int) -> None: ... + def set_wrap_mode(self, wrap_mode: WrapMode) -> None: ... + def starts_display_line(self, iter: TextIter) -> bool: ... + def window_to_buffer_coords( + self, win: TextWindowType, window_x: int, window_y: int + ) -> Tuple[int, int]: ... + +class TextViewClass(GObject.GPointer): + """ + :Constructors: + + :: + + TextViewClass() + """ + + parent_class: WidgetClass = ... + move_cursor: Callable[[TextView, MovementStep, int, bool], None] = ... + set_anchor: Callable[[TextView], None] = ... + insert_at_cursor: Callable[[TextView, str], None] = ... + delete_from_cursor: Callable[[TextView, DeleteType, int], None] = ... + backspace: Callable[[TextView], None] = ... + cut_clipboard: Callable[[TextView], None] = ... + copy_clipboard: Callable[[TextView], None] = ... + paste_clipboard: Callable[[TextView], None] = ... + toggle_overwrite: Callable[[TextView], None] = ... + create_buffer: None = ... + snapshot_layer: Callable[[TextView, TextViewLayer, Snapshot], None] = ... + extend_selection: Callable[ + [TextView, TextExtendSelection, TextIter, TextIter, TextIter], bool + ] = ... + insert_emoji: Callable[[TextView], None] = ... + padding: list[None] = ... + +class TextViewPrivate(GObject.GPointer): ... + +class ToggleButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + ToggleButton(**properties) + new() -> Gtk.Widget + new_with_label(label:str) -> Gtk.Widget + new_with_mnemonic(label:str) -> Gtk.Widget + + Object GtkToggleButton + + Signals from GtkToggleButton: + toggled () + + Properties from GtkToggleButton: + active -> gboolean: active + group -> GtkToggleButton: group + + Signals from GtkButton: + activate () + clicked () + + Properties from GtkButton: + label -> gchararray: label + has-frame -> gboolean: has-frame + use-underline -> gboolean: use-underline + icon-name -> gchararray: icon-name + child -> GtkWidget: child + can-shrink -> gboolean: can-shrink + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + active: bool + can_shrink: bool + child: Optional[Widget] + has_frame: bool + icon_name: Optional[str] + label: Optional[str] + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + action_name: Optional[str] + action_target: GLib.Variant + group: Optional[ToggleButton] + + props: Props = ... + button: Button = ... + def __init__( + self, + active: bool = ..., + group: Optional[ToggleButton] = ..., + can_shrink: bool = ..., + child: Optional[Widget] = ..., + has_frame: bool = ..., + icon_name: str = ..., + label: str = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + ): ... + def do_toggled(self) -> None: ... + def get_active(self) -> bool: ... + @classmethod + def new(cls) -> ToggleButton: ... + @classmethod + def new_with_label(cls, label: str) -> ToggleButton: ... + @classmethod + def new_with_mnemonic(cls, label: str) -> ToggleButton: ... + def set_active(self, is_active: bool) -> None: ... + def set_group(self, group: Optional[ToggleButton] = None) -> None: ... + def toggled(self) -> None: ... + +class ToggleButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + ToggleButtonClass() + """ + + parent_class: ButtonClass = ... + toggled: Callable[[ToggleButton], None] = ... + padding: list[None] = ... + +class Tooltip(GObject.Object): + """ + :Constructors: + + :: + + Tooltip(**properties) + + Object GtkTooltip + + Signals from GObject: + notify (GParam) + """ + + def set_custom(self, custom_widget: Optional[Widget] = None) -> None: ... + def set_icon(self, paintable: Optional[Gdk.Paintable] = None) -> None: ... + def set_icon_from_gicon(self, gicon: Optional[Gio.Icon] = None) -> None: ... + def set_icon_from_icon_name(self, icon_name: Optional[str] = None) -> None: ... + def set_markup(self, markup: Optional[str] = None) -> None: ... + def set_text(self, text: Optional[str] = None) -> None: ... + def set_tip_area(self, rect: Gdk.Rectangle) -> None: ... + +class TreeDragDest(GObject.GInterface): + """ + Interface GtkTreeDragDest + """ + + def drag_data_received(self, dest: TreePath, value: Any) -> bool: ... + def row_drop_possible(self, dest_path: TreePath, value: Any) -> bool: ... + +class TreeDragDestIface(GObject.GPointer): + """ + :Constructors: + + :: + + TreeDragDestIface() + """ + + g_iface: GObject.TypeInterface = ... + drag_data_received: Callable[[TreeDragDest, TreePath, Any], bool] = ... + row_drop_possible: Callable[[TreeDragDest, TreePath, Any], bool] = ... + +class TreeDragSource(GObject.GInterface): + """ + Interface GtkTreeDragSource + """ + + def drag_data_delete(self, path: TreePath) -> bool: ... + def drag_data_get(self, path: TreePath) -> Optional[Gdk.ContentProvider]: ... + def row_draggable(self, path: TreePath) -> bool: ... + +class TreeDragSourceIface(GObject.GPointer): + """ + :Constructors: + + :: + + TreeDragSourceIface() + """ + + g_iface: GObject.TypeInterface = ... + row_draggable: Callable[[TreeDragSource, TreePath], bool] = ... + drag_data_get: Callable[ + [TreeDragSource, TreePath], Optional[Gdk.ContentProvider] + ] = ... + drag_data_delete: Callable[[TreeDragSource, TreePath], bool] = ... + +class TreeExpander(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + TreeExpander(**properties) + new() -> Gtk.Widget + + Object GtkTreeExpander + + Properties from GtkTreeExpander: + child -> GtkWidget: child + hide-expander -> gboolean: hide-expander + indent-for-depth -> gboolean: indent-for-depth + indent-for-icon -> gboolean: indent-for-icon + item -> GObject: item + list-row -> GtkTreeListRow: list-row + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + hide_expander: bool + indent_for_depth: bool + indent_for_icon: bool + item: Optional[GObject.Object] + list_row: Optional[TreeListRow] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + hide_expander: bool = ..., + indent_for_depth: bool = ..., + indent_for_icon: bool = ..., + list_row: Optional[TreeListRow] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_hide_expander(self) -> bool: ... + def get_indent_for_depth(self) -> bool: ... + def get_indent_for_icon(self) -> bool: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_list_row(self) -> Optional[TreeListRow]: ... + @classmethod + def new(cls) -> TreeExpander: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_hide_expander(self, hide_expander: bool) -> None: ... + def set_indent_for_depth(self, indent_for_depth: bool) -> None: ... + def set_indent_for_icon(self, indent_for_icon: bool) -> None: ... + def set_list_row(self, list_row: Optional[TreeListRow] = None) -> None: ... + +class TreeExpanderClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeExpanderClass() + """ + + parent_class: WidgetClass = ... + +class TreeIter(GObject.GBoxed): + """ + :Constructors: + + :: + + TreeIter() + """ + + stamp: int = ... + user_data: None = ... + user_data2: None = ... + user_data3: None = ... + def copy(self) -> TreeIter: ... + def free(self) -> None: ... + +class TreeListModel(GObject.Object, Gio.ListModel): + """ + :Constructors: + + :: + + TreeListModel(**properties) + new(root:Gio.ListModel, passthrough:bool, autoexpand:bool, create_func:Gtk.TreeListModelCreateModelFunc, user_data=None) -> Gtk.TreeListModel + + Object GtkTreeListModel + + Properties from GtkTreeListModel: + autoexpand -> gboolean: autoexpand + item-type -> GType: item-type + model -> GListModel: model + n-items -> guint: n-items + passthrough -> gboolean: passthrough + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GObject: + notify (GParam) + """ + + class Props: + autoexpand: bool + item_type: Type + model: Gio.ListModel + n_items: int + passthrough: bool + + props: Props = ... + def __init__(self, autoexpand: bool = ..., passthrough: bool = ...): ... + def get_autoexpand(self) -> bool: ... + def get_child_row(self, position: int) -> Optional[TreeListRow]: ... + def get_model(self) -> Gio.ListModel: ... + def get_passthrough(self) -> bool: ... + def get_row(self, position: int) -> Optional[TreeListRow]: ... + @classmethod + def new( + cls, + root: Gio.ListModel, + passthrough: bool, + autoexpand: bool, + create_func: Callable[..., Optional[Gio.ListModel]], + *user_data: Any, + ) -> TreeListModel: ... + def set_autoexpand(self, autoexpand: bool) -> None: ... + +class TreeListModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeListModelClass() + """ + + parent_class: GObject.ObjectClass = ... + +class TreeListRow(GObject.Object): + """ + :Constructors: + + :: + + TreeListRow(**properties) + + Object GtkTreeListRow + + Properties from GtkTreeListRow: + children -> GListModel: children + depth -> guint: depth + expandable -> gboolean: expandable + expanded -> gboolean: expanded + item -> GObject: item + + Signals from GObject: + notify (GParam) + """ + + class Props: + children: Optional[Gio.ListModel] + depth: int + expandable: bool + expanded: bool + item: Optional[GObject.Object] + + props: Props = ... + def __init__(self, expanded: bool = ...): ... + def get_child_row(self, position: int) -> Optional[TreeListRow]: ... + def get_children(self) -> Optional[Gio.ListModel]: ... + def get_depth(self) -> int: ... + def get_expanded(self) -> bool: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_parent(self) -> Optional[TreeListRow]: ... + def get_position(self) -> int: ... + def is_expandable(self) -> bool: ... + def set_expanded(self, expanded: bool) -> None: ... + +class TreeListRowClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeListRowClass() + """ + + parent_class: GObject.ObjectClass = ... + +class TreeListRowSorter(Sorter): + """ + :Constructors: + + :: + + TreeListRowSorter(**properties) + new(sorter:Gtk.Sorter=None) -> Gtk.TreeListRowSorter + + Object GtkTreeListRowSorter + + Properties from GtkTreeListRowSorter: + sorter -> GtkSorter: sorter + + Signals from GtkSorter: + changed (GtkSorterChange) + + Signals from GObject: + notify (GParam) + """ + + class Props: + sorter: Optional[Sorter] + + props: Props = ... + def __init__(self, sorter: Optional[Sorter] = ...): ... + def get_sorter(self) -> Optional[Sorter]: ... + @classmethod + def new(cls, sorter: Optional[Sorter] = None) -> TreeListRowSorter: ... + def set_sorter(self, sorter: Optional[Sorter] = None) -> None: ... + +class TreeListRowSorterClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeListRowSorterClass() + """ + + parent_class: SorterClass = ... + +class TreeModel(GObject.GInterface): + """ + Interface GtkTreeModel + + Signals from GObject: + notify (GParam) + """ + + def filter_new(self, root: Optional[TreePath] = None) -> TreeModel: ... + def foreach(self, func: Callable[..., bool], *user_data: Any) -> None: ... + def get(self, treeiter, *columns): ... # FIXME Function + def get_column_type(self, index_: int) -> Type: ... + def get_flags(self) -> TreeModelFlags: ... + def get_iter(self, path): ... # FIXME Function + def get_iter_first(self) -> Optional[TreeIter]: ... # CHECK Wrapped function + def get_iter_from_string( + self, path_string: str + ) -> Optional[TreeIter]: ... # CHECK Wrapped function + def get_n_columns(self) -> int: ... + def get_path(self, iter: TreeIter) -> TreePath: ... + def get_string_from_iter(self, iter: TreeIter) -> Optional[str]: ... + def get_value(self, iter: TreeIter, column: int) -> Any: ... + def iter_children( + self, parent: Optional[TreeIter] = None + ) -> Optional[TreeIter]: ... # CHECK Wrapped function + def iter_has_child(self, iter: TreeIter) -> bool: ... + def iter_n_children(self, iter: Optional[TreeIter] = None) -> int: ... + def iter_next(self, aiter): ... # FIXME Function + def iter_nth_child( + self, parent: Optional[TreeIter], n: int + ) -> Optional[TreeIter]: ... # CHECK Wrapped function + def iter_parent( + self, child: TreeIter + ) -> Optional[TreeIter]: ... # CHECK Wrapped function + def iter_previous(self, aiter): ... # FIXME Function + def ref_node(self, iter: TreeIter) -> None: ... + def row_changed(self, path, iter): ... # FIXME Function + def row_deleted(self, path): ... # FIXME Function + def row_has_child_toggled(self, path, iter): ... # FIXME Function + def row_inserted(self, path, iter): ... # FIXME Function + def rows_reordered(self, path, iter, new_order): ... # FIXME Function + def set_row(self, treeiter, row): ... # FIXME Function + def sort_new_with_model(self): ... # FIXME Function + def unref_node(self, iter: TreeIter) -> None: ... + +class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): + """ + :Constructors: + + :: + + TreeModelFilter(**properties) + + Object GtkTreeModelFilter + + Properties from GtkTreeModelFilter: + child-model -> GtkTreeModel: child-model + virtual-root -> GtkTreePath: virtual-root + + Signals from GtkTreeModel: + row-changed (GtkTreePath, GtkTreeIter) + row-inserted (GtkTreePath, GtkTreeIter) + row-has-child-toggled (GtkTreePath, GtkTreeIter) + row-deleted (GtkTreePath) + rows-reordered (GtkTreePath, GtkTreeIter, gpointer) + + Signals from GObject: + notify (GParam) + """ + + class Props: + child_model: TreeModel + virtual_root: TreePath + + props: Props = ... + parent: GObject.Object = ... + priv: TreeModelFilterPrivate = ... + def __init__(self, child_model: TreeModel = ..., virtual_root: TreePath = ...): ... + def clear_cache(self) -> None: ... + def convert_child_iter_to_iter( + self, child_iter: TreeIter + ) -> Tuple[bool, TreeIter]: ... + def convert_child_path_to_path( + self, child_path: TreePath + ) -> Optional[TreePath]: ... + def convert_iter_to_child_iter(self, filter_iter: TreeIter) -> TreeIter: ... + def convert_path_to_child_path( + self, filter_path: TreePath + ) -> Optional[TreePath]: ... + def do_modify( + self, child_model: TreeModel, iter: TreeIter, value: Any, column: int + ) -> None: ... + def do_visible(self, child_model: TreeModel, iter: TreeIter) -> bool: ... + def get_model(self) -> TreeModel: ... + def refilter(self) -> None: ... + def set_modify_func( + self, types: Sequence[Type], func: Callable[..., Any], *data: Any + ) -> None: ... + def set_value(self, iter, column, value): ... # FIXME Function + def set_visible_column(self, column: int) -> None: ... + def set_visible_func(self, func, data=None): ... # FIXME Function + +class TreeModelFilterClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeModelFilterClass() + """ + + parent_class: GObject.ObjectClass = ... + visible: Callable[[TreeModelFilter, TreeModel, TreeIter], bool] = ... + modify: Callable[[TreeModelFilter, TreeModel, TreeIter, Any, int], None] = ... + padding: list[None] = ... + +class TreeModelFilterPrivate(GObject.GPointer): ... + +class TreeModelIface(GObject.GPointer): + """ + :Constructors: + + :: + + TreeModelIface() + """ + + g_iface: GObject.TypeInterface = ... + row_changed: Callable[[TreeModel, TreePath, TreeIter], None] = ... + row_inserted: Callable[[TreeModel, TreePath, TreeIter], None] = ... + row_has_child_toggled: Callable[[TreeModel, TreePath, TreeIter], None] = ... + row_deleted: Callable[[TreeModel, TreePath], None] = ... + rows_reordered: Callable[[TreeModel, TreePath, TreeIter, int], None] = ... + get_flags: Callable[[TreeModel], TreeModelFlags] = ... + get_n_columns: Callable[[TreeModel], int] = ... + get_column_type: Callable[[TreeModel, int], Type] = ... + get_iter: Callable[[TreeModel, TreePath], Tuple[bool, TreeIter]] = ... + get_path: Callable[[TreeModel, TreeIter], TreePath] = ... + get_value: Callable[[TreeModel, TreeIter, int], Any] = ... + iter_next: Callable[[TreeModel, TreeIter], bool] = ... + iter_previous: Callable[[TreeModel, TreeIter], bool] = ... + iter_children: Callable[[TreeModel, Optional[TreeIter]], Tuple[bool, TreeIter]] = ( + ... + ) + iter_has_child: Callable[[TreeModel, TreeIter], bool] = ... + iter_n_children: Callable[[TreeModel, Optional[TreeIter]], int] = ... + iter_nth_child: Callable[ + [TreeModel, Optional[TreeIter], int], Tuple[bool, TreeIter] + ] = ... + iter_parent: Callable[[TreeModel, TreeIter], Tuple[bool, TreeIter]] = ... + ref_node: Callable[[TreeModel, TreeIter], None] = ... + unref_node: Callable[[TreeModel, TreeIter], None] = ... + +class TreeModelRow: + next = ... # FIXME Constant + parent = ... # FIXME Constant + path = ... # FIXME Constant + previous = ... # FIXME Constant + + def get_next(self): ... # FIXME Function + def get_parent(self): ... # FIXME Function + def get_previous(self): ... # FIXME Function + def iterchildren(self): ... # FIXME Function + +class TreeModelRowIter: ... + +class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable): + """ + :Constructors: + + :: + + TreeModelSort(**properties) + new_with_model(child_model:Gtk.TreeModel) -> Gtk.TreeModelSort + + Object GtkTreeModelSort + + Properties from GtkTreeModelSort: + model -> GtkTreeModel: model + + Signals from GtkTreeModel: + row-changed (GtkTreePath, GtkTreeIter) + row-inserted (GtkTreePath, GtkTreeIter) + row-has-child-toggled (GtkTreePath, GtkTreeIter) + row-deleted (GtkTreePath) + rows-reordered (GtkTreePath, GtkTreeIter, gpointer) + + Signals from GtkTreeSortable: + sort-column-changed () + + Signals from GObject: + notify (GParam) + """ + + class Props: + model: TreeModel + + props: Props = ... + parent: GObject.Object = ... + priv: TreeModelSortPrivate = ... + def __init__(self, model: TreeModel = ...): ... + def clear_cache(self) -> None: ... + def convert_child_iter_to_iter( + self, child_iter: TreeIter + ) -> Tuple[bool, TreeIter]: ... + def convert_child_path_to_path( + self, child_path: TreePath + ) -> Optional[TreePath]: ... + def convert_iter_to_child_iter(self, sorted_iter: TreeIter) -> TreeIter: ... + def convert_path_to_child_path( + self, sorted_path: TreePath + ) -> Optional[TreePath]: ... + def get_model(self) -> TreeModel: ... + def iter_is_valid(self, iter: TreeIter) -> bool: ... + @classmethod + def new_with_model(cls, child_model: TreeModel) -> TreeModelSort: ... + def reset_default_sort_func(self) -> None: ... + +class TreeModelSortClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeModelSortClass() + """ + + parent_class: GObject.ObjectClass = ... + padding: list[None] = ... + +class TreeModelSortPrivate(GObject.GPointer): ... + +class TreePath(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gtk.TreePath + new_first() -> Gtk.TreePath + new_from_indices(indices:list) -> Gtk.TreePath + new_from_string(path:str) -> Gtk.TreePath or None + """ + + def append_index(self, index_: int) -> None: ... + def compare(self, b: TreePath) -> int: ... + def copy(self) -> TreePath: ... + def down(self) -> None: ... + def free(self) -> None: ... + def get_depth(self) -> int: ... + def get_indices(self) -> Optional[list[int]]: ... + def is_ancestor(self, descendant: TreePath) -> bool: ... + def is_descendant(self, ancestor: TreePath) -> bool: ... + @classmethod + def new(cls) -> TreePath: ... + @classmethod + def new_first(cls) -> TreePath: ... + @classmethod + def new_from_indices(cls, indices: Sequence[int]) -> TreePath: ... + @classmethod + def new_from_string(cls, path: str) -> Optional[TreePath]: ... + def next(self) -> None: ... + def prepend_index(self, index_: int) -> None: ... + def prev(self) -> bool: ... + def to_string(self) -> Optional[str]: ... + def up(self) -> bool: ... + +class TreeRowData(GObject.GBoxed): ... + +class TreeRowReference(GObject.GBoxed): + """ + :Constructors: + + :: + + new(model:Gtk.TreeModel, path:Gtk.TreePath) -> Gtk.TreeRowReference or None + new_proxy(proxy:GObject.Object, model:Gtk.TreeModel, path:Gtk.TreePath) -> Gtk.TreeRowReference or None + """ + + def copy(self) -> TreeRowReference: ... + @staticmethod + def deleted(proxy: GObject.Object, path: TreePath) -> None: ... + def free(self) -> None: ... + def get_model(self) -> TreeModel: ... + def get_path(self) -> Optional[TreePath]: ... + @staticmethod + def inserted(proxy: GObject.Object, path: TreePath) -> None: ... + @classmethod + def new(cls, model: TreeModel, path: TreePath) -> Optional[TreeRowReference]: ... + @classmethod + def new_proxy( + cls, proxy: GObject.Object, model: TreeModel, path: TreePath + ) -> Optional[TreeRowReference]: ... + def valid(self) -> bool: ... + +class TreeSelection(GObject.Object): + """ + :Constructors: + + :: + + TreeSelection(**properties) + + Object GtkTreeSelection + + Signals from GtkTreeSelection: + changed () + + Properties from GtkTreeSelection: + mode -> GtkSelectionMode: mode + + Signals from GObject: + notify (GParam) + """ + + class Props: + mode: SelectionMode + + props: Props = ... + def __init__(self, mode: SelectionMode = ...): ... + def count_selected_rows(self) -> int: ... + def get_mode(self) -> SelectionMode: ... + def get_selected(self): ... # FIXME Function + def get_selected_rows(self): ... # FIXME Function + def get_tree_view(self) -> TreeView: ... + def iter_is_selected(self, iter: TreeIter) -> bool: ... + def path_is_selected(self, path: TreePath) -> bool: ... + def select_all(self) -> None: ... + def select_iter(self, iter: TreeIter) -> None: ... + def select_path(self, path): ... # FIXME Function + def select_range(self, start_path: TreePath, end_path: TreePath) -> None: ... + def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... + def set_mode(self, type: SelectionMode) -> None: ... + def set_select_function( + self, func: Optional[Callable[..., bool]] = None, *data: Any + ) -> None: ... + def unselect_all(self) -> None: ... + def unselect_iter(self, iter: TreeIter) -> None: ... + def unselect_path(self, path: TreePath) -> None: ... + def unselect_range(self, start_path: TreePath, end_path: TreePath) -> None: ... + +class TreeSortable(GObject.GInterface): + """ + Interface GtkTreeSortable + + Signals from GObject: + notify (GParam) + """ + + def get_sort_column_id( + self, + ) -> Tuple[int, SortType] | Tuple[None, None]: ... # CHECK Wrapped function + def has_default_sort_func(self) -> bool: ... + def set_default_sort_func(self, sort_func, user_data=None): ... # FIXME Function + def set_sort_column_id(self, sort_column_id: int, order: SortType) -> None: ... + def set_sort_func( + self, sort_column_id, sort_func, user_data=None + ): ... # FIXME Function + def sort_column_changed(self) -> None: ... + +class TreeSortableIface(GObject.GPointer): + """ + :Constructors: + + :: + + TreeSortableIface() + """ + + g_iface: GObject.TypeInterface = ... + sort_column_changed: Callable[[TreeSortable], None] = ... + get_sort_column_id: Callable[[TreeSortable], Tuple[bool, int, SortType]] = ... + set_sort_column_id: Callable[[TreeSortable, int, SortType], None] = ... + set_sort_func: Callable[..., None] = ... + set_default_sort_func: Callable[..., None] = ... + has_default_sort_func: Callable[[TreeSortable], bool] = ... + +class TreeStore( + GObject.Object, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable +): + """ + :Constructors: + + :: + + TreeStore(**properties) + new(types:list) -> Gtk.TreeStore + + Object GtkTreeStore + + Signals from GtkTreeModel: + row-changed (GtkTreePath, GtkTreeIter) + row-inserted (GtkTreePath, GtkTreeIter) + row-has-child-toggled (GtkTreePath, GtkTreeIter) + row-deleted (GtkTreePath) + rows-reordered (GtkTreePath, GtkTreeIter, gpointer) + + Signals from GtkTreeSortable: + sort-column-changed () + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: TreeStorePrivate = ... + def append(self, parent, row=None): ... # FIXME Function + def clear(self) -> None: ... + def insert(self, parent, position, row=None): ... # FIXME Function + def insert_after(self, parent, sibling, row=None): ... # FIXME Function + def insert_before(self, parent, sibling, row=None): ... # FIXME Function + def insert_with_values( + self, + parent: Optional[TreeIter], + position: int, + columns: Sequence[int], + values: Sequence[Any], + ) -> TreeIter: ... + def is_ancestor(self, iter: TreeIter, descendant: TreeIter) -> bool: ... + def iter_depth(self, iter: TreeIter) -> int: ... + def iter_is_valid(self, iter: TreeIter) -> bool: ... + def move_after( + self, iter: TreeIter, position: Optional[TreeIter] = None + ) -> None: ... + def move_before( + self, iter: TreeIter, position: Optional[TreeIter] = None + ) -> None: ... + @classmethod + def new(cls, types: Sequence[Type]) -> TreeStore: ... + def prepend(self, parent, row=None): ... # FIXME Function + def remove(self, iter: TreeIter) -> bool: ... + def set(self, treeiter, *args): ... # FIXME Function + def set_column_types(self, types: Sequence[Type]) -> None: ... + def set_value(self, treeiter, column, value): ... # FIXME Function + def swap(self, a: TreeIter, b: TreeIter) -> None: ... + +class TreeStoreClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeStoreClass() + """ + + parent_class: GObject.ObjectClass = ... + padding: list[None] = ... + +class TreeStorePrivate(GObject.GPointer): ... + +class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): + """ + :Constructors: + + :: + + TreeView(**properties) + new() -> Gtk.Widget + new_with_model(model:Gtk.TreeModel) -> Gtk.Widget + + Object GtkTreeView + + Signals from GtkTreeView: + move-cursor (GtkMovementStep, gint, gboolean, gboolean) -> gboolean + select-all () -> gboolean + unselect-all () -> gboolean + row-activated (GtkTreePath, GtkTreeViewColumn) + toggle-cursor-row () -> gboolean + test-expand-row (GtkTreeIter, GtkTreePath) -> gboolean + test-collapse-row (GtkTreeIter, GtkTreePath) -> gboolean + row-expanded (GtkTreeIter, GtkTreePath) + row-collapsed (GtkTreeIter, GtkTreePath) + columns-changed () + cursor-changed () + select-cursor-row (gboolean) -> gboolean + expand-collapse-cursor-row (gboolean, gboolean, gboolean) -> gboolean + select-cursor-parent () -> gboolean + start-interactive-search () -> gboolean + + Properties from GtkTreeView: + model -> GtkTreeModel: model + headers-visible -> gboolean: headers-visible + headers-clickable -> gboolean: headers-clickable + expander-column -> GtkTreeViewColumn: expander-column + reorderable -> gboolean: reorderable + enable-search -> gboolean: enable-search + search-column -> gint: search-column + fixed-height-mode -> gboolean: fixed-height-mode + hover-selection -> gboolean: hover-selection + hover-expand -> gboolean: hover-expand + show-expanders -> gboolean: show-expanders + level-indentation -> gint: level-indentation + rubber-banding -> gboolean: rubber-banding + enable-grid-lines -> GtkTreeViewGridLines: enable-grid-lines + enable-tree-lines -> gboolean: enable-tree-lines + tooltip-column -> gint: tooltip-column + activate-on-single-click -> gboolean: activate-on-single-click + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + activate_on_single_click: bool + enable_grid_lines: TreeViewGridLines + enable_search: bool + enable_tree_lines: bool + expander_column: Optional[TreeViewColumn] + fixed_height_mode: bool + headers_clickable: bool + headers_visible: bool + hover_expand: bool + hover_selection: bool + level_indentation: int + model: Optional[TreeModel] + reorderable: bool + rubber_banding: bool + search_column: int + show_expanders: bool + tooltip_column: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + activate_on_single_click: bool = ..., + enable_grid_lines: TreeViewGridLines = ..., + enable_search: bool = ..., + enable_tree_lines: bool = ..., + expander_column: Optional[TreeViewColumn] = ..., + fixed_height_mode: bool = ..., + headers_clickable: bool = ..., + headers_visible: bool = ..., + hover_expand: bool = ..., + hover_selection: bool = ..., + level_indentation: int = ..., + model: Optional[TreeModel] = ..., + reorderable: bool = ..., + rubber_banding: bool = ..., + search_column: int = ..., + show_expanders: bool = ..., + tooltip_column: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + def append_column(self, column: TreeViewColumn) -> int: ... + def collapse_all(self) -> None: ... + def collapse_row(self, path: TreePath) -> bool: ... + def columns_autosize(self) -> None: ... + def convert_bin_window_to_tree_coords( + self, bx: int, by: int + ) -> Tuple[int, int]: ... + def convert_bin_window_to_widget_coords( + self, bx: int, by: int + ) -> Tuple[int, int]: ... + def convert_tree_to_bin_window_coords( + self, tx: int, ty: int + ) -> Tuple[int, int]: ... + def convert_tree_to_widget_coords(self, tx: int, ty: int) -> Tuple[int, int]: ... + def convert_widget_to_bin_window_coords( + self, wx: int, wy: int + ) -> Tuple[int, int]: ... + def convert_widget_to_tree_coords(self, wx: int, wy: int) -> Tuple[int, int]: ... + def create_row_drag_icon(self, path: TreePath) -> Optional[Gdk.Paintable]: ... + def do_columns_changed(self) -> None: ... + def do_cursor_changed(self) -> None: ... + def do_expand_collapse_cursor_row( + self, logical: bool, expand: bool, open_all: bool + ) -> bool: ... + def do_move_cursor( + self, step: MovementStep, count: int, extend: bool, modify: bool + ) -> bool: ... + def do_row_activated( + self, path: TreePath, column: Optional[TreeViewColumn] = None + ) -> None: ... + def do_row_collapsed(self, iter: TreeIter, path: TreePath) -> None: ... + def do_row_expanded(self, iter: TreeIter, path: TreePath) -> None: ... + def do_select_all(self) -> bool: ... + def do_select_cursor_parent(self) -> bool: ... + def do_select_cursor_row(self, start_editing: bool) -> bool: ... + def do_start_interactive_search(self) -> bool: ... + def do_test_collapse_row(self, iter: TreeIter, path: TreePath) -> bool: ... + def do_test_expand_row(self, iter: TreeIter, path: TreePath) -> bool: ... + def do_toggle_cursor_row(self) -> bool: ... + def do_unselect_all(self) -> bool: ... + def enable_model_drag_dest( + self, formats: Gdk.ContentFormats, actions: Gdk.DragAction + ) -> None: ... + def enable_model_drag_source( + self, + start_button_mask: Gdk.ModifierType, + formats: Gdk.ContentFormats, + actions: Gdk.DragAction, + ) -> None: ... + def expand_all(self) -> None: ... + def expand_row(self, path: TreePath, open_all: bool) -> bool: ... + def expand_to_path(self, path: TreePath) -> None: ... + def get_activate_on_single_click(self) -> bool: ... + def get_background_area( + self, path: Optional[TreePath] = None, column: Optional[TreeViewColumn] = None + ) -> Gdk.Rectangle: ... + def get_cell_area(self, path, column=None): ... # FIXME Function + def get_column(self, n: int) -> Optional[TreeViewColumn]: ... + def get_columns(self) -> list[TreeViewColumn]: ... + def get_cursor(self) -> Tuple[TreePath, TreeViewColumn]: ... + def get_dest_row_at_pos( + self, drag_x: int, drag_y: int + ) -> Optional[Tuple[TreePath, TreeViewDropPosition]]: ... # CHECK Wrapped function + def get_drag_dest_row(self) -> Tuple[TreePath, TreeViewDropPosition]: ... + def get_enable_search(self) -> bool: ... + def get_enable_tree_lines(self) -> bool: ... + def get_expander_column(self) -> Optional[TreeViewColumn]: ... + def get_fixed_height_mode(self) -> bool: ... + def get_grid_lines(self) -> TreeViewGridLines: ... + def get_headers_clickable(self) -> bool: ... + def get_headers_visible(self) -> bool: ... + def get_hover_expand(self) -> bool: ... + def get_hover_selection(self) -> bool: ... + def get_level_indentation(self) -> int: ... + def get_model(self) -> Optional[TreeModel]: ... + def get_n_columns(self) -> int: ... + def get_path_at_pos( + self, x: int, y: int + ) -> Optional[ + Tuple[TreePath, TreeViewColumn, int, int] + ]: ... # CHECK Wrapped function + def get_reorderable(self) -> bool: ... + def get_rubber_banding(self) -> bool: ... + def get_search_column(self) -> int: ... + def get_search_entry(self) -> Optional[Editable]: ... + def get_selection(self) -> TreeSelection: ... + def get_show_expanders(self) -> bool: ... + def get_tooltip_column(self) -> int: ... + def get_tooltip_context( + self, x: int, y: int, keyboard_tip: bool + ) -> Tuple[bool, TreeModel, TreePath, TreeIter]: ... + def get_visible_range( + self, + ) -> Optional[Tuple[TreePath, TreePath]]: ... # CHECK Wrapped function + def get_visible_rect(self) -> Gdk.Rectangle: ... + def insert_column(self, column: TreeViewColumn, position: int) -> int: ... + def insert_column_with_attributes( + self, position, title, cell, **kwargs + ): ... # FIXME Function + def insert_column_with_data_func( + self, + position: int, + title: str, + cell: CellRenderer, + func: Callable[..., None], + *data: Any, + ) -> int: ... + def is_blank_at_pos( + self, x: int, y: int + ) -> Tuple[bool, TreePath, TreeViewColumn, int, int]: ... + def is_rubber_banding_active(self) -> bool: ... + def map_expanded_rows(self, func: Callable[..., None], *data: Any) -> None: ... + def move_column_after( + self, column: TreeViewColumn, base_column: Optional[TreeViewColumn] = None + ) -> None: ... + @classmethod + def new(cls) -> TreeView: ... + @classmethod + def new_with_model(cls, model: TreeModel) -> TreeView: ... + def remove_column(self, column: TreeViewColumn) -> int: ... + def row_activated( + self, path: TreePath, column: Optional[TreeViewColumn] = None + ) -> None: ... + def row_expanded(self, path: TreePath) -> bool: ... + def scroll_to_cell( + self, path, column=None, use_align=False, row_align=0.0, col_align=0.0 + ): ... # FIXME Function + def scroll_to_point(self, tree_x: int, tree_y: int) -> None: ... + def set_activate_on_single_click(self, single: bool) -> None: ... + def set_column_drag_function( + self, func: Optional[Callable[..., bool]] = None, *user_data: Any + ) -> None: ... + def set_cursor(self, path, column=None, start_editing=False): ... # FIXME Function + def set_cursor_on_cell( + self, + path: TreePath, + focus_column: Optional[TreeViewColumn], + focus_cell: Optional[CellRenderer], + start_editing: bool, + ) -> None: ... + def set_drag_dest_row( + self, path: Optional[TreePath], pos: TreeViewDropPosition + ) -> None: ... + def set_enable_search(self, enable_search: bool) -> None: ... + def set_enable_tree_lines(self, enabled: bool) -> None: ... + def set_expander_column(self, column: Optional[TreeViewColumn] = None) -> None: ... + def set_fixed_height_mode(self, enable: bool) -> None: ... + def set_grid_lines(self, grid_lines: TreeViewGridLines) -> None: ... + def set_headers_clickable(self, setting: bool) -> None: ... + def set_headers_visible(self, headers_visible: bool) -> None: ... + def set_hover_expand(self, expand: bool) -> None: ... + def set_hover_selection(self, hover: bool) -> None: ... + def set_level_indentation(self, indentation: int) -> None: ... + def set_model(self, model: Optional[TreeModel] = None) -> None: ... + def set_reorderable(self, reorderable: bool) -> None: ... + def set_row_separator_func( + self, func: Optional[Callable[..., bool]] = None, *data: Any + ) -> None: ... + def set_rubber_banding(self, enable: bool) -> None: ... + def set_search_column(self, column: int) -> None: ... + def set_search_entry(self, entry: Optional[Editable] = None) -> None: ... + def set_search_equal_func( + self, search_equal_func: Callable[..., bool], *search_user_data: Any + ) -> None: ... + def set_show_expanders(self, enabled: bool) -> None: ... + def set_tooltip_cell( + self, + tooltip: Tooltip, + path: Optional[TreePath] = None, + column: Optional[TreeViewColumn] = None, + cell: Optional[CellRenderer] = None, + ) -> None: ... + def set_tooltip_column(self, column: int) -> None: ... + def set_tooltip_row(self, tooltip: Tooltip, path: TreePath) -> None: ... + def unset_rows_drag_dest(self) -> None: ... + def unset_rows_drag_source(self) -> None: ... + +class TreeViewClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeViewClass() + """ + + parent_class: WidgetClass = ... + row_activated: Callable[[TreeView, TreePath, Optional[TreeViewColumn]], None] = ... + test_expand_row: Callable[[TreeView, TreeIter, TreePath], bool] = ... + test_collapse_row: Callable[[TreeView, TreeIter, TreePath], bool] = ... + row_expanded: Callable[[TreeView, TreeIter, TreePath], None] = ... + row_collapsed: Callable[[TreeView, TreeIter, TreePath], None] = ... + columns_changed: Callable[[TreeView], None] = ... + cursor_changed: Callable[[TreeView], None] = ... + move_cursor: Callable[[TreeView, MovementStep, int, bool, bool], bool] = ... + select_all: Callable[[TreeView], bool] = ... + unselect_all: Callable[[TreeView], bool] = ... + select_cursor_row: Callable[[TreeView, bool], bool] = ... + toggle_cursor_row: Callable[[TreeView], bool] = ... + expand_collapse_cursor_row: Callable[[TreeView, bool, bool, bool], bool] = ... + select_cursor_parent: Callable[[TreeView], bool] = ... + start_interactive_search: Callable[[TreeView], bool] = ... + _reserved: list[None] = ... + +class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): + """ + :Constructors: + + :: + + TreeViewColumn(**properties) + new() -> Gtk.TreeViewColumn + new_with_area(area:Gtk.CellArea) -> Gtk.TreeViewColumn + + Object GtkTreeViewColumn + + Signals from GtkTreeViewColumn: + clicked () + + Properties from GtkTreeViewColumn: + visible -> gboolean: visible + resizable -> gboolean: resizable + x-offset -> gint: x-offset + width -> gint: width + spacing -> gint: spacing + sizing -> GtkTreeViewColumnSizing: sizing + fixed-width -> gint: fixed-width + min-width -> gint: min-width + max-width -> gint: max-width + title -> gchararray: title + expand -> gboolean: expand + clickable -> gboolean: clickable + widget -> GtkWidget: widget + alignment -> gfloat: alignment + reorderable -> gboolean: reorderable + sort-indicator -> gboolean: sort-indicator + sort-order -> GtkSortType: sort-order + sort-column-id -> gint: sort-column-id + cell-area -> GtkCellArea: cell-area + + Signals from GObject: + notify (GParam) + """ + + class Props: + alignment: float + cell_area: CellArea + clickable: bool + expand: bool + fixed_width: int + max_width: int + min_width: int + reorderable: bool + resizable: bool + sizing: TreeViewColumnSizing + sort_column_id: int + sort_indicator: bool + sort_order: SortType + spacing: int + title: str + visible: bool + widget: Optional[Widget] + width: int + x_offset: int + + props: Props = ... + def __init__( + self, + alignment: float = ..., + cell_area: CellArea = ..., + clickable: bool = ..., + expand: bool = ..., + fixed_width: int = ..., + max_width: int = ..., + min_width: int = ..., + reorderable: bool = ..., + resizable: bool = ..., + sizing: TreeViewColumnSizing = ..., + sort_column_id: int = ..., + sort_indicator: bool = ..., + sort_order: SortType = ..., + spacing: int = ..., + title: str = ..., + visible: bool = ..., + widget: Optional[Widget] = ..., + ): ... + def add_attribute( + self, cell_renderer: CellRenderer, attribute: str, column: int + ) -> None: ... + def cell_get_position( + self, cell_renderer: CellRenderer + ) -> Optional[Tuple[int, int]]: ... # CHECK Wrapped function + def cell_get_size(self) -> Tuple[int, int, int, int]: ... + def cell_is_visible(self) -> bool: ... + def cell_set_cell_data( + self, + tree_model: TreeModel, + iter: TreeIter, + is_expander: bool, + is_expanded: bool, + ) -> None: ... + def clear(self) -> None: ... + def clear_attributes(self, cell_renderer: CellRenderer) -> None: ... + def clicked(self) -> None: ... + def focus_cell(self, cell: CellRenderer) -> None: ... + def get_alignment(self) -> float: ... + def get_button(self) -> Widget: ... + def get_clickable(self) -> bool: ... + def get_expand(self) -> bool: ... + def get_fixed_width(self) -> int: ... + def get_max_width(self) -> int: ... + def get_min_width(self) -> int: ... + def get_reorderable(self) -> bool: ... + def get_resizable(self) -> bool: ... + def get_sizing(self) -> TreeViewColumnSizing: ... + def get_sort_column_id(self) -> int: ... + def get_sort_indicator(self) -> bool: ... + def get_sort_order(self) -> SortType: ... + def get_spacing(self) -> int: ... + def get_title(self) -> str: ... + def get_tree_view(self) -> Optional[Widget]: ... + def get_visible(self) -> bool: ... + def get_widget(self) -> Optional[Widget]: ... + def get_width(self) -> int: ... + def get_x_offset(self) -> int: ... + @classmethod + def new(cls) -> TreeViewColumn: ... + @classmethod + def new_with_area(cls, area: CellArea) -> TreeViewColumn: ... + def pack_end(self, cell: CellRenderer, expand: bool) -> None: ... + def pack_start(self, cell: CellRenderer, expand: bool) -> None: ... + def queue_resize(self) -> None: ... + def set_alignment(self, xalign: float) -> None: ... + def set_attributes(self, cell_renderer, **attributes): ... # FIXME Function + def set_cell_data_func( + self, cell_renderer, func, func_data=None + ): ... # FIXME Function + def set_clickable(self, clickable: bool) -> None: ... + def set_expand(self, expand: bool) -> None: ... + def set_fixed_width(self, fixed_width: int) -> None: ... + def set_max_width(self, max_width: int) -> None: ... + def set_min_width(self, min_width: int) -> None: ... + def set_reorderable(self, reorderable: bool) -> None: ... + def set_resizable(self, resizable: bool) -> None: ... + def set_sizing(self, type: TreeViewColumnSizing) -> None: ... + def set_sort_column_id(self, sort_column_id: int) -> None: ... + def set_sort_indicator(self, setting: bool) -> None: ... + def set_sort_order(self, order: SortType) -> None: ... + def set_spacing(self, spacing: int) -> None: ... + def set_title(self, title: str) -> None: ... + def set_visible(self, visible: bool) -> None: ... + def set_widget(self, widget: Optional[Widget] = None) -> None: ... + +class UriLauncher(GObject.Object): + """ + :Constructors: + + :: + + UriLauncher(**properties) + new(uri:str=None) -> Gtk.UriLauncher + + Object GtkUriLauncher + + Properties from GtkUriLauncher: + uri -> gchararray: uri + + Signals from GObject: + notify (GParam) + """ + + class Props: + uri: Optional[str] + + props: Props = ... + def __init__(self, uri: Optional[str] = ...): ... + def get_uri(self) -> Optional[str]: ... + def launch( + self, + parent: Optional[Window] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def launch_finish(self, result: Gio.AsyncResult) -> bool: ... + @classmethod + def new(cls, uri: Optional[str] = None) -> UriLauncher: ... + def set_uri(self, uri: Optional[str] = None) -> None: ... + +class UriLauncherClass(GObject.GPointer): + """ + :Constructors: + + :: + + UriLauncherClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Video(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Video(**properties) + new() -> Gtk.Widget + new_for_file(file:Gio.File=None) -> Gtk.Widget + new_for_filename(filename:str=None) -> Gtk.Widget + new_for_media_stream(stream:Gtk.MediaStream=None) -> Gtk.Widget + new_for_resource(resource_path:str=None) -> Gtk.Widget + + Object GtkVideo + + Properties from GtkVideo: + autoplay -> gboolean: autoplay + file -> GFile: file + loop -> gboolean: loop + media-stream -> GtkMediaStream: media-stream + graphics-offload -> GtkGraphicsOffloadEnabled: graphics-offload + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + autoplay: bool + file: Optional[Gio.File] + graphics_offload: GraphicsOffloadEnabled + loop: bool + media_stream: Optional[MediaStream] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + autoplay: bool = ..., + file: Optional[Gio.File] = ..., + graphics_offload: GraphicsOffloadEnabled = ..., + loop: bool = ..., + media_stream: Optional[MediaStream] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_autoplay(self) -> bool: ... + def get_file(self) -> Optional[Gio.File]: ... + def get_graphics_offload(self) -> GraphicsOffloadEnabled: ... + def get_loop(self) -> bool: ... + def get_media_stream(self) -> Optional[MediaStream]: ... + @classmethod + def new(cls) -> Video: ... + @classmethod + def new_for_file(cls, file: Optional[Gio.File] = None) -> Video: ... + @classmethod + def new_for_filename(cls, filename: Optional[str] = None) -> Video: ... + @classmethod + def new_for_media_stream(cls, stream: Optional[MediaStream] = None) -> Video: ... + @classmethod + def new_for_resource(cls, resource_path: Optional[str] = None) -> Video: ... + def set_autoplay(self, autoplay: bool) -> None: ... + def set_file(self, file: Optional[Gio.File] = None) -> None: ... + def set_filename(self, filename: Optional[str] = None) -> None: ... + def set_graphics_offload(self, enabled: GraphicsOffloadEnabled) -> None: ... + def set_loop(self, loop: bool) -> None: ... + def set_media_stream(self, stream: Optional[MediaStream] = None) -> None: ... + def set_resource(self, resource_path: Optional[str] = None) -> None: ... + +class VideoClass(GObject.GPointer): + """ + :Constructors: + + :: + + VideoClass() + """ + + parent_class: WidgetClass = ... + +class Viewport(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): + """ + :Constructors: + + :: + + Viewport(**properties) + new(hadjustment:Gtk.Adjustment=None, vadjustment:Gtk.Adjustment=None) -> Gtk.Widget + + Object GtkViewport + + Properties from GtkViewport: + scroll-to-focus -> gboolean: scroll-to-focus + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + scroll_to_focus: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + hadjustment: Optional[Adjustment] + hscroll_policy: ScrollablePolicy + vadjustment: Optional[Adjustment] + vscroll_policy: ScrollablePolicy + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + scroll_to_focus: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + hadjustment: Optional[Adjustment] = ..., + hscroll_policy: ScrollablePolicy = ..., + vadjustment: Optional[Adjustment] = ..., + vscroll_policy: ScrollablePolicy = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_scroll_to_focus(self) -> bool: ... + @classmethod + def new( + cls, + hadjustment: Optional[Adjustment] = None, + vadjustment: Optional[Adjustment] = None, + ) -> Viewport: ... + def scroll_to( + self, descendant: Widget, scroll: Optional[ScrollInfo] = None + ) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_scroll_to_focus(self, scroll_to_focus: bool) -> None: ... + +class VolumeButton( + ScaleButton, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable +): + """ + :Constructors: + + :: + + VolumeButton(**properties) + new() -> Gtk.Widget + + Object GtkVolumeButton + + Properties from GtkVolumeButton: + use-symbolic -> gboolean: use-symbolic + + Signals from GtkScaleButton: + value-changed (gdouble) + popup () + popdown () + + Properties from GtkScaleButton: + value -> gdouble: value + adjustment -> GtkAdjustment: adjustment + icons -> GStrv: icons + active -> gboolean: active + has-frame -> gboolean: has-frame + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + use_symbolic: bool + active: bool + adjustment: Adjustment + has_frame: bool + icons: list[str] + value: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + orientation: Orientation + + props: Props = ... + parent: ScaleButton = ... + def __init__( + self, + use_symbolic: bool = ..., + adjustment: Adjustment = ..., + has_frame: bool = ..., + icons: Sequence[str] = ..., + value: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + orientation: Orientation = ..., + ): ... + @classmethod + def new(cls) -> VolumeButton: ... + +class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + Widget(**properties) + + Object GtkWidget + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + parent_instance: GObject.InitiallyUnowned = ... + priv: WidgetPrivate = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def action_set_enabled(self, action_name: str, enabled: bool) -> None: ... + def activate(self) -> bool: ... + def activate_action( + self, name: str, args: Optional[GLib.Variant] = None + ) -> bool: ... + def activate_default(self) -> None: ... + def add_controller(self, controller: EventController) -> None: ... + def add_css_class(self, css_class: str) -> None: ... + def add_mnemonic_label(self, label: Widget) -> None: ... + def add_shortcut(self, shortcut: Shortcut) -> None: ... + def add_tick_callback( + self, callback: Callable[..., bool], *user_data: Any + ) -> int: ... + def allocate( + self, + width: int, + height: int, + baseline: int, + transform: Optional[Gsk.Transform] = None, + ) -> None: ... + def bind_template_callback_full( + self, callback_name: str, callback_symbol: Callable[[], None] + ) -> None: ... + def bind_template_child_full( + self, name: str, internal_child: bool, struct_offset: int + ) -> None: ... + def child_focus(self, direction: DirectionType) -> bool: ... + def compute_bounds(self, target: Widget) -> Tuple[bool, Graphene.Rect]: ... + def compute_expand(self, orientation: Orientation) -> bool: ... + def compute_point( + self, target: Widget, point: Graphene.Point + ) -> Tuple[bool, Graphene.Point]: ... + def compute_transform(self, target: Widget) -> Tuple[bool, Graphene.Matrix]: ... + def contains(self, x: float, y: float) -> bool: ... + def create_pango_context(self) -> Pango.Context: ... + def create_pango_layout(self, text: Optional[str] = None) -> Pango.Layout: ... + def dispose_template(self, widget_type: Type) -> None: ... + def do_compute_expand(self, hexpand_p: bool, vexpand_p: bool) -> None: ... + def do_contains(self, x: float, y: float) -> bool: ... + def do_css_changed(self, change: CssStyleChange) -> None: ... + def do_direction_changed(self, previous_direction: TextDirection) -> None: ... + def do_focus(self, direction: DirectionType) -> bool: ... + def do_get_request_mode(self) -> SizeRequestMode: ... + def do_grab_focus(self) -> bool: ... + def do_hide(self) -> None: ... + def do_keynav_failed(self, direction: DirectionType) -> bool: ... + def do_map(self) -> None: ... + def do_measure( + self, orientation: Orientation, for_size: int + ) -> Tuple[int, int, int, int]: ... + def do_mnemonic_activate(self, group_cycling: bool) -> bool: ... + def do_move_focus(self, direction: DirectionType) -> None: ... + def do_query_tooltip( + self, x: int, y: int, keyboard_tooltip: bool, tooltip: Tooltip + ) -> bool: ... + def do_realize(self) -> None: ... + def do_root(self) -> None: ... + def do_set_focus_child(self, child: Optional[Widget] = None) -> None: ... + def do_show(self) -> None: ... + def do_size_allocate(self, width: int, height: int, baseline: int) -> None: ... + def do_snapshot(self, snapshot: Snapshot) -> None: ... + def do_state_flags_changed(self, previous_state_flags: StateFlags) -> None: ... + def do_system_setting_changed(self, settings: SystemSetting) -> None: ... + def do_unmap(self) -> None: ... + def do_unrealize(self) -> None: ... + def do_unroot(self) -> None: ... + def drag_check_threshold( + self, start_x: int, start_y: int, current_x: int, current_y: int + ) -> bool: ... + def error_bell(self) -> None: ... + def get_activate_signal(self) -> int: ... + def get_allocated_baseline(self) -> int: ... + def get_allocated_height(self) -> int: ... + def get_allocated_width(self) -> int: ... + def get_allocation(self) -> Gdk.Rectangle: ... + def get_ancestor(self, widget_type: Type) -> Optional[Widget]: ... + def get_baseline(self) -> int: ... + def get_can_focus(self) -> bool: ... + def get_can_target(self) -> bool: ... + def get_child_visible(self) -> bool: ... + def get_clipboard(self) -> Gdk.Clipboard: ... + def get_color(self) -> Gdk.RGBA: ... + def get_css_classes(self) -> list[str]: ... + def get_css_name(self) -> str: ... + def get_cursor(self) -> Optional[Gdk.Cursor]: ... + @staticmethod + def get_default_direction() -> TextDirection: ... + def get_direction(self) -> TextDirection: ... + def get_display(self) -> Gdk.Display: ... + def get_first_child(self) -> Optional[Widget]: ... + def get_focus_child(self) -> Optional[Widget]: ... + def get_focus_on_click(self) -> bool: ... + def get_focusable(self) -> bool: ... + def get_font_map(self) -> Optional[Pango.FontMap]: ... + def get_font_options(self) -> Optional[cairo.FontOptions]: ... + def get_frame_clock(self) -> Optional[Gdk.FrameClock]: ... + def get_halign(self) -> Align: ... + def get_has_tooltip(self) -> bool: ... + def get_height(self) -> int: ... + def get_hexpand(self) -> bool: ... + def get_hexpand_set(self) -> bool: ... + def get_last_child(self) -> Optional[Widget]: ... + def get_layout_manager(self) -> Optional[LayoutManager]: ... + def get_layout_manager_type(self) -> Type: ... + def get_mapped(self) -> bool: ... + def get_margin_bottom(self) -> int: ... + def get_margin_end(self) -> int: ... + def get_margin_start(self) -> int: ... + def get_margin_top(self) -> int: ... + def get_name(self) -> str: ... + def get_native(self) -> Optional[Native]: ... + def get_next_sibling(self) -> Optional[Widget]: ... + def get_opacity(self) -> float: ... + def get_overflow(self) -> Overflow: ... + def get_pango_context(self) -> Pango.Context: ... + def get_parent(self) -> Optional[Widget]: ... + def get_preferred_size(self) -> Tuple[Requisition, Requisition]: ... + def get_prev_sibling(self) -> Optional[Widget]: ... + def get_primary_clipboard(self) -> Gdk.Clipboard: ... + def get_realized(self) -> bool: ... + def get_receives_default(self) -> bool: ... + def get_request_mode(self) -> SizeRequestMode: ... + def get_root(self) -> Optional[Root]: ... + def get_scale_factor(self) -> int: ... + def get_sensitive(self) -> bool: ... + def get_settings(self) -> Settings: ... + def get_size(self, orientation: Orientation) -> int: ... + def get_size_request(self) -> Tuple[int, int]: ... + def get_state_flags(self) -> StateFlags: ... + def get_style_context(self) -> StyleContext: ... + def get_template_child(self, widget_type: Type, name: str) -> GObject.Object: ... + def get_tooltip_markup(self) -> Optional[str]: ... + def get_tooltip_text(self) -> Optional[str]: ... + def get_valign(self) -> Align: ... + def get_vexpand(self) -> bool: ... + def get_vexpand_set(self) -> bool: ... + def get_visible(self) -> bool: ... + def get_width(self) -> int: ... + def grab_focus(self) -> bool: ... + def has_css_class(self, css_class: str) -> bool: ... + def has_default(self) -> bool: ... + def has_focus(self) -> bool: ... + def has_visible_focus(self) -> bool: ... + def hide(self) -> None: ... + def in_destruction(self) -> bool: ... + def init_template(self) -> None: ... + def insert_action_group( + self, name: str, group: Optional[Gio.ActionGroup] = None + ) -> None: ... + def insert_after( + self, parent: Widget, previous_sibling: Optional[Widget] = None + ) -> None: ... + def insert_before( + self, parent: Widget, next_sibling: Optional[Widget] = None + ) -> None: ... + def install_action( + self, + action_name: str, + parameter_type: Optional[str], + activate: Callable[[Widget, str, Optional[GLib.Variant]], None], + ) -> None: ... + def install_property_action(self, action_name: str, property_name: str) -> None: ... + def is_ancestor(self, ancestor: Widget) -> bool: ... + def is_drawable(self) -> bool: ... + def is_focus(self) -> bool: ... + def is_sensitive(self) -> bool: ... + def is_visible(self) -> bool: ... + def keynav_failed(self, direction: DirectionType) -> bool: ... + def list_mnemonic_labels(self) -> list[Widget]: ... + def map(self) -> None: ... + def measure( + self, orientation: Orientation, for_size: int + ) -> Tuple[int, int, int, int]: ... + def mnemonic_activate(self, group_cycling: bool) -> bool: ... + def observe_children(self) -> Gio.ListModel: ... + def observe_controllers(self) -> Gio.ListModel: ... + def pick(self, x: float, y: float, flags: PickFlags) -> Optional[Widget]: ... + def query_action( + self, index_: int + ) -> Tuple[bool, Type, str, GLib.VariantType, str]: ... + def queue_allocate(self) -> None: ... + def queue_draw(self) -> None: ... + def queue_resize(self) -> None: ... + def realize(self) -> None: ... + def remove_controller(self, controller: EventController) -> None: ... + def remove_css_class(self, css_class: str) -> None: ... + def remove_mnemonic_label(self, label: Widget) -> None: ... + def remove_tick_callback(self, id: int) -> None: ... + def set_accessible_role(self, accessible_role: AccessibleRole) -> None: ... + def set_activate_signal(self, signal_id: int) -> None: ... + def set_activate_signal_from_name(self, signal_name: str) -> None: ... + def set_can_focus(self, can_focus: bool) -> None: ... + def set_can_target(self, can_target: bool) -> None: ... + def set_child_visible(self, child_visible: bool) -> None: ... + def set_css_classes(self, classes: Sequence[str]) -> None: ... + def set_css_name(self, name: str) -> None: ... + def set_cursor(self, cursor: Optional[Gdk.Cursor] = None) -> None: ... + def set_cursor_from_name(self, name: Optional[str] = None) -> None: ... + @staticmethod + def set_default_direction(dir: TextDirection) -> None: ... + def set_direction(self, dir: TextDirection) -> None: ... + def set_focus_child(self, child: Optional[Widget] = None) -> None: ... + def set_focus_on_click(self, focus_on_click: bool) -> None: ... + def set_focusable(self, focusable: bool) -> None: ... + def set_font_map(self, font_map: Optional[Pango.FontMap] = None) -> None: ... + def set_font_options(self, options: Optional[cairo.FontOptions] = None) -> None: ... + def set_halign(self, align: Align) -> None: ... + def set_has_tooltip(self, has_tooltip: bool) -> None: ... + def set_hexpand(self, expand: bool) -> None: ... + def set_hexpand_set(self, set: bool) -> None: ... + def set_layout_manager( + self, layout_manager: Optional[LayoutManager] = None + ) -> None: ... + def set_layout_manager_type(self, type: Type) -> None: ... + def set_margin_bottom(self, margin: int) -> None: ... + def set_margin_end(self, margin: int) -> None: ... + def set_margin_start(self, margin: int) -> None: ... + def set_margin_top(self, margin: int) -> None: ... + def set_name(self, name: str) -> None: ... + def set_opacity(self, opacity: float) -> None: ... + def set_overflow(self, overflow: Overflow) -> None: ... + def set_parent(self, parent: Widget) -> None: ... + def set_receives_default(self, receives_default: bool) -> None: ... + def set_sensitive(self, sensitive: bool) -> None: ... + def set_size_request(self, width: int, height: int) -> None: ... + def set_state_flags(self, flags: StateFlags, clear: bool) -> None: ... + def set_template(self, template_bytes: GLib.Bytes) -> None: ... + def set_template_from_resource(self, resource_name: str) -> None: ... + def set_template_scope(self, scope: BuilderScope) -> None: ... + def set_tooltip_markup(self, markup: Optional[str] = None) -> None: ... + def set_tooltip_text(self, text: Optional[str] = None) -> None: ... + def set_valign(self, align: Align) -> None: ... + def set_vexpand(self, expand: bool) -> None: ... + def set_vexpand_set(self, set: bool) -> None: ... + def set_visible(self, visible: bool) -> None: ... + def should_layout(self) -> bool: ... + def show(self) -> None: ... + def size_allocate(self, allocation: Gdk.Rectangle, baseline: int) -> None: ... + def snapshot_child(self, child: Widget, snapshot: Snapshot) -> None: ... + def translate_coordinates( + self, dest_widget: Widget, src_x: float, src_y: float + ) -> Optional[Tuple[float, float]]: ... # CHECK Wrapped function + def trigger_tooltip_query(self) -> None: ... + def unmap(self) -> None: ... + def unparent(self) -> None: ... + def unrealize(self) -> None: ... + def unset_state_flags(self, flags: StateFlags) -> None: ... + +class WidgetClass(GObject.GPointer): + """ + :Constructors: + + :: + + WidgetClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + show: Callable[[Widget], None] = ... + hide: Callable[[Widget], None] = ... + map: Callable[[Widget], None] = ... + unmap: Callable[[Widget], None] = ... + realize: Callable[[Widget], None] = ... + unrealize: Callable[[Widget], None] = ... + root: Callable[[Widget], None] = ... + unroot: Callable[[Widget], None] = ... + size_allocate: Callable[[Widget, int, int, int], None] = ... + state_flags_changed: Callable[[Widget, StateFlags], None] = ... + direction_changed: Callable[[Widget, TextDirection], None] = ... + get_request_mode: Callable[[Widget], SizeRequestMode] = ... + measure: Callable[[Widget, Orientation, int], Tuple[int, int, int, int]] = ... + mnemonic_activate: Callable[[Widget, bool], bool] = ... + grab_focus: Callable[[Widget], bool] = ... + focus: Callable[[Widget, DirectionType], bool] = ... + set_focus_child: Callable[[Widget, Optional[Widget]], None] = ... + move_focus: Callable[[Widget, DirectionType], None] = ... + keynav_failed: Callable[[Widget, DirectionType], bool] = ... + query_tooltip: Callable[[Widget, int, int, bool, Tooltip], bool] = ... + compute_expand: Callable[[Widget, bool, bool], None] = ... + css_changed: Callable[[Widget, CssStyleChange], None] = ... + system_setting_changed: Callable[[Widget, SystemSetting], None] = ... + snapshot: Callable[[Widget, Snapshot], None] = ... + contains: Callable[[Widget, float, float], bool] = ... + priv: WidgetClassPrivate = ... + padding: list[None] = ... + def add_shortcut(self, shortcut: Shortcut) -> None: ... + def bind_template_callback_full( + self, callback_name: str, callback_symbol: Callable[[], None] + ) -> None: ... + def bind_template_child_full( + self, name: str, internal_child: bool, struct_offset: int + ) -> None: ... + def get_accessible_role(self) -> AccessibleRole: ... + def get_activate_signal(self) -> int: ... + def get_css_name(self) -> str: ... + def get_layout_manager_type(self) -> Type: ... + def install_action( + self, + action_name: str, + parameter_type: Optional[str], + activate: Callable[[Widget, str, Optional[GLib.Variant]], None], + ) -> None: ... + def install_property_action(self, action_name: str, property_name: str) -> None: ... + def query_action( + self, index_: int + ) -> Tuple[bool, Type, str, GLib.VariantType, str]: ... + def set_accessible_role(self, accessible_role: AccessibleRole) -> None: ... + def set_activate_signal(self, signal_id: int) -> None: ... + def set_activate_signal_from_name(self, signal_name: str) -> None: ... + def set_css_name(self, name: str) -> None: ... + def set_layout_manager_type(self, type: Type) -> None: ... + def set_template(self, template_bytes: GLib.Bytes) -> None: ... + def set_template_from_resource(self, resource_name: str) -> None: ... + def set_template_scope(self, scope: BuilderScope) -> None: ... + +class WidgetClassPrivate(GObject.GPointer): ... + +class WidgetPaintable(GObject.Object, Gdk.Paintable): + """ + :Constructors: + + :: + + WidgetPaintable(**properties) + new(widget:Gtk.Widget=None) -> Gtk.WidgetPaintable + + Object GtkWidgetPaintable + + Properties from GtkWidgetPaintable: + widget -> GtkWidget: widget + + Signals from GdkPaintable: + invalidate-contents () + invalidate-size () + + Signals from GObject: + notify (GParam) + """ + + class Props: + widget: Optional[Widget] + + props: Props = ... + def __init__(self, widget: Optional[Widget] = ...): ... + def get_widget(self) -> Optional[Widget]: ... + @classmethod + def new(cls, widget: Optional[Widget] = None) -> WidgetPaintable: ... + def set_widget(self, widget: Optional[Widget] = None) -> None: ... + +class WidgetPaintableClass(GObject.GPointer): + """ + :Constructors: + + :: + + WidgetPaintableClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WidgetPrivate(GObject.GPointer): ... + +class Window( + Widget, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager +): + """ + :Constructors: + + :: + + Window(**properties) + new() -> Gtk.Widget + + Object GtkWindow + + Signals from GtkWindow: + keys-changed () + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + close-request () -> gboolean + + Properties from GtkWindow: + title -> gchararray: title + resizable -> gboolean: resizable + modal -> gboolean: modal + default-width -> gint: default-width + default-height -> gint: default-height + destroy-with-parent -> gboolean: destroy-with-parent + hide-on-close -> gboolean: hide-on-close + icon-name -> gchararray: icon-name + display -> GdkDisplay: display + decorated -> gboolean: decorated + deletable -> gboolean: deletable + transient-for -> GtkWindow: transient-for + application -> GtkApplication: application + default-widget -> GtkWidget: default-widget + focus-widget -> GtkWidget: focus-widget + child -> GtkWidget: child + titlebar -> GtkWidget: titlebar + handle-menubar-accel -> gboolean: handle-menubar-accel + is-active -> gboolean: is-active + suspended -> gboolean: suspended + startup-id -> gchararray: startup-id + mnemonics-visible -> gboolean: mnemonics-visible + focus-visible -> gboolean: focus-visible + maximized -> gboolean: maximized + fullscreened -> gboolean: fullscreened + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + application: Optional[Application] + child: Optional[Widget] + decorated: bool + default_height: int + default_widget: Optional[Widget] + default_width: int + deletable: bool + destroy_with_parent: bool + display: Gdk.Display + focus_visible: bool + focus_widget: Widget + fullscreened: bool + handle_menubar_accel: bool + hide_on_close: bool + icon_name: Optional[str] + is_active: bool + maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + suspended: bool + title: Optional[str] + titlebar: Optional[Widget] + transient_for: Optional[Window] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + startup_id: str + + props: Props = ... + parent_instance: Widget = ... + def __init__( + self, + application: Optional[Application] = ..., + child: Optional[Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_widget: Optional[Widget] = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + display: Gdk.Display = ..., + focus_visible: bool = ..., + focus_widget: Widget = ..., + fullscreened: bool = ..., + handle_menubar_accel: bool = ..., + hide_on_close: bool = ..., + icon_name: Optional[str] = ..., + maximized: bool = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + startup_id: str = ..., + title: Optional[str] = ..., + titlebar: Optional[Widget] = ..., + transient_for: Optional[Window] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def close(self) -> None: ... + def destroy(self) -> None: ... + def do_activate_default(self) -> None: ... + def do_activate_focus(self) -> None: ... + def do_close_request(self) -> bool: ... + def do_enable_debugging(self, toggle: bool) -> bool: ... + def do_keys_changed(self) -> None: ... + def fullscreen(self) -> None: ... + def fullscreen_on_monitor(self, monitor: Gdk.Monitor) -> None: ... + def get_application(self) -> Optional[Application]: ... + def get_child(self) -> Optional[Widget]: ... + def get_decorated(self) -> bool: ... + @staticmethod + def get_default_icon_name() -> Optional[str]: ... + def get_default_size(self) -> Tuple[int, int]: ... + def get_default_widget(self) -> Optional[Widget]: ... + def get_deletable(self) -> bool: ... + def get_destroy_with_parent(self) -> bool: ... + def get_focus(self) -> Optional[Widget]: ... + def get_focus_visible(self) -> bool: ... + def get_group(self) -> WindowGroup: ... + def get_handle_menubar_accel(self) -> bool: ... + def get_hide_on_close(self) -> bool: ... + def get_icon_name(self) -> Optional[str]: ... + def get_mnemonics_visible(self) -> bool: ... + def get_modal(self) -> bool: ... + def get_resizable(self) -> bool: ... + def get_title(self) -> Optional[str]: ... + def get_titlebar(self) -> Optional[Widget]: ... + @staticmethod + def get_toplevels() -> Gio.ListModel: ... + def get_transient_for(self) -> Optional[Window]: ... + def has_group(self) -> bool: ... + def is_active(self) -> bool: ... + def is_fullscreen(self) -> bool: ... + def is_maximized(self) -> bool: ... + def is_suspended(self) -> bool: ... + @staticmethod + def list_toplevels() -> list[Widget]: ... + def maximize(self) -> None: ... + def minimize(self) -> None: ... + @classmethod + def new(cls) -> Window: ... + def present(self) -> None: ... + def present_with_time(self, timestamp: int) -> None: ... + def set_application(self, application: Optional[Application] = None) -> None: ... + @staticmethod + def set_auto_startup_notification(setting: bool) -> None: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_decorated(self, setting: bool) -> None: ... + @staticmethod + def set_default_icon_name(name: str) -> None: ... + def set_default_size(self, width: int, height: int) -> None: ... + def set_default_widget(self, default_widget: Optional[Widget] = None) -> None: ... + def set_deletable(self, setting: bool) -> None: ... + def set_destroy_with_parent(self, setting: bool) -> None: ... + def set_display(self, display: Gdk.Display) -> None: ... + def set_focus(self, focus: Optional[Widget] = None) -> None: ... + def set_focus_visible(self, setting: bool) -> None: ... + def set_handle_menubar_accel(self, handle_menubar_accel: bool) -> None: ... + def set_hide_on_close(self, setting: bool) -> None: ... + def set_icon_name(self, name: Optional[str] = None) -> None: ... + @staticmethod + def set_interactive_debugging(enable: bool) -> None: ... + def set_mnemonics_visible(self, setting: bool) -> None: ... + def set_modal(self, modal: bool) -> None: ... + def set_resizable(self, resizable: bool) -> None: ... + def set_startup_id(self, startup_id: str) -> None: ... + def set_title(self, title: Optional[str] = None) -> None: ... + def set_titlebar(self, titlebar: Optional[Widget] = None) -> None: ... + def set_transient_for(self, parent: Optional[Window] = None) -> None: ... + def unfullscreen(self) -> None: ... + def unmaximize(self) -> None: ... + def unminimize(self) -> None: ... + +class WindowClass(GObject.GPointer): + """ + :Constructors: + + :: + + WindowClass() + """ + + parent_class: WidgetClass = ... + activate_focus: Callable[[Window], None] = ... + activate_default: Callable[[Window], None] = ... + keys_changed: Callable[[Window], None] = ... + enable_debugging: Callable[[Window, bool], bool] = ... + close_request: Callable[[Window], bool] = ... + padding: list[None] = ... + +class WindowControls(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + WindowControls(**properties) + new(side:Gtk.PackType) -> Gtk.Widget + + Object GtkWindowControls + + Properties from GtkWindowControls: + side -> GtkPackType: side + decoration-layout -> gchararray: decoration-layout + empty -> gboolean: empty + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + decoration_layout: Optional[str] + empty: bool + side: PackType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + decoration_layout: Optional[str] = ..., + side: PackType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_decoration_layout(self) -> Optional[str]: ... + def get_empty(self) -> bool: ... + def get_side(self) -> PackType: ... + @classmethod + def new(cls, side: PackType) -> WindowControls: ... + def set_decoration_layout(self, layout: Optional[str] = None) -> None: ... + def set_side(self, side: PackType) -> None: ... + +class WindowControlsClass(GObject.GPointer): + """ + :Constructors: + + :: + + WindowControlsClass() + """ + + parent_class: WidgetClass = ... + +class WindowGroup(GObject.Object): + """ + :Constructors: + + :: + + WindowGroup(**properties) + new() -> Gtk.WindowGroup + + Object GtkWindowGroup + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + priv: WindowGroupPrivate = ... + def add_window(self, window: Window) -> None: ... + def list_windows(self) -> list[Window]: ... + @classmethod + def new(cls) -> WindowGroup: ... + def remove_window(self, window: Window) -> None: ... + +class WindowGroupClass(GObject.GPointer): + """ + :Constructors: + + :: + + WindowGroupClass() + """ + + parent_class: GObject.ObjectClass = ... + _gtk_reserved1: None = ... + _gtk_reserved2: None = ... + _gtk_reserved3: None = ... + _gtk_reserved4: None = ... + +class WindowGroupPrivate(GObject.GPointer): ... + +class WindowHandle(Widget, Accessible, Buildable, ConstraintTarget): + """ + :Constructors: + + :: + + WindowHandle(**properties) + new() -> Gtk.Widget + + Object GtkWindowHandle + + Properties from GtkWindowHandle: + child -> GtkWidget: child + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Overflow + parent: Optional[Widget] + receives_default: bool + root: Optional[Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: AccessibleRole + + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: AccessibleRole = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + @classmethod + def new(cls) -> WindowHandle: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + +class WindowHandleClass(GObject.GPointer): + """ + :Constructors: + + :: + + WindowHandleClass() + """ + + parent_class: WidgetClass = ... + +class ApplicationInhibitFlags(GObject.GFlags): + IDLE = 8 + LOGOUT = 1 + SUSPEND = 4 + SWITCH = 2 + +class BuilderClosureFlags(GObject.GFlags): + SWAPPED = 1 + +class CellRendererState(GObject.GFlags): + EXPANDABLE = 32 + EXPANDED = 64 + FOCUSED = 16 + INSENSITIVE = 4 + PRELIT = 2 + SELECTED = 1 + SORTED = 8 + +class DebugFlags(GObject.GFlags): + A11Y = 131072 + ACTIONS = 4096 + BUILDER = 128 + BUILDER_OBJECTS = 65536 + CONSTRAINTS = 32768 + GEOMETRY = 16 + ICONFALLBACK = 262144 + ICONTHEME = 32 + INTERACTIVE = 1024 + INVERT_TEXT_DIR = 524288 + KEYBINDINGS = 4 + LAYOUT = 8192 + MODULES = 8 + NO_CSS_CACHE = 512 + PRINTING = 64 + SIZE_REQUEST = 256 + SNAPSHOT = 16384 + TEXT = 1 + TREE = 2 + +class DialogFlags(GObject.GFlags): + DESTROY_WITH_PARENT = 2 + MODAL = 1 + USE_HEADER_BAR = 4 + +class EventControllerScrollFlags(GObject.GFlags): + BOTH_AXES = 3 + DISCRETE = 4 + HORIZONTAL = 2 + KINETIC = 8 + NONE = 0 + VERTICAL = 1 + +class FontChooserLevel(GObject.GFlags): + FAMILY = 0 + FEATURES = 8 + SIZE = 2 + STYLE = 1 + VARIATIONS = 4 + +class IconLookupFlags(GObject.GFlags): + FORCE_REGULAR = 1 + FORCE_SYMBOLIC = 2 + PRELOAD = 4 + +class InputHints(GObject.GFlags): + EMOJI = 512 + INHIBIT_OSK = 128 + LOWERCASE = 8 + NONE = 0 + NO_EMOJI = 1024 + NO_SPELLCHECK = 2 + PRIVATE = 2048 + SPELLCHECK = 1 + UPPERCASE_CHARS = 16 + UPPERCASE_SENTENCES = 64 + UPPERCASE_WORDS = 32 + VERTICAL_WRITING = 256 + WORD_COMPLETION = 4 + +class ListScrollFlags(GObject.GFlags): + FOCUS = 1 + NONE = 0 + SELECT = 2 + +class PickFlags(GObject.GFlags): + DEFAULT = 0 + INSENSITIVE = 1 + NON_TARGETABLE = 2 + +class PopoverMenuFlags(GObject.GFlags): + NESTED = 1 + SLIDING = 0 + +class PrintCapabilities(GObject.GFlags): + COLLATE = 4 + COPIES = 2 + GENERATE_PDF = 32 + GENERATE_PS = 64 + NUMBER_UP = 256 + NUMBER_UP_LAYOUT = 512 + PAGE_SET = 1 + PREVIEW = 128 + REVERSE = 8 + SCALE = 16 + +class ShortcutActionFlags(GObject.GFlags): + EXCLUSIVE = 1 + +class StateFlags(GObject.GFlags): + ACTIVE = 1 + BACKDROP = 64 + CHECKED = 2048 + DIR_LTR = 128 + DIR_RTL = 256 + DROP_ACTIVE = 4096 + FOCUSED = 32 + FOCUS_VISIBLE = 8192 + FOCUS_WITHIN = 16384 + INCONSISTENT = 16 + INSENSITIVE = 8 + LINK = 512 + NORMAL = 0 + PRELIGHT = 2 + SELECTED = 4 + VISITED = 1024 + +class StyleContextPrintFlags(GObject.GFlags): + NONE = 0 + RECURSE = 1 + SHOW_CHANGE = 4 + SHOW_STYLE = 2 + +class TextSearchFlags(GObject.GFlags): + CASE_INSENSITIVE = 4 + TEXT_ONLY = 2 + VISIBLE_ONLY = 1 + +class TreeModelFlags(GObject.GFlags): + ITERS_PERSIST = 1 + LIST_ONLY = 2 + +class AccessibleAnnouncementPriority(GObject.GEnum): + HIGH = 2 + LOW = 0 + MEDIUM = 1 + +class AccessibleAutocomplete(GObject.GEnum): + BOTH = 3 + INLINE = 1 + LIST = 2 + NONE = 0 + +class AccessibleInvalidState(GObject.GEnum): + FALSE = 0 + GRAMMAR = 2 + SPELLING = 3 + TRUE = 1 + +class AccessiblePlatformState(GObject.GEnum): + ACTIVE = 2 + FOCUSABLE = 0 + FOCUSED = 1 + +class AccessibleProperty(GObject.GEnum): + AUTOCOMPLETE = 0 + DESCRIPTION = 1 + HAS_POPUP = 2 + KEY_SHORTCUTS = 3 + LABEL = 4 + LEVEL = 5 + MODAL = 6 + MULTI_LINE = 7 + MULTI_SELECTABLE = 8 + ORIENTATION = 9 + PLACEHOLDER = 10 + READ_ONLY = 11 + REQUIRED = 12 + ROLE_DESCRIPTION = 13 + SORT = 14 + VALUE_MAX = 15 + VALUE_MIN = 16 + VALUE_NOW = 17 + VALUE_TEXT = 18 + @staticmethod + def init_value(property: AccessibleProperty, value: Any) -> None: ... + +class AccessibleRelation(GObject.GEnum): + ACTIVE_DESCENDANT = 0 + COL_COUNT = 1 + COL_INDEX = 2 + COL_INDEX_TEXT = 3 + COL_SPAN = 4 + CONTROLS = 5 + DESCRIBED_BY = 6 + DETAILS = 7 + ERROR_MESSAGE = 8 + FLOW_TO = 9 + LABELLED_BY = 10 + OWNS = 11 + POS_IN_SET = 12 + ROW_COUNT = 13 + ROW_INDEX = 14 + ROW_INDEX_TEXT = 15 + ROW_SPAN = 16 + SET_SIZE = 17 + @staticmethod + def init_value(relation: AccessibleRelation, value: Any) -> None: ... + +class AccessibleRole(GObject.GEnum): + ALERT = 0 + ALERT_DIALOG = 1 + APPLICATION = 79 + ARTICLE = 82 + BANNER = 2 + BLOCK_QUOTE = 81 + BUTTON = 3 + CAPTION = 4 + CELL = 5 + CHECKBOX = 6 + COLUMN_HEADER = 7 + COMBO_BOX = 8 + COMMAND = 9 + COMMENT = 83 + COMPOSITE = 10 + DIALOG = 11 + DOCUMENT = 12 + FEED = 13 + FORM = 14 + GENERIC = 15 + GRID = 16 + GRID_CELL = 17 + GROUP = 18 + HEADING = 19 + IMG = 20 + INPUT = 21 + LABEL = 22 + LANDMARK = 23 + LEGEND = 24 + LINK = 25 + LIST = 26 + LIST_BOX = 27 + LIST_ITEM = 28 + LOG = 29 + MAIN = 30 + MARQUEE = 31 + MATH = 32 + MENU = 34 + MENU_BAR = 35 + MENU_ITEM = 36 + MENU_ITEM_CHECKBOX = 37 + MENU_ITEM_RADIO = 38 + METER = 33 + NAVIGATION = 39 + NONE = 40 + NOTE = 41 + OPTION = 42 + PARAGRAPH = 80 + PRESENTATION = 43 + PROGRESS_BAR = 44 + RADIO = 45 + RADIO_GROUP = 46 + RANGE = 47 + REGION = 48 + ROW = 49 + ROW_GROUP = 50 + ROW_HEADER = 51 + SCROLLBAR = 52 + SEARCH = 53 + SEARCH_BOX = 54 + SECTION = 55 + SECTION_HEAD = 56 + SELECT = 57 + SEPARATOR = 58 + SLIDER = 59 + SPIN_BUTTON = 60 + STATUS = 61 + STRUCTURE = 62 + SWITCH = 63 + TAB = 64 + TABLE = 65 + TAB_LIST = 66 + TAB_PANEL = 67 + TERMINAL = 84 + TEXT_BOX = 68 + TIME = 69 + TIMER = 70 + TOGGLE_BUTTON = 78 + TOOLBAR = 71 + TOOLTIP = 72 + TREE = 73 + TREE_GRID = 74 + TREE_ITEM = 75 + WIDGET = 76 + WINDOW = 77 + +class AccessibleSort(GObject.GEnum): + ASCENDING = 1 + DESCENDING = 2 + NONE = 0 + OTHER = 3 + +class AccessibleState(GObject.GEnum): + BUSY = 0 + CHECKED = 1 + DISABLED = 2 + EXPANDED = 3 + HIDDEN = 4 + INVALID = 5 + PRESSED = 6 + SELECTED = 7 + VISITED = 8 + @staticmethod + def init_value(state: AccessibleState, value: Any) -> None: ... + +class AccessibleTextContentChange(GObject.GEnum): + INSERT = 0 + REMOVE = 1 + +class AccessibleTextGranularity(GObject.GEnum): + CHARACTER = 0 + LINE = 3 + PARAGRAPH = 4 + SENTENCE = 2 + WORD = 1 + +class AccessibleTristate(GObject.GEnum): + FALSE = 0 + MIXED = 2 + TRUE = 1 + +class Align(GObject.GEnum): + BASELINE = 4 + BASELINE_CENTER = 5 + BASELINE_FILL = 4 + CENTER = 3 + END = 2 + FILL = 0 + START = 1 + +class ArrowType(GObject.GEnum): + DOWN = 1 + LEFT = 2 + NONE = 4 + RIGHT = 3 + UP = 0 + +class AssistantPageType(GObject.GEnum): + CONFIRM = 2 + CONTENT = 0 + CUSTOM = 5 + INTRO = 1 + PROGRESS = 4 + SUMMARY = 3 + +class BaselinePosition(GObject.GEnum): + BOTTOM = 2 + CENTER = 1 + TOP = 0 + +class BorderStyle(GObject.GEnum): + DASHED = 6 + DOTTED = 5 + DOUBLE = 7 + GROOVE = 8 + HIDDEN = 1 + INSET = 3 + NONE = 0 + OUTSET = 4 + RIDGE = 9 + SOLID = 2 + +class BuilderError(GObject.GEnum): + DUPLICATE_ID = 8 + INVALID_ATTRIBUTE = 3 + INVALID_FUNCTION = 14 + INVALID_ID = 13 + INVALID_PROPERTY = 11 + INVALID_SIGNAL = 12 + INVALID_TAG = 4 + INVALID_TYPE_FUNCTION = 0 + INVALID_VALUE = 6 + MISSING_ATTRIBUTE = 2 + MISSING_PROPERTY_VALUE = 5 + OBJECT_TYPE_REFUSED = 9 + TEMPLATE_MISMATCH = 10 + UNHANDLED_TAG = 1 + VERSION_MISMATCH = 7 + @staticmethod + def quark() -> int: ... + +class ButtonsType(GObject.GEnum): + CANCEL = 3 + CLOSE = 2 + NONE = 0 + OK = 1 + OK_CANCEL = 5 + YES_NO = 4 + +class CellRendererAccelMode(GObject.GEnum): + GTK = 0 + OTHER = 1 + +class CellRendererMode(GObject.GEnum): + ACTIVATABLE = 1 + EDITABLE = 2 + INERT = 0 + +class Collation(GObject.GEnum): + FILENAME = 2 + NONE = 0 + UNICODE = 1 + +class ConstraintAttribute(GObject.GEnum): + BASELINE = 11 + BOTTOM = 4 + CENTER_X = 9 + CENTER_Y = 10 + END = 6 + HEIGHT = 8 + LEFT = 1 + NONE = 0 + RIGHT = 2 + START = 5 + TOP = 3 + WIDTH = 7 + +class ConstraintRelation(GObject.GEnum): + EQ = 0 + GE = 1 + LE = -1 + +class ConstraintStrength(GObject.GEnum): + MEDIUM = 1000 + REQUIRED = 1001001000 + STRONG = 1000000000 + WEAK = 1 + +class ConstraintVflParserError(GObject.GEnum): + ATTRIBUTE = 1 + METRIC = 3 + PRIORITY = 4 + RELATION = 5 + SYMBOL = 0 + VIEW = 2 + @staticmethod + def quark() -> int: ... + +class ContentFit(GObject.GEnum): + CONTAIN = 1 + COVER = 2 + FILL = 0 + SCALE_DOWN = 3 + +class CornerType(GObject.GEnum): + BOTTOM_LEFT = 1 + BOTTOM_RIGHT = 3 + TOP_LEFT = 0 + TOP_RIGHT = 2 + +class CssParserError(GObject.GEnum): + FAILED = 0 + IMPORT = 2 + NAME = 3 + SYNTAX = 1 + UNKNOWN_VALUE = 4 + +class CssParserWarning(GObject.GEnum): + DEPRECATED = 0 + SYNTAX = 1 + UNIMPLEMENTED = 2 + +class DeleteType(GObject.GEnum): + CHARS = 0 + DISPLAY_LINES = 3 + DISPLAY_LINE_ENDS = 4 + PARAGRAPHS = 6 + PARAGRAPH_ENDS = 5 + WHITESPACE = 7 + WORDS = 2 + WORD_ENDS = 1 + +class DialogError(GObject.GEnum): + CANCELLED = 1 + DISMISSED = 2 + FAILED = 0 + @staticmethod + def quark() -> int: ... + +class DirectionType(GObject.GEnum): + DOWN = 3 + LEFT = 4 + RIGHT = 5 + TAB_BACKWARD = 1 + TAB_FORWARD = 0 + UP = 2 + +class EditableProperties(GObject.GEnum): + NUM_PROPERTIES = 8 + PROP_CURSOR_POSITION = 1 + PROP_EDITABLE = 3 + PROP_ENABLE_UNDO = 7 + PROP_MAX_WIDTH_CHARS = 5 + PROP_SELECTION_BOUND = 2 + PROP_TEXT = 0 + PROP_WIDTH_CHARS = 4 + PROP_XALIGN = 6 + +class EntryIconPosition(GObject.GEnum): + PRIMARY = 0 + SECONDARY = 1 + +class EventSequenceState(GObject.GEnum): + CLAIMED = 1 + DENIED = 2 + NONE = 0 + +class FileChooserAction(GObject.GEnum): + OPEN = 0 + SAVE = 1 + SELECT_FOLDER = 2 + +class FileChooserError(GObject.GEnum): + ALREADY_EXISTS = 2 + BAD_FILENAME = 1 + INCOMPLETE_HOSTNAME = 3 + NONEXISTENT = 0 + @staticmethod + def quark() -> int: ... + +class FilterChange(GObject.GEnum): + DIFFERENT = 0 + LESS_STRICT = 1 + MORE_STRICT = 2 + +class FilterMatch(GObject.GEnum): + ALL = 2 + NONE = 1 + SOME = 0 + +class FontLevel(GObject.GEnum): + FACE = 1 + FAMILY = 0 + FEATURES = 3 + FONT = 2 + +class GraphicsOffloadEnabled(GObject.GEnum): + DISABLED = 1 + ENABLED = 0 + +class IconSize(GObject.GEnum): + INHERIT = 0 + LARGE = 2 + NORMAL = 1 + +class IconThemeError(GObject.GEnum): + FAILED = 1 + NOT_FOUND = 0 + @staticmethod + def quark() -> int: ... + +class IconViewDropPosition(GObject.GEnum): + DROP_ABOVE = 4 + DROP_BELOW = 5 + DROP_INTO = 1 + DROP_LEFT = 2 + DROP_RIGHT = 3 + NO_DROP = 0 + +class ImageType(GObject.GEnum): + EMPTY = 0 + GICON = 2 + ICON_NAME = 1 + PAINTABLE = 3 + +class InputPurpose(GObject.GEnum): + ALPHA = 1 + DIGITS = 2 + EMAIL = 6 + FREE_FORM = 0 + NAME = 7 + NUMBER = 3 + PASSWORD = 8 + PHONE = 4 + PIN = 9 + TERMINAL = 10 + URL = 5 + +class InscriptionOverflow(GObject.GEnum): + CLIP = 0 + ELLIPSIZE_END = 3 + ELLIPSIZE_MIDDLE = 2 + ELLIPSIZE_START = 1 + +class Justification(GObject.GEnum): + CENTER = 2 + FILL = 3 + LEFT = 0 + RIGHT = 1 + +class LevelBarMode(GObject.GEnum): + CONTINUOUS = 0 + DISCRETE = 1 + +class License(GObject.GEnum): + AGPL_3_0 = 13 + AGPL_3_0_ONLY = 14 + APACHE_2_0 = 16 + ARTISTIC = 8 + BSD = 6 + BSD_3 = 15 + CUSTOM = 1 + GPL_2_0 = 2 + GPL_2_0_ONLY = 9 + GPL_3_0 = 3 + GPL_3_0_ONLY = 10 + LGPL_2_1 = 4 + LGPL_2_1_ONLY = 11 + LGPL_3_0 = 5 + LGPL_3_0_ONLY = 12 + MIT_X11 = 7 + MPL_2_0 = 17 + UNKNOWN = 0 + +class ListTabBehavior(GObject.GEnum): + ALL = 0 + CELL = 2 + ITEM = 1 + +class MessageType(GObject.GEnum): + ERROR = 3 + INFO = 0 + OTHER = 4 + QUESTION = 2 + WARNING = 1 + +class MovementStep(GObject.GEnum): + BUFFER_ENDS = 8 + DISPLAY_LINES = 3 + DISPLAY_LINE_ENDS = 4 + HORIZONTAL_PAGES = 9 + LOGICAL_POSITIONS = 0 + PAGES = 7 + PARAGRAPHS = 5 + PARAGRAPH_ENDS = 6 + VISUAL_POSITIONS = 1 + WORDS = 2 + +class NaturalWrapMode(GObject.GEnum): + INHERIT = 0 + NONE = 1 + WORD = 2 + +class NotebookTab(GObject.GEnum): + FIRST = 0 + LAST = 1 + +class NumberUpLayout(GObject.GEnum): + BTLR = 6 + BTRL = 7 + LRBT = 1 + LRTB = 0 + RLBT = 3 + RLTB = 2 + TBLR = 4 + TBRL = 5 + +class Ordering(GObject.GEnum): + EQUAL = 0 + LARGER = 1 + SMALLER = -1 + +class Orientation(GObject.GEnum): + HORIZONTAL = 0 + VERTICAL = 1 + +class Overflow(GObject.GEnum): + HIDDEN = 1 + VISIBLE = 0 + +class PackType(GObject.GEnum): + END = 1 + START = 0 + +class PadActionType(GObject.GEnum): + BUTTON = 0 + RING = 1 + STRIP = 2 + +class PageOrientation(GObject.GEnum): + LANDSCAPE = 1 + PORTRAIT = 0 + REVERSE_LANDSCAPE = 3 + REVERSE_PORTRAIT = 2 + +class PageSet(GObject.GEnum): + ALL = 0 + EVEN = 1 + ODD = 2 + +class PanDirection(GObject.GEnum): + DOWN = 3 + LEFT = 0 + RIGHT = 1 + UP = 2 + +class PolicyType(GObject.GEnum): + ALWAYS = 0 + AUTOMATIC = 1 + EXTERNAL = 3 + NEVER = 2 + +class PositionType(GObject.GEnum): + BOTTOM = 3 + LEFT = 0 + RIGHT = 1 + TOP = 2 + +class PrintDuplex(GObject.GEnum): + HORIZONTAL = 1 + SIMPLEX = 0 + VERTICAL = 2 + +class PrintError(GObject.GEnum): + GENERAL = 0 + INTERNAL_ERROR = 1 + INVALID_FILE = 3 + NOMEM = 2 + @staticmethod + def quark() -> int: ... + +class PrintOperationAction(GObject.GEnum): + EXPORT = 3 + PREVIEW = 2 + PRINT = 1 + PRINT_DIALOG = 0 + +class PrintOperationResult(GObject.GEnum): + APPLY = 1 + CANCEL = 2 + ERROR = 0 + IN_PROGRESS = 3 + +class PrintPages(GObject.GEnum): + ALL = 0 + CURRENT = 1 + RANGES = 2 + SELECTION = 3 + +class PrintQuality(GObject.GEnum): + DRAFT = 3 + HIGH = 2 + LOW = 0 + NORMAL = 1 + +class PrintStatus(GObject.GEnum): + FINISHED = 7 + FINISHED_ABORTED = 8 + GENERATING_DATA = 2 + INITIAL = 0 + PENDING = 4 + PENDING_ISSUE = 5 + PREPARING = 1 + PRINTING = 6 + SENDING_DATA = 3 + +class PropagationLimit(GObject.GEnum): + NONE = 0 + SAME_NATIVE = 1 + +class PropagationPhase(GObject.GEnum): + BUBBLE = 2 + CAPTURE = 1 + NONE = 0 + TARGET = 3 + +class RecentManagerError(GObject.GEnum): + INVALID_ENCODING = 2 + INVALID_URI = 1 + NOT_FOUND = 0 + NOT_REGISTERED = 3 + READ = 4 + UNKNOWN = 6 + WRITE = 5 + @staticmethod + def quark() -> int: ... + +class ResponseType(GObject.GEnum): + ACCEPT = -3 + APPLY = -10 + CANCEL = -6 + CLOSE = -7 + DELETE_EVENT = -4 + HELP = -11 + NO = -9 + NONE = -1 + OK = -5 + REJECT = -2 + YES = -8 + +class RevealerTransitionType(GObject.GEnum): + CROSSFADE = 1 + NONE = 0 + SLIDE_DOWN = 5 + SLIDE_LEFT = 3 + SLIDE_RIGHT = 2 + SLIDE_UP = 4 + SWING_DOWN = 9 + SWING_LEFT = 7 + SWING_RIGHT = 6 + SWING_UP = 8 + +class ScrollStep(GObject.GEnum): + ENDS = 2 + HORIZONTAL_ENDS = 5 + HORIZONTAL_PAGES = 4 + HORIZONTAL_STEPS = 3 + PAGES = 1 + STEPS = 0 + +class ScrollType(GObject.GEnum): + END = 15 + JUMP = 1 + NONE = 0 + PAGE_BACKWARD = 4 + PAGE_DOWN = 9 + PAGE_FORWARD = 5 + PAGE_LEFT = 12 + PAGE_RIGHT = 13 + PAGE_UP = 8 + START = 14 + STEP_BACKWARD = 2 + STEP_DOWN = 7 + STEP_FORWARD = 3 + STEP_LEFT = 10 + STEP_RIGHT = 11 + STEP_UP = 6 + +class ScrollablePolicy(GObject.GEnum): + MINIMUM = 0 + NATURAL = 1 + +class SelectionMode(GObject.GEnum): + BROWSE = 2 + MULTIPLE = 3 + NONE = 0 + SINGLE = 1 + +class SensitivityType(GObject.GEnum): + AUTO = 0 + OFF = 2 + ON = 1 + +class ShortcutScope(GObject.GEnum): + GLOBAL = 2 + LOCAL = 0 + MANAGED = 1 + +class ShortcutType(GObject.GEnum): + ACCELERATOR = 0 + GESTURE = 7 + GESTURE_PINCH = 1 + GESTURE_ROTATE_CLOCKWISE = 3 + GESTURE_ROTATE_COUNTERCLOCKWISE = 4 + GESTURE_STRETCH = 2 + GESTURE_SWIPE_LEFT = 8 + GESTURE_SWIPE_RIGHT = 9 + GESTURE_TWO_FINGER_SWIPE_LEFT = 5 + GESTURE_TWO_FINGER_SWIPE_RIGHT = 6 + +class SizeGroupMode(GObject.GEnum): + BOTH = 3 + HORIZONTAL = 1 + NONE = 0 + VERTICAL = 2 + +class SizeRequestMode(GObject.GEnum): + CONSTANT_SIZE = 2 + HEIGHT_FOR_WIDTH = 0 + WIDTH_FOR_HEIGHT = 1 + +class SortType(GObject.GEnum): + ASCENDING = 0 + DESCENDING = 1 + +class SorterChange(GObject.GEnum): + DIFFERENT = 0 + INVERTED = 1 + LESS_STRICT = 2 + MORE_STRICT = 3 + +class SorterOrder(GObject.GEnum): + NONE = 1 + PARTIAL = 0 + TOTAL = 2 + +class SpinButtonUpdatePolicy(GObject.GEnum): + ALWAYS = 0 + IF_VALID = 1 + +class SpinType(GObject.GEnum): + END = 5 + HOME = 4 + PAGE_BACKWARD = 3 + PAGE_FORWARD = 2 + STEP_BACKWARD = 1 + STEP_FORWARD = 0 + USER_DEFINED = 6 + +class StackTransitionType(GObject.GEnum): + CROSSFADE = 1 + NONE = 0 + OVER_DOWN = 9 + OVER_DOWN_UP = 17 + OVER_LEFT = 10 + OVER_LEFT_RIGHT = 18 + OVER_RIGHT = 11 + OVER_RIGHT_LEFT = 19 + OVER_UP = 8 + OVER_UP_DOWN = 16 + ROTATE_LEFT = 20 + ROTATE_LEFT_RIGHT = 22 + ROTATE_RIGHT = 21 + SLIDE_DOWN = 5 + SLIDE_LEFT = 3 + SLIDE_LEFT_RIGHT = 6 + SLIDE_RIGHT = 2 + SLIDE_UP = 4 + SLIDE_UP_DOWN = 7 + UNDER_DOWN = 13 + UNDER_LEFT = 14 + UNDER_RIGHT = 15 + UNDER_UP = 12 + +class StringFilterMatchMode(GObject.GEnum): + EXACT = 0 + PREFIX = 2 + SUBSTRING = 1 + +class SymbolicColor(GObject.GEnum): + ERROR = 1 + FOREGROUND = 0 + SUCCESS = 3 + WARNING = 2 + +class SystemSetting(GObject.GEnum): + DISPLAY = 3 + DPI = 0 + FONT_CONFIG = 2 + FONT_NAME = 1 + ICON_THEME = 4 + +class TextDirection(GObject.GEnum): + LTR = 1 + NONE = 0 + RTL = 2 + +class TextExtendSelection(GObject.GEnum): + LINE = 1 + WORD = 0 + +class TextViewLayer(GObject.GEnum): + ABOVE_TEXT = 1 + BELOW_TEXT = 0 + +class TextWindowType(GObject.GEnum): + BOTTOM = 6 + LEFT = 3 + RIGHT = 4 + TEXT = 2 + TOP = 5 + WIDGET = 1 + +class TreeViewColumnSizing(GObject.GEnum): + AUTOSIZE = 1 + FIXED = 2 + GROW_ONLY = 0 + +class TreeViewDropPosition(GObject.GEnum): + AFTER = 1 + BEFORE = 0 + INTO_OR_AFTER = 3 + INTO_OR_BEFORE = 2 + +class TreeViewGridLines(GObject.GEnum): + BOTH = 3 + HORIZONTAL = 1 + NONE = 0 + VERTICAL = 2 + +class Unit(GObject.GEnum): + INCH = 2 + MM = 3 + NONE = 0 + POINTS = 1 + +class WrapMode(GObject.GEnum): + CHAR = 1 + NONE = 0 + WORD = 2 + WORD_CHAR = 3 diff --git a/src/gi-stubs/repository/GtkSource.pyi b/src/gi-stubs/repository/GtkSource.pyi new file mode 100644 index 00000000..7f7e8156 --- /dev/null +++ b/src/gi-stubs/repository/GtkSource.pyi @@ -0,0 +1,2701 @@ +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type + +from gi.repository import Gdk +from gi.repository import GdkPixbuf +from gi.repository import Gio +from gi.repository import GLib +from gi.repository import GObject +from gi.repository import Gtk +from gi.repository import Pango + +_namespace: str = "GtkSource" +_version: str = "5" + +def encoding_get_all() -> list[Encoding]: ... +def encoding_get_current() -> Encoding: ... +def encoding_get_default_candidates() -> list[Encoding]: ... +def encoding_get_from_charset(charset: str) -> Optional[Encoding]: ... +def encoding_get_utf8() -> Encoding: ... +def file_loader_error_quark() -> int: ... +def file_saver_error_quark() -> int: ... +def finalize() -> None: ... +def init() -> None: ... +def scheduler_add(callback: Callable[..., bool], *user_data: Any) -> int: ... +def scheduler_add_full(callback: Callable[..., bool], *user_data: Any) -> int: ... +def scheduler_remove(handler_id: int) -> None: ... +def utils_escape_search_text(text: str) -> str: ... +def utils_unescape_search_text(text: str) -> str: ... + +class Buffer(Gtk.TextBuffer): + class Props: + highlight_matching_brackets: bool + highlight_syntax: bool + implicit_trailing_newline: bool + language: Language + style_scheme: StyleScheme + can_redo: bool + can_undo: bool + cursor_position: int + enable_undo: bool + has_selection: bool + tag_table: Gtk.TextTagTable + text: str + + props: Props = ... + parent_instance: Gtk.TextBuffer = ... + def __init__( + self, + highlight_matching_brackets: bool = ..., + highlight_syntax: bool = ..., + implicit_trailing_newline: bool = ..., + language: Language = ..., + style_scheme: StyleScheme = ..., + enable_undo: bool = ..., + tag_table: Gtk.TextTagTable = ..., + text: str = ..., + ): ... + def backward_iter_to_source_mark( + self, category: Optional[str] = None + ) -> Tuple[bool, Gtk.TextIter]: ... + def change_case( + self, case_type: ChangeCaseType, start: Gtk.TextIter, end: Gtk.TextIter + ) -> None: ... + def create_source_mark( + self, name: Optional[str], category: str, where: Gtk.TextIter + ) -> Mark: ... + def do_bracket_matched( + self, iter: Gtk.TextIter, state: BracketMatchType + ) -> None: ... + def ensure_highlight(self, start: Gtk.TextIter, end: Gtk.TextIter) -> None: ... + def forward_iter_to_source_mark( + self, category: Optional[str] = None + ) -> Tuple[bool, Gtk.TextIter]: ... + def get_context_classes_at_iter(self, iter: Gtk.TextIter) -> list[str]: ... + def get_highlight_matching_brackets(self) -> bool: ... + def get_highlight_syntax(self) -> bool: ... + def get_implicit_trailing_newline(self) -> bool: ... + def get_language(self) -> Optional[Language]: ... + def get_source_marks_at_iter( + self, iter: Gtk.TextIter, category: Optional[str] = None + ) -> list[Mark]: ... + def get_source_marks_at_line( + self, line: int, category: Optional[str] = None + ) -> list[Mark]: ... + def get_style_scheme(self) -> Optional[StyleScheme]: ... + def iter_backward_to_context_class_toggle( + self, context_class: str + ) -> Tuple[bool, Gtk.TextIter]: ... + def iter_forward_to_context_class_toggle( + self, context_class: str + ) -> Tuple[bool, Gtk.TextIter]: ... + def iter_has_context_class( + self, iter: Gtk.TextIter, context_class: str + ) -> bool: ... + def join_lines(self, start: Gtk.TextIter, end: Gtk.TextIter) -> None: ... + @classmethod + def new(cls, table: Optional[Gtk.TextTagTable] = None) -> Buffer: ... + @classmethod + def new_with_language(cls, language: Language) -> Buffer: ... + def remove_source_marks( + self, start: Gtk.TextIter, end: Gtk.TextIter, category: Optional[str] = None + ) -> None: ... + def set_highlight_matching_brackets(self, highlight: bool) -> None: ... + def set_highlight_syntax(self, highlight: bool) -> None: ... + def set_implicit_trailing_newline( + self, implicit_trailing_newline: bool + ) -> None: ... + def set_language(self, language: Optional[Language] = None) -> None: ... + def set_style_scheme(self, scheme: Optional[StyleScheme] = None) -> None: ... + def sort_lines( + self, start: Gtk.TextIter, end: Gtk.TextIter, flags: SortFlags, column: int + ) -> None: ... + +class BufferClass(GObject.GPointer): + parent_class: Gtk.TextBufferClass = ... + bracket_matched: Callable[[Buffer, Gtk.TextIter, BracketMatchType], None] = ... + _reserved: list[None] = ... + +class Completion(GObject.Object): + class Props: + buffer: Gtk.TextView + page_size: int + remember_info_visibility: bool + select_on_show: bool + show_icons: bool + view: View + + props: Props = ... + def __init__( + self, + page_size: int = ..., + remember_info_visibility: bool = ..., + select_on_show: bool = ..., + show_icons: bool = ..., + view: View = ..., + ): ... + def add_provider(self, provider: CompletionProvider) -> None: ... + def block_interactive(self) -> None: ... + @staticmethod + def fuzzy_highlight( + haystack: str, casefold_query: str + ) -> Optional[Pango.AttrList]: ... + @staticmethod + def fuzzy_match( + haystack: Optional[str], casefold_needle: str + ) -> Tuple[bool, int]: ... + def get_buffer(self) -> Buffer: ... + def get_page_size(self) -> int: ... + def get_view(self) -> View: ... + def hide(self) -> None: ... + def remove_provider(self, provider: CompletionProvider) -> None: ... + def set_page_size(self, page_size: int) -> None: ... + def show(self) -> None: ... + def unblock_interactive(self) -> None: ... + +class CompletionCell(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + class Props: + column: CompletionColumn + markup: str + paintable: Gdk.Paintable + text: str + widget: Gtk.Widget + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + + props: Props = ... + def __init__( + self, + column: CompletionColumn = ..., + markup: str = ..., + paintable: Gdk.Paintable = ..., + text: str = ..., + widget: Gtk.Widget = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + def get_column(self) -> CompletionColumn: ... + def get_widget(self) -> Optional[Gtk.Widget]: ... + def set_gicon(self, gicon: Gio.Icon) -> None: ... + def set_icon_name(self, icon_name: str) -> None: ... + def set_markup(self, markup: str) -> None: ... + def set_paintable(self, paintable: Gdk.Paintable) -> None: ... + def set_text(self, text: Optional[str] = None) -> None: ... + def set_text_with_attributes(self, text: str, attrs: Pango.AttrList) -> None: ... + def set_widget(self, child: Gtk.Widget) -> None: ... + +class CompletionCellClass(GObject.GPointer): + parent_class: Gtk.WidgetClass = ... + +class CompletionClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class CompletionContext(GObject.Object, Gio.ListModel): + class Props: + busy: bool + completion: Completion + empty: bool + + props: Props = ... + def __init__(self, completion: Completion = ...): ... + def get_activation(self) -> CompletionActivation: ... + def get_bounds(self) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter]: ... + def get_buffer(self) -> Optional[Buffer]: ... + def get_busy(self) -> bool: ... + def get_completion(self) -> Optional[Completion]: ... + def get_empty(self) -> bool: ... + def get_language(self) -> Optional[Language]: ... + def get_proposals_for_provider( + self, provider: CompletionProvider + ) -> Optional[Gio.ListModel]: ... + def get_view(self) -> Optional[View]: ... + def get_word(self) -> str: ... + def list_providers(self) -> Gio.ListModel: ... + def set_proposals_for_provider( + self, provider: CompletionProvider, results: Optional[Gio.ListModel] = None + ) -> None: ... + +class CompletionContextClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class CompletionProposal(GObject.GInterface): + def get_typed_text(self) -> Optional[str]: ... + +class CompletionProposalInterface(GObject.GPointer): + parent_iface: GObject.TypeInterface = ... + get_typed_text: Callable[[CompletionProposal], Optional[str]] = ... + +class CompletionProvider(GObject.GInterface): + def activate( + self, context: CompletionContext, proposal: CompletionProposal + ) -> None: ... + def display( + self, + context: CompletionContext, + proposal: CompletionProposal, + cell: CompletionCell, + ) -> None: ... + def get_priority(self, context: CompletionContext) -> int: ... + def get_title(self) -> Optional[str]: ... + def is_trigger(self, iter: Gtk.TextIter, ch: str) -> bool: ... + def key_activates( + self, + context: CompletionContext, + proposal: CompletionProposal, + keyval: int, + state: Gdk.ModifierType, + ) -> bool: ... + def list_alternates( + self, context: CompletionContext, proposal: CompletionProposal + ) -> Optional[list[CompletionProposal]]: ... + def populate_async( + self, + context: CompletionContext, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def populate_finish(self, result: Gio.AsyncResult) -> Gio.ListModel: ... + def refilter(self, context: CompletionContext, model: Gio.ListModel) -> None: ... + +class CompletionProviderInterface(GObject.GPointer): + parent_iface: GObject.TypeInterface = ... + get_title: Callable[[CompletionProvider], Optional[str]] = ... + get_priority: Callable[[CompletionProvider, CompletionContext], int] = ... + is_trigger: Callable[[CompletionProvider, Gtk.TextIter, str], bool] = ... + key_activates: Callable[ + [ + CompletionProvider, + CompletionContext, + CompletionProposal, + int, + Gdk.ModifierType, + ], + bool, + ] = ... + populate: None = ... + populate_async: Callable[..., None] = ... + populate_finish: Callable[[CompletionProvider, Gio.AsyncResult], Gio.ListModel] = ( + ... + ) + refilter: Callable[[CompletionProvider, CompletionContext, Gio.ListModel], None] = ( + ... + ) + display: Callable[ + [CompletionProvider, CompletionContext, CompletionProposal, CompletionCell], + None, + ] = ... + activate: Callable[ + [CompletionProvider, CompletionContext, CompletionProposal], None + ] = ... + list_alternates: Callable[ + [CompletionProvider, CompletionContext, CompletionProposal], + Optional[list[CompletionProposal]], + ] = ... + +class CompletionSnippets(GObject.Object, CompletionProvider): + class Props: + priority: int + title: str + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, priority: int = ..., title: str = ...): ... + @classmethod + def new(cls) -> CompletionSnippets: ... + +class CompletionSnippetsClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + _reserved: list[None] = ... + +class CompletionWords(GObject.Object, CompletionProvider): + class Props: + minimum_word_size: int + priority: int + proposals_batch_size: int + scan_batch_size: int + title: str + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, + minimum_word_size: int = ..., + priority: int = ..., + proposals_batch_size: int = ..., + scan_batch_size: int = ..., + title: str = ..., + ): ... + @classmethod + def new(cls, title: Optional[str] = None) -> CompletionWords: ... + def register(self, buffer: Gtk.TextBuffer) -> None: ... + def unregister(self, buffer: Gtk.TextBuffer) -> None: ... + +class CompletionWordsClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + _reserved: list[None] = ... + +class Encoding(GObject.GBoxed): + def copy(self) -> Encoding: ... + def free(self) -> None: ... + @staticmethod + def get_all() -> list[Encoding]: ... + def get_charset(self) -> str: ... + @staticmethod + def get_current() -> Encoding: ... + @staticmethod + def get_default_candidates() -> list[Encoding]: ... + @staticmethod + def get_from_charset(charset: str) -> Optional[Encoding]: ... + def get_name(self) -> str: ... + @staticmethod + def get_utf8() -> Encoding: ... + def to_string(self) -> str: ... + +class File(GObject.Object): + class Props: + compression_type: CompressionType + encoding: Encoding + location: Gio.File + newline_type: NewlineType + read_only: bool + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, location: Gio.File = ...): ... + def check_file_on_disk(self) -> None: ... + def get_compression_type(self) -> CompressionType: ... + def get_encoding(self) -> Encoding: ... + def get_location(self) -> Gio.File: ... + def get_newline_type(self) -> NewlineType: ... + def is_deleted(self) -> bool: ... + def is_externally_modified(self) -> bool: ... + def is_local(self) -> bool: ... + def is_readonly(self) -> bool: ... + @classmethod + def new(cls) -> File: ... + def set_location(self, location: Optional[Gio.File] = None) -> None: ... + +class FileClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + _reserved: list[None] = ... + +class FileLoader(GObject.Object): + class Props: + buffer: Buffer + file: File + input_stream: Gio.InputStream + location: Gio.File + + props: Props = ... + def __init__( + self, + buffer: Buffer = ..., + file: File = ..., + input_stream: Gio.InputStream = ..., + location: Gio.File = ..., + ): ... + def get_buffer(self) -> Buffer: ... + def get_compression_type(self) -> CompressionType: ... + def get_encoding(self) -> Encoding: ... + def get_file(self) -> File: ... + def get_input_stream(self) -> Optional[Gio.InputStream]: ... + def get_location(self) -> Optional[Gio.File]: ... + def get_newline_type(self) -> NewlineType: ... + def load_async( + self, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + progress_callback: Optional[Callable[..., None]] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def load_finish(self, result: Gio.AsyncResult) -> bool: ... + @classmethod + def new(cls, buffer: Buffer, file: File) -> FileLoader: ... + @classmethod + def new_from_stream( + cls, buffer: Buffer, file: File, stream: Gio.InputStream + ) -> FileLoader: ... + def set_candidate_encodings(self, candidate_encodings: list[Encoding]) -> None: ... + +class FileLoaderClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class FileSaver(GObject.Object): + class Props: + buffer: Buffer + compression_type: CompressionType + encoding: Encoding + file: File + flags: FileSaverFlags + location: Gio.File + newline_type: NewlineType + + props: Props = ... + def __init__( + self, + buffer: Buffer = ..., + compression_type: CompressionType = ..., + encoding: Encoding = ..., + file: File = ..., + flags: FileSaverFlags = ..., + location: Gio.File = ..., + newline_type: NewlineType = ..., + ): ... + def get_buffer(self) -> Buffer: ... + def get_compression_type(self) -> CompressionType: ... + def get_encoding(self) -> Encoding: ... + def get_file(self) -> File: ... + def get_flags(self) -> FileSaverFlags: ... + def get_location(self) -> Gio.File: ... + def get_newline_type(self) -> NewlineType: ... + @classmethod + def new(cls, buffer: Buffer, file: File) -> FileSaver: ... + @classmethod + def new_with_target( + cls, buffer: Buffer, file: File, target_location: Gio.File + ) -> FileSaver: ... + def save_async( + self, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + progress_callback: Optional[Callable[..., None]] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def save_finish(self, result: Gio.AsyncResult) -> bool: ... + def set_compression_type(self, compression_type: CompressionType) -> None: ... + def set_encoding(self, encoding: Optional[Encoding] = None) -> None: ... + def set_flags(self, flags: FileSaverFlags) -> None: ... + def set_newline_type(self, newline_type: NewlineType) -> None: ... + +class FileSaverClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + class Props: + view: View + window_type: Gtk.TextWindowType + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + + props: Props = ... + def __init__( + self, + view: View = ..., + window_type: Gtk.TextWindowType = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + def get_view(self) -> View: ... + def insert(self, renderer: GutterRenderer, position: int) -> bool: ... + def remove(self, renderer: GutterRenderer) -> None: ... + def reorder(self, renderer: GutterRenderer, position: int) -> None: ... + +class GutterClass(GObject.GPointer): + parent_class: Gtk.WidgetClass = ... + +class GutterLines(GObject.Object): + def add_class(self, line: int, name: str) -> None: ... + def add_qclass(self, line: int, qname: int) -> None: ... + def get_buffer(self) -> Gtk.TextBuffer: ... + def get_first(self) -> int: ... + def get_iter_at_line(self, line: int) -> Gtk.TextIter: ... + def get_last(self) -> int: ... + def get_line_yrange( + self, line: int, mode: GutterRendererAlignmentMode + ) -> Tuple[int, int]: ... + def get_view(self) -> Gtk.TextView: ... + def has_any_class(self, line: int) -> bool: ... + def has_class(self, line: int, name: str) -> bool: ... + def has_qclass(self, line: int, qname: int) -> bool: ... + def is_cursor(self, line: int) -> bool: ... + def is_prelit(self, line: int) -> bool: ... + def is_selected(self, line: int) -> bool: ... + def remove_class(self, line: int, name: str) -> None: ... + def remove_qclass(self, line: int, qname: int) -> None: ... + +class GutterLinesClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + class Props: + alignment_mode: GutterRendererAlignmentMode + lines: GutterLines + view: Gtk.TextView + xalign: float + xpad: int + yalign: float + ypad: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + + props: Props = ... + parent_instance: Gtk.Widget = ... + def __init__( + self, + alignment_mode: GutterRendererAlignmentMode = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + def activate( + self, + iter: Gtk.TextIter, + area: Gdk.Rectangle, + button: int, + state: Gdk.ModifierType, + n_presses: int, + ) -> None: ... + def align_cell( + self, line: int, width: float, height: float + ) -> Tuple[float, float]: ... + def do_activate( + self, + iter: Gtk.TextIter, + area: Gdk.Rectangle, + button: int, + state: Gdk.ModifierType, + n_presses: int, + ) -> None: ... + def do_begin(self, lines: GutterLines) -> None: ... + def do_change_buffer(self, old_buffer: Optional[Buffer] = None) -> None: ... + def do_change_view(self, old_view: Optional[View] = None) -> None: ... + def do_end(self) -> None: ... + def do_query_activatable(self, iter: Gtk.TextIter, area: Gdk.Rectangle) -> bool: ... + def do_query_data(self, lines: GutterLines, line: int) -> None: ... + def do_snapshot_line( + self, snapshot: Gtk.Snapshot, lines: GutterLines, line: int + ) -> None: ... + def get_alignment_mode(self) -> GutterRendererAlignmentMode: ... + def get_buffer(self) -> Optional[Buffer]: ... + def get_view(self) -> View: ... + def get_xalign(self) -> float: ... + def get_xpad(self) -> int: ... + def get_yalign(self) -> float: ... + def get_ypad(self) -> int: ... + def query_activatable(self, iter: Gtk.TextIter, area: Gdk.Rectangle) -> bool: ... + def set_alignment_mode(self, mode: GutterRendererAlignmentMode) -> None: ... + def set_xalign(self, xalign: float) -> None: ... + def set_xpad(self, xpad: int) -> None: ... + def set_yalign(self, yalign: float) -> None: ... + def set_ypad(self, ypad: int) -> None: ... + +class GutterRendererClass(GObject.GPointer): + parent_class: Gtk.WidgetClass = ... + query_data: Callable[[GutterRenderer, GutterLines, int], None] = ... + begin: Callable[[GutterRenderer, GutterLines], None] = ... + snapshot_line: Callable[[GutterRenderer, Gtk.Snapshot, GutterLines, int], None] = ( + ... + ) + end: Callable[[GutterRenderer], None] = ... + change_view: Callable[[GutterRenderer, Optional[View]], None] = ... + change_buffer: Callable[[GutterRenderer, Optional[Buffer]], None] = ... + query_activatable: Callable[[GutterRenderer, Gtk.TextIter, Gdk.Rectangle], bool] = ( + ... + ) + activate: Callable[ + [GutterRenderer, Gtk.TextIter, Gdk.Rectangle, int, Gdk.ModifierType, int], None + ] = ... + _reserved: list[None] = ... + +class GutterRendererPixbuf( + GutterRenderer, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget +): + class Props: + gicon: Gio.Icon + icon_name: str + paintable: Gdk.Paintable + pixbuf: GdkPixbuf.Pixbuf + alignment_mode: GutterRendererAlignmentMode + lines: GutterLines + view: Gtk.TextView + xalign: float + xpad: int + yalign: float + ypad: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + + props: Props = ... + parent_instance: GutterRenderer = ... + def __init__( + self, + gicon: Gio.Icon = ..., + icon_name: str = ..., + paintable: Gdk.Paintable = ..., + pixbuf: GdkPixbuf.Pixbuf = ..., + alignment_mode: GutterRendererAlignmentMode = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + def get_gicon(self) -> Gio.Icon: ... + def get_icon_name(self) -> str: ... + def get_paintable(self) -> Optional[Gdk.Paintable]: ... + def get_pixbuf(self) -> GdkPixbuf.Pixbuf: ... + @classmethod + def new(cls) -> GutterRendererPixbuf: ... + def overlay_paintable(self, paintable: Gdk.Paintable) -> None: ... + def set_gicon(self, icon: Optional[Gio.Icon] = None) -> None: ... + def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... + def set_paintable(self, paintable: Optional[Gdk.Paintable] = None) -> None: ... + def set_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... + +class GutterRendererPixbufClass(GObject.GPointer): + parent_class: GutterRendererClass = ... + _reserved: list[None] = ... + +class GutterRendererText( + GutterRenderer, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget +): + class Props: + markup: str + text: str + alignment_mode: GutterRendererAlignmentMode + lines: GutterLines + view: Gtk.TextView + xalign: float + xpad: int + yalign: float + ypad: int + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + + props: Props = ... + parent_instance: GutterRenderer = ... + def __init__( + self, + markup: str = ..., + text: str = ..., + alignment_mode: GutterRendererAlignmentMode = ..., + xalign: float = ..., + xpad: int = ..., + yalign: float = ..., + ypad: int = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + def measure(self, text: str) -> Tuple[int, int]: ... + def measure_markup(self, markup: str) -> Tuple[int, int]: ... + @classmethod + def new(cls) -> GutterRendererText: ... + def set_markup(self, markup: str, length: int) -> None: ... + def set_text(self, text: str, length: int) -> None: ... + +class GutterRendererTextClass(GObject.GPointer): + parent_class: GutterRendererClass = ... + _reserved: list[None] = ... + +class Hover(GObject.Object): + class Props: + hover_delay: int + + props: Props = ... + def __init__(self, hover_delay: int = ...): ... + def add_provider(self, provider: HoverProvider) -> None: ... + def remove_provider(self, provider: HoverProvider) -> None: ... + +class HoverClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class HoverContext(GObject.Object): + def get_bounds(self) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter]: ... + def get_buffer(self) -> Buffer: ... + def get_iter(self, iter: Gtk.TextIter) -> bool: ... + def get_view(self) -> View: ... + +class HoverContextClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + class Props: + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + + props: Props = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + def append(self, child: Gtk.Widget) -> None: ... + def insert_after(self, child: Gtk.Widget, sibling: Gtk.Widget) -> None: ... + def prepend(self, child: Gtk.Widget) -> None: ... + def remove(self, child: Gtk.Widget) -> None: ... + +class HoverDisplayClass(GObject.GPointer): + parent_class: Gtk.WidgetClass = ... + +class HoverProvider(GObject.GInterface): + def populate_async( + self, + context: HoverContext, + display: HoverDisplay, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def populate_finish(self, result: Gio.AsyncResult) -> bool: ... + +class HoverProviderInterface(GObject.GPointer): + parent_iface: GObject.TypeInterface = ... + populate: Callable[[HoverProvider, HoverContext, HoverDisplay], bool] = ... + populate_async: Callable[..., None] = ... + populate_finish: Callable[[HoverProvider, Gio.AsyncResult], bool] = ... + +class Indenter(GObject.GInterface): + def indent(self, view: View) -> Gtk.TextIter: ... + def is_trigger( + self, view: View, location: Gtk.TextIter, state: Gdk.ModifierType, keyval: int + ) -> bool: ... + +class IndenterInterface(GObject.GPointer): + parent_iface: GObject.TypeInterface = ... + is_trigger: Callable[ + [Indenter, View, Gtk.TextIter, Gdk.ModifierType, int], bool + ] = ... + indent: Callable[[Indenter, View], Gtk.TextIter] = ... + +class Language(GObject.Object): + class Props: + hidden: bool + id: str + name: str + section: str + + props: Props = ... + def get_globs(self) -> Optional[list[str]]: ... + def get_hidden(self) -> bool: ... + def get_id(self) -> str: ... + def get_metadata(self, name: str) -> Optional[str]: ... + def get_mime_types(self) -> Optional[list[str]]: ... + def get_name(self) -> str: ... + def get_section(self) -> str: ... + def get_style_fallback(self, style_id: str) -> Optional[str]: ... + def get_style_ids(self) -> Optional[list[str]]: ... + def get_style_name(self, style_id: str) -> Optional[str]: ... + +class LanguageClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class LanguageManager(GObject.Object): + class Props: + language_ids: list[str] + search_path: list[str] + + props: Props = ... + def __init__(self, search_path: Sequence[str] = ...): ... + def append_search_path(self, path: str) -> None: ... + @staticmethod + def get_default() -> LanguageManager: ... + def get_language(self, id: str) -> Optional[Language]: ... + def get_language_ids(self) -> Optional[list[str]]: ... + def get_search_path(self) -> list[str]: ... + def guess_language( + self, filename: Optional[str] = None, content_type: Optional[str] = None + ) -> Optional[Language]: ... + @classmethod + def new(cls) -> LanguageManager: ... + def prepend_search_path(self, path: str) -> None: ... + def set_search_path(self, dirs: Optional[Sequence[str]] = None) -> None: ... + +class LanguageManagerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable): + class Props: + font_desc: Pango.FontDescription + view: View + auto_indent: bool + background_pattern: BackgroundPatternType + completion: Completion + enable_snippets: bool + highlight_current_line: bool + indent_on_tab: bool + indent_width: int + indenter: Indenter + insert_spaces_instead_of_tabs: bool + right_margin_position: int + show_line_marks: bool + show_line_numbers: bool + show_right_margin: bool + smart_backspace: bool + smart_home_end: SmartHomeEndType + space_drawer: SpaceDrawer + tab_width: int + accepts_tab: bool + bottom_margin: int + buffer: Gtk.TextBuffer + cursor_visible: bool + editable: bool + extra_menu: Gio.MenuModel + im_module: str + indent: int + input_hints: Gtk.InputHints + input_purpose: Gtk.InputPurpose + justification: Gtk.Justification + left_margin: int + monospace: bool + overwrite: bool + pixels_above_lines: int + pixels_below_lines: int + pixels_inside_wrap: int + right_margin: int + tabs: Pango.TabArray + top_margin: int + wrap_mode: Gtk.WrapMode + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + hadjustment: Gtk.Adjustment + hscroll_policy: Gtk.ScrollablePolicy + vadjustment: Gtk.Adjustment + vscroll_policy: Gtk.ScrollablePolicy + + props: Props = ... + parent_instance: View = ... + def __init__( + self, + font_desc: Pango.FontDescription = ..., + view: View = ..., + auto_indent: bool = ..., + background_pattern: BackgroundPatternType = ..., + enable_snippets: bool = ..., + highlight_current_line: bool = ..., + indent_on_tab: bool = ..., + indent_width: int = ..., + indenter: Indenter = ..., + insert_spaces_instead_of_tabs: bool = ..., + right_margin_position: int = ..., + show_line_marks: bool = ..., + show_line_numbers: bool = ..., + show_right_margin: bool = ..., + smart_backspace: bool = ..., + smart_home_end: SmartHomeEndType = ..., + tab_width: int = ..., + accepts_tab: bool = ..., + bottom_margin: int = ..., + buffer: Gtk.TextBuffer = ..., + cursor_visible: bool = ..., + editable: bool = ..., + extra_menu: Gio.MenuModel = ..., + im_module: str = ..., + indent: int = ..., + input_hints: Gtk.InputHints = ..., + input_purpose: Gtk.InputPurpose = ..., + justification: Gtk.Justification = ..., + left_margin: int = ..., + monospace: bool = ..., + overwrite: bool = ..., + pixels_above_lines: int = ..., + pixels_below_lines: int = ..., + pixels_inside_wrap: int = ..., + right_margin: int = ..., + tabs: Pango.TabArray = ..., + top_margin: int = ..., + wrap_mode: Gtk.WrapMode = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + hadjustment: Gtk.Adjustment = ..., + hscroll_policy: Gtk.ScrollablePolicy = ..., + vadjustment: Gtk.Adjustment = ..., + vscroll_policy: Gtk.ScrollablePolicy = ..., + ): ... + def get_view(self) -> Optional[View]: ... + @classmethod + def new(cls) -> Map: ... + def set_view(self, view: View) -> None: ... + +class MapClass(GObject.GPointer): + parent_class: ViewClass = ... + _reserved: list[None] = ... + +class Mark(Gtk.TextMark): + class Props: + category: str + left_gravity: bool + name: str + + props: Props = ... + parent_instance: Gtk.TextMark = ... + def __init__( + self, category: str = ..., left_gravity: bool = ..., name: str = ... + ): ... + def get_category(self) -> str: ... + @classmethod + def new(cls, name: Optional[str], category: str) -> Mark: ... + def next(self, category: Optional[str] = None) -> Optional[Mark]: ... + def prev(self, category: str) -> Optional[Mark]: ... + +class MarkAttributes(GObject.Object): + class Props: + background: Gdk.RGBA + gicon: Gio.Icon + icon_name: str + pixbuf: GdkPixbuf.Pixbuf + + props: Props = ... + def __init__( + self, + background: Gdk.RGBA = ..., + gicon: Gio.Icon = ..., + icon_name: str = ..., + pixbuf: GdkPixbuf.Pixbuf = ..., + ): ... + def get_background(self) -> Tuple[bool, Gdk.RGBA]: ... + def get_gicon(self) -> Gio.Icon: ... + def get_icon_name(self) -> str: ... + def get_pixbuf(self) -> GdkPixbuf.Pixbuf: ... + def get_tooltip_markup(self, mark: Mark) -> str: ... + def get_tooltip_text(self, mark: Mark) -> str: ... + @classmethod + def new(cls) -> MarkAttributes: ... + def render_icon(self, widget: Gtk.Widget, size: int) -> Gdk.Paintable: ... + def set_background(self, background: Gdk.RGBA) -> None: ... + def set_gicon(self, gicon: Gio.Icon) -> None: ... + def set_icon_name(self, icon_name: str) -> None: ... + def set_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ... + +class MarkAttributesClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class MarkClass(GObject.GPointer): + parent_class: Gtk.TextMarkClass = ... + _reserved: list[None] = ... + +class PrintCompositor(GObject.Object): + class Props: + body_font_name: str + buffer: Buffer + footer_font_name: str + header_font_name: str + highlight_syntax: bool + line_numbers_font_name: str + n_pages: int + print_footer: bool + print_header: bool + print_line_numbers: int + tab_width: int + wrap_mode: Gtk.WrapMode + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, + body_font_name: str = ..., + buffer: Buffer = ..., + footer_font_name: str = ..., + header_font_name: str = ..., + highlight_syntax: bool = ..., + line_numbers_font_name: str = ..., + print_footer: bool = ..., + print_header: bool = ..., + print_line_numbers: int = ..., + tab_width: int = ..., + wrap_mode: Gtk.WrapMode = ..., + ): ... + def draw_page(self, context: Gtk.PrintContext, page_nr: int) -> None: ... + def get_body_font_name(self) -> str: ... + def get_bottom_margin(self, unit: Gtk.Unit) -> float: ... + def get_buffer(self) -> Buffer: ... + def get_footer_font_name(self) -> str: ... + def get_header_font_name(self) -> str: ... + def get_highlight_syntax(self) -> bool: ... + def get_left_margin(self, unit: Gtk.Unit) -> float: ... + def get_line_numbers_font_name(self) -> str: ... + def get_n_pages(self) -> int: ... + def get_pagination_progress(self) -> float: ... + def get_print_footer(self) -> bool: ... + def get_print_header(self) -> bool: ... + def get_print_line_numbers(self) -> int: ... + def get_right_margin(self, unit: Gtk.Unit) -> float: ... + def get_tab_width(self) -> int: ... + def get_top_margin(self, unit: Gtk.Unit) -> float: ... + def get_wrap_mode(self) -> Gtk.WrapMode: ... + def ignore_tag(self, tag: Gtk.TextTag) -> None: ... + @classmethod + def new(cls, buffer: Buffer) -> PrintCompositor: ... + @classmethod + def new_from_view(cls, view: View) -> PrintCompositor: ... + def paginate(self, context: Gtk.PrintContext) -> bool: ... + def set_body_font_name(self, font_name: str) -> None: ... + def set_bottom_margin(self, margin: float, unit: Gtk.Unit) -> None: ... + def set_footer_font_name(self, font_name: Optional[str] = None) -> None: ... + def set_footer_format( + self, + separator: bool, + left: Optional[str] = None, + center: Optional[str] = None, + right: Optional[str] = None, + ) -> None: ... + def set_header_font_name(self, font_name: Optional[str] = None) -> None: ... + def set_header_format( + self, + separator: bool, + left: Optional[str] = None, + center: Optional[str] = None, + right: Optional[str] = None, + ) -> None: ... + def set_highlight_syntax(self, highlight: bool) -> None: ... + def set_left_margin(self, margin: float, unit: Gtk.Unit) -> None: ... + def set_line_numbers_font_name(self, font_name: Optional[str] = None) -> None: ... + def set_print_footer(self, print_: bool) -> None: ... + def set_print_header(self, print_: bool) -> None: ... + def set_print_line_numbers(self, interval: int) -> None: ... + def set_right_margin(self, margin: float, unit: Gtk.Unit) -> None: ... + def set_tab_width(self, width: int) -> None: ... + def set_top_margin(self, margin: float, unit: Gtk.Unit) -> None: ... + def set_wrap_mode(self, wrap_mode: Gtk.WrapMode) -> None: ... + +class PrintCompositorClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + _reserved: list[None] = ... + +class Region(GObject.Object): + class Props: + buffer: Gtk.TextBuffer + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, buffer: Gtk.TextBuffer = ...): ... + def add_region(self, region_to_add: Optional[Region] = None) -> None: ... + def add_subregion(self, _start: Gtk.TextIter, _end: Gtk.TextIter) -> None: ... + def get_bounds(self) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter]: ... + def get_buffer(self) -> Optional[Gtk.TextBuffer]: ... + def get_start_region_iter(self) -> RegionIter: ... + def intersect_region( + self, region2: Optional[Region] = None + ) -> Optional[Region]: ... + def intersect_subregion( + self, _start: Gtk.TextIter, _end: Gtk.TextIter + ) -> Optional[Region]: ... + def is_empty(self) -> bool: ... + @classmethod + def new(cls, buffer: Gtk.TextBuffer) -> Region: ... + def subtract_region(self, region_to_subtract: Optional[Region] = None) -> None: ... + def subtract_subregion(self, _start: Gtk.TextIter, _end: Gtk.TextIter) -> None: ... + def to_string(self) -> Optional[str]: ... + +class RegionClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + _reserved: list[None] = ... + +class RegionIter(GObject.GPointer): + dummy1: None = ... + dummy2: int = ... + dummy3: None = ... + def get_subregion(self) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter]: ... + def is_end(self) -> bool: ... + def next(self) -> bool: ... + +class SearchContext(GObject.Object): + class Props: + buffer: Buffer + highlight: bool + match_style: Style + occurrences_count: int + regex_error: GLib.Error + settings: SearchSettings + + props: Props = ... + def __init__( + self, + buffer: Buffer = ..., + highlight: bool = ..., + match_style: Style = ..., + settings: SearchSettings = ..., + ): ... + def backward( + self, iter: Gtk.TextIter + ) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter, bool]: ... + def backward_async( + self, + iter: Gtk.TextIter, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def backward_finish( + self, result: Gio.AsyncResult + ) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter, bool]: ... + def forward( + self, iter: Gtk.TextIter + ) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter, bool]: ... + def forward_async( + self, + iter: Gtk.TextIter, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def forward_finish( + self, result: Gio.AsyncResult + ) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter, bool]: ... + def get_buffer(self) -> Buffer: ... + def get_highlight(self) -> bool: ... + def get_match_style(self) -> Style: ... + def get_occurrence_position( + self, match_start: Gtk.TextIter, match_end: Gtk.TextIter + ) -> int: ... + def get_occurrences_count(self) -> int: ... + def get_regex_error(self) -> Optional[GLib.Error]: ... + def get_settings(self) -> SearchSettings: ... + @classmethod + def new( + cls, buffer: Buffer, settings: Optional[SearchSettings] = None + ) -> SearchContext: ... + def replace( + self, + match_start: Gtk.TextIter, + match_end: Gtk.TextIter, + replace: str, + replace_length: int, + ) -> bool: ... + def replace_all(self, replace: str, replace_length: int) -> int: ... + def set_highlight(self, highlight: bool) -> None: ... + def set_match_style(self, match_style: Optional[Style] = None) -> None: ... + +class SearchContextClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class SearchSettings(GObject.Object): + class Props: + at_word_boundaries: bool + case_sensitive: bool + regex_enabled: bool + search_text: str + wrap_around: bool + + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, + at_word_boundaries: bool = ..., + case_sensitive: bool = ..., + regex_enabled: bool = ..., + search_text: str = ..., + wrap_around: bool = ..., + ): ... + def get_at_word_boundaries(self) -> bool: ... + def get_case_sensitive(self) -> bool: ... + def get_regex_enabled(self) -> bool: ... + def get_search_text(self) -> Optional[str]: ... + def get_wrap_around(self) -> bool: ... + @classmethod + def new(cls) -> SearchSettings: ... + def set_at_word_boundaries(self, at_word_boundaries: bool) -> None: ... + def set_case_sensitive(self, case_sensitive: bool) -> None: ... + def set_regex_enabled(self, regex_enabled: bool) -> None: ... + def set_search_text(self, search_text: Optional[str] = None) -> None: ... + def set_wrap_around(self, wrap_around: bool) -> None: ... + +class SearchSettingsClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + _reserved: list[None] = ... + +class Snippet(GObject.Object): + class Props: + buffer: Gtk.TextBuffer + description: str + focus_position: int + language_id: str + name: str + trigger: str + + props: Props = ... + def __init__( + self, + description: str = ..., + language_id: str = ..., + name: str = ..., + trigger: str = ..., + ): ... + def add_chunk(self, chunk: SnippetChunk) -> None: ... + def copy(self) -> Snippet: ... + def get_context(self) -> Optional[SnippetContext]: ... + def get_description(self) -> str: ... + def get_focus_position(self) -> int: ... + def get_language_id(self) -> str: ... + def get_n_chunks(self) -> int: ... + def get_name(self) -> str: ... + def get_nth_chunk(self, nth: int) -> SnippetChunk: ... + def get_trigger(self) -> Optional[str]: ... + @classmethod + def new( + cls, trigger: Optional[str] = None, language_id: Optional[str] = None + ) -> Snippet: ... + @classmethod + def new_parsed(cls, text: str) -> Snippet: ... + def set_description(self, description: str) -> None: ... + def set_language_id(self, language_id: str) -> None: ... + def set_name(self, name: str) -> None: ... + def set_trigger(self, trigger: str) -> None: ... + +class SnippetChunk(GObject.InitiallyUnowned): + class Props: + context: SnippetContext + focus_position: int + spec: str + text: str + text_set: bool + tooltip_text: str + + props: Props = ... + def __init__( + self, + context: SnippetContext = ..., + focus_position: int = ..., + spec: str = ..., + text: str = ..., + text_set: bool = ..., + tooltip_text: str = ..., + ): ... + def copy(self) -> SnippetChunk: ... + def get_context(self) -> SnippetContext: ... + def get_focus_position(self) -> int: ... + def get_spec(self) -> Optional[str]: ... + def get_text(self) -> str: ... + def get_text_set(self) -> bool: ... + def get_tooltip_text(self) -> str: ... + @classmethod + def new(cls) -> SnippetChunk: ... + def set_context(self, context: SnippetContext) -> None: ... + def set_focus_position(self, focus_position: int) -> None: ... + def set_spec(self, spec: str) -> None: ... + def set_text(self, text: str) -> None: ... + def set_text_set(self, text_set: bool) -> None: ... + def set_tooltip_text(self, tooltip_text: str) -> None: ... + +class SnippetChunkClass(GObject.GPointer): + parent_class: GObject.InitiallyUnownedClass = ... + +class SnippetClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class SnippetContext(GObject.Object): + def clear_variables(self) -> None: ... + def expand(self, input: str) -> str: ... + def get_variable(self, key: str) -> Optional[str]: ... + @classmethod + def new(cls) -> SnippetContext: ... + def set_constant(self, key: str, value: str) -> None: ... + def set_line_prefix(self, line_prefix: str) -> None: ... + def set_tab_width(self, tab_width: int) -> None: ... + def set_use_spaces(self, use_spaces: bool) -> None: ... + def set_variable(self, key: str, value: str) -> None: ... + +class SnippetContextClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class SnippetManager(GObject.Object): + class Props: + search_path: list[str] + + props: Props = ... + def __init__(self, search_path: Sequence[str] = ...): ... + @staticmethod + def get_default() -> SnippetManager: ... + def get_search_path(self) -> list[str]: ... + def get_snippet( + self, group: Optional[str], language_id: Optional[str], trigger: str + ) -> Optional[Snippet]: ... + def list_all(self) -> Gio.ListModel: ... + def list_groups(self) -> list[str]: ... + def list_matching( + self, + group: Optional[str] = None, + language_id: Optional[str] = None, + trigger_prefix: Optional[str] = None, + ) -> Gio.ListModel: ... + def set_search_path(self, dirs: Optional[Sequence[str]] = None) -> None: ... + +class SnippetManagerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class SpaceDrawer(GObject.Object): + class Props: + enable_matrix: bool + matrix: GLib.Variant + + props: Props = ... + def __init__(self, enable_matrix: bool = ..., matrix: GLib.Variant = ...): ... + def bind_matrix_setting( + self, settings: Gio.Settings, key: str, flags: Gio.SettingsBindFlags + ) -> None: ... + def get_enable_matrix(self) -> bool: ... + def get_matrix(self) -> GLib.Variant: ... + def get_types_for_locations( + self, locations: SpaceLocationFlags + ) -> SpaceTypeFlags: ... + @classmethod + def new(cls) -> SpaceDrawer: ... + def set_enable_matrix(self, enable_matrix: bool) -> None: ... + def set_matrix(self, matrix: Optional[GLib.Variant] = None) -> None: ... + def set_types_for_locations( + self, locations: SpaceLocationFlags, types: SpaceTypeFlags + ) -> None: ... + +class SpaceDrawerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class Style(GObject.Object): + class Props: + background: str + background_set: bool + bold: bool + bold_set: bool + foreground: str + foreground_set: bool + italic: bool + italic_set: bool + line_background: str + line_background_set: bool + pango_underline: Pango.Underline + scale: str + scale_set: bool + strikethrough: bool + strikethrough_set: bool + underline_color: str + underline_color_set: bool + underline_set: bool + weight: Pango.Weight + weight_set: bool + + props: Props = ... + def __init__( + self, + background: str = ..., + background_set: bool = ..., + bold: bool = ..., + bold_set: bool = ..., + foreground: str = ..., + foreground_set: bool = ..., + italic: bool = ..., + italic_set: bool = ..., + line_background: str = ..., + line_background_set: bool = ..., + pango_underline: Pango.Underline = ..., + scale: str = ..., + scale_set: bool = ..., + strikethrough: bool = ..., + strikethrough_set: bool = ..., + underline_color: str = ..., + underline_color_set: bool = ..., + underline_set: bool = ..., + weight: Pango.Weight = ..., + weight_set: bool = ..., + ): ... + def apply(self, tag: Gtk.TextTag) -> None: ... + def copy(self) -> Style: ... + +class StyleClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class StyleScheme(GObject.Object): + class Props: + description: str + filename: str + id: str + name: str + + props: Props = ... + def __init__(self, id: str = ...): ... + def get_authors(self) -> Optional[list[str]]: ... + def get_description(self) -> Optional[str]: ... + def get_filename(self) -> Optional[str]: ... + def get_id(self) -> str: ... + def get_metadata(self, name: str) -> Optional[str]: ... + def get_name(self) -> str: ... + def get_style(self, style_id: str) -> Optional[Style]: ... + +class StyleSchemeChooser(GObject.GInterface): + def get_style_scheme(self) -> StyleScheme: ... + def set_style_scheme(self, scheme: StyleScheme) -> None: ... + +class StyleSchemeChooserButton( + Gtk.Button, + Gtk.Accessible, + Gtk.Actionable, + Gtk.Buildable, + Gtk.ConstraintTarget, + StyleSchemeChooser, +): + class Props: + child: Gtk.Widget + has_frame: bool + icon_name: str + label: str + use_underline: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + action_name: str + action_target: GLib.Variant + style_scheme: StyleScheme + + props: Props = ... + parent_instance: Gtk.Button = ... + def __init__( + self, + child: Gtk.Widget = ..., + has_frame: bool = ..., + icon_name: str = ..., + label: str = ..., + use_underline: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + action_name: str = ..., + action_target: GLib.Variant = ..., + style_scheme: StyleScheme = ..., + ): ... + @classmethod + def new(cls) -> StyleSchemeChooserButton: ... + +class StyleSchemeChooserButtonClass(GObject.GPointer): + parent: Gtk.ButtonClass = ... + _reserved: list[None] = ... + +class StyleSchemeChooserInterface(GObject.GPointer): + base_interface: GObject.TypeInterface = ... + get_style_scheme: Callable[[StyleSchemeChooser], StyleScheme] = ... + set_style_scheme: Callable[[StyleSchemeChooser, StyleScheme], None] = ... + _reserved: list[None] = ... + +class StyleSchemeChooserWidget( + Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, StyleSchemeChooser +): + class Props: + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + style_scheme: StyleScheme + + props: Props = ... + parent_instance: Gtk.Widget = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + style_scheme: StyleScheme = ..., + ): ... + @classmethod + def new(cls) -> StyleSchemeChooserWidget: ... + +class StyleSchemeChooserWidgetClass(GObject.GPointer): + parent: Gtk.WidgetClass = ... + _reserved: list[None] = ... + +class StyleSchemeClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class StyleSchemeManager(GObject.Object): + class Props: + scheme_ids: list[str] + search_path: list[str] + + props: Props = ... + def __init__(self, search_path: Sequence[str] = ...): ... + def append_search_path(self, path: str) -> None: ... + def force_rescan(self) -> None: ... + @staticmethod + def get_default() -> StyleSchemeManager: ... + def get_scheme(self, scheme_id: str) -> Optional[StyleScheme]: ... + def get_scheme_ids(self) -> Optional[list[str]]: ... + def get_search_path(self) -> list[str]: ... + @classmethod + def new(cls) -> StyleSchemeManager: ... + def prepend_search_path(self, path: str) -> None: ... + def set_search_path(self, path: Optional[Sequence[str]] = None) -> None: ... + +class StyleSchemeManagerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class StyleSchemePreview( + Gtk.Widget, Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget +): + class Props: + scheme: StyleScheme + selected: bool + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + action_name: str + action_target: GLib.Variant + + props: Props = ... + def __init__( + self, + scheme: StyleScheme = ..., + selected: bool = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + action_name: str = ..., + action_target: GLib.Variant = ..., + ): ... + def get_scheme(self) -> StyleScheme: ... + def get_selected(self) -> bool: ... + @classmethod + def new(cls, scheme: StyleScheme) -> StyleSchemePreview: ... + def set_selected(self, selected: bool) -> None: ... + +class StyleSchemePreviewClass(GObject.GPointer): + parent_class: Gtk.WidgetClass = ... + +class Tag(Gtk.TextTag): + class Props: + draw_spaces: bool + draw_spaces_set: bool + accumulative_margin: bool + allow_breaks: bool + allow_breaks_set: bool + background: str + background_full_height: bool + background_full_height_set: bool + background_rgba: Gdk.RGBA + background_set: bool + direction: Gtk.TextDirection + editable: bool + editable_set: bool + fallback: bool + fallback_set: bool + family: str + family_set: bool + font: str + font_desc: Pango.FontDescription + font_features: str + font_features_set: bool + foreground: str + foreground_rgba: Gdk.RGBA + foreground_set: bool + indent: int + indent_set: bool + insert_hyphens: bool + insert_hyphens_set: bool + invisible: bool + invisible_set: bool + justification: Gtk.Justification + justification_set: bool + language: str + language_set: bool + left_margin: int + left_margin_set: bool + letter_spacing: int + letter_spacing_set: bool + line_height: float + line_height_set: bool + name: str + overline: Pango.Overline + overline_rgba: Gdk.RGBA + overline_rgba_set: bool + overline_set: bool + paragraph_background: str + paragraph_background_rgba: Gdk.RGBA + paragraph_background_set: bool + pixels_above_lines: int + pixels_above_lines_set: bool + pixels_below_lines: int + pixels_below_lines_set: bool + pixels_inside_wrap: int + pixels_inside_wrap_set: bool + right_margin: int + right_margin_set: bool + rise: int + rise_set: bool + scale: float + scale_set: bool + sentence: bool + sentence_set: bool + show_spaces: Pango.ShowFlags + show_spaces_set: bool + size: int + size_points: float + size_set: bool + stretch: Pango.Stretch + stretch_set: bool + strikethrough: bool + strikethrough_rgba: Gdk.RGBA + strikethrough_rgba_set: bool + strikethrough_set: bool + style: Pango.Style + style_set: bool + tabs: Pango.TabArray + tabs_set: bool + text_transform: Pango.TextTransform + text_transform_set: bool + underline: Pango.Underline + underline_rgba: Gdk.RGBA + underline_rgba_set: bool + underline_set: bool + variant: Pango.Variant + variant_set: bool + weight: int + weight_set: bool + word: bool + word_set: bool + wrap_mode: Gtk.WrapMode + wrap_mode_set: bool + + props: Props = ... + parent_instance: Gtk.TextTag = ... + def __init__( + self, + draw_spaces: bool = ..., + draw_spaces_set: bool = ..., + accumulative_margin: bool = ..., + allow_breaks: bool = ..., + allow_breaks_set: bool = ..., + background: str = ..., + background_full_height: bool = ..., + background_full_height_set: bool = ..., + background_rgba: Gdk.RGBA = ..., + background_set: bool = ..., + direction: Gtk.TextDirection = ..., + editable: bool = ..., + editable_set: bool = ..., + fallback: bool = ..., + fallback_set: bool = ..., + family: str = ..., + family_set: bool = ..., + font: str = ..., + font_desc: Pango.FontDescription = ..., + font_features: str = ..., + font_features_set: bool = ..., + foreground: str = ..., + foreground_rgba: Gdk.RGBA = ..., + foreground_set: bool = ..., + indent: int = ..., + indent_set: bool = ..., + insert_hyphens: bool = ..., + insert_hyphens_set: bool = ..., + invisible: bool = ..., + invisible_set: bool = ..., + justification: Gtk.Justification = ..., + justification_set: bool = ..., + language: str = ..., + language_set: bool = ..., + left_margin: int = ..., + left_margin_set: bool = ..., + letter_spacing: int = ..., + letter_spacing_set: bool = ..., + line_height: float = ..., + line_height_set: bool = ..., + name: str = ..., + overline: Pango.Overline = ..., + overline_rgba: Gdk.RGBA = ..., + overline_rgba_set: bool = ..., + overline_set: bool = ..., + paragraph_background: str = ..., + paragraph_background_rgba: Gdk.RGBA = ..., + paragraph_background_set: bool = ..., + pixels_above_lines: int = ..., + pixels_above_lines_set: bool = ..., + pixels_below_lines: int = ..., + pixels_below_lines_set: bool = ..., + pixels_inside_wrap: int = ..., + pixels_inside_wrap_set: bool = ..., + right_margin: int = ..., + right_margin_set: bool = ..., + rise: int = ..., + rise_set: bool = ..., + scale: float = ..., + scale_set: bool = ..., + sentence: bool = ..., + sentence_set: bool = ..., + show_spaces: Pango.ShowFlags = ..., + show_spaces_set: bool = ..., + size: int = ..., + size_points: float = ..., + size_set: bool = ..., + stretch: Pango.Stretch = ..., + stretch_set: bool = ..., + strikethrough: bool = ..., + strikethrough_rgba: Gdk.RGBA = ..., + strikethrough_rgba_set: bool = ..., + strikethrough_set: bool = ..., + style: Pango.Style = ..., + style_set: bool = ..., + tabs: Pango.TabArray = ..., + tabs_set: bool = ..., + text_transform: Pango.TextTransform = ..., + text_transform_set: bool = ..., + underline: Pango.Underline = ..., + underline_rgba: Gdk.RGBA = ..., + underline_rgba_set: bool = ..., + underline_set: bool = ..., + variant: Pango.Variant = ..., + variant_set: bool = ..., + weight: int = ..., + weight_set: bool = ..., + word: bool = ..., + word_set: bool = ..., + wrap_mode: Gtk.WrapMode = ..., + wrap_mode_set: bool = ..., + ): ... + @classmethod + def new(cls, name: Optional[str] = None) -> Tag: ... + +class TagClass(GObject.GPointer): + parent_class: Gtk.TextTagClass = ... + _reserved: list[None] = ... + +class View( + Gtk.TextView, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable +): + class Props: + auto_indent: bool + background_pattern: BackgroundPatternType + completion: Completion + enable_snippets: bool + highlight_current_line: bool + indent_on_tab: bool + indent_width: int + indenter: Indenter + insert_spaces_instead_of_tabs: bool + right_margin_position: int + show_line_marks: bool + show_line_numbers: bool + show_right_margin: bool + smart_backspace: bool + smart_home_end: SmartHomeEndType + space_drawer: SpaceDrawer + tab_width: int + accepts_tab: bool + bottom_margin: int + buffer: Gtk.TextBuffer + cursor_visible: bool + editable: bool + extra_menu: Gio.MenuModel + im_module: str + indent: int + input_hints: Gtk.InputHints + input_purpose: Gtk.InputPurpose + justification: Gtk.Justification + left_margin: int + monospace: bool + overwrite: bool + pixels_above_lines: int + pixels_below_lines: int + pixels_inside_wrap: int + right_margin: int + tabs: Pango.TabArray + top_margin: int + wrap_mode: Gtk.WrapMode + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Gdk.Cursor + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Gtk.LayoutManager + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Gtk.Widget + receives_default: bool + root: Gtk.Root + scale_factor: int + sensitive: bool + tooltip_markup: str + tooltip_text: str + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + hadjustment: Gtk.Adjustment + hscroll_policy: Gtk.ScrollablePolicy + vadjustment: Gtk.Adjustment + vscroll_policy: Gtk.ScrollablePolicy + + props: Props = ... + parent_instance: Gtk.TextView = ... + def __init__( + self, + auto_indent: bool = ..., + background_pattern: BackgroundPatternType = ..., + enable_snippets: bool = ..., + highlight_current_line: bool = ..., + indent_on_tab: bool = ..., + indent_width: int = ..., + indenter: Indenter = ..., + insert_spaces_instead_of_tabs: bool = ..., + right_margin_position: int = ..., + show_line_marks: bool = ..., + show_line_numbers: bool = ..., + show_right_margin: bool = ..., + smart_backspace: bool = ..., + smart_home_end: SmartHomeEndType = ..., + tab_width: int = ..., + accepts_tab: bool = ..., + bottom_margin: int = ..., + buffer: Gtk.TextBuffer = ..., + cursor_visible: bool = ..., + editable: bool = ..., + extra_menu: Gio.MenuModel = ..., + im_module: str = ..., + indent: int = ..., + input_hints: Gtk.InputHints = ..., + input_purpose: Gtk.InputPurpose = ..., + justification: Gtk.Justification = ..., + left_margin: int = ..., + monospace: bool = ..., + overwrite: bool = ..., + pixels_above_lines: int = ..., + pixels_below_lines: int = ..., + pixels_inside_wrap: int = ..., + right_margin: int = ..., + tabs: Pango.TabArray = ..., + top_margin: int = ..., + wrap_mode: Gtk.WrapMode = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Gdk.Cursor = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Gtk.LayoutManager = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: str = ..., + tooltip_text: str = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + hadjustment: Gtk.Adjustment = ..., + hscroll_policy: Gtk.ScrollablePolicy = ..., + vadjustment: Gtk.Adjustment = ..., + vscroll_policy: Gtk.ScrollablePolicy = ..., + ): ... + def do_line_mark_activated( + self, iter: Gtk.TextIter, button: int, state: Gdk.ModifierType, n_presses: int + ) -> None: ... + def do_move_lines(self, down: bool) -> None: ... + def do_move_words(self, step: int) -> None: ... + def do_push_snippet( + self, snippet: Snippet, location: Optional[Gtk.TextIter] = None + ) -> None: ... + def do_show_completion(self) -> None: ... + def get_auto_indent(self) -> bool: ... + def get_background_pattern(self) -> BackgroundPatternType: ... + # override + def get_buffer(self) -> Buffer: ... + def get_completion(self) -> Completion: ... + def get_enable_snippets(self) -> bool: ... + def get_gutter(self, window_type: Gtk.TextWindowType) -> Gutter: ... + def get_highlight_current_line(self) -> bool: ... + def get_hover(self) -> Hover: ... + def get_indent_on_tab(self) -> bool: ... + def get_indent_width(self) -> int: ... + def get_indenter(self) -> Optional[Indenter]: ... + def get_insert_spaces_instead_of_tabs(self) -> bool: ... + def get_mark_attributes(self, category: str, priority: int) -> MarkAttributes: ... + def get_right_margin_position(self) -> int: ... + def get_show_line_marks(self) -> bool: ... + def get_show_line_numbers(self) -> bool: ... + def get_show_right_margin(self) -> bool: ... + def get_smart_backspace(self) -> bool: ... + def get_smart_home_end(self) -> SmartHomeEndType: ... + def get_space_drawer(self) -> SpaceDrawer: ... + def get_tab_width(self) -> int: ... + def get_visual_column(self, iter: Gtk.TextIter) -> int: ... + def indent_lines(self, start: Gtk.TextIter, end: Gtk.TextIter) -> None: ... + @classmethod + def new(cls) -> View: ... + @classmethod + def new_with_buffer(cls, buffer: Buffer) -> View: ... + def push_snippet( + self, snippet: Snippet, location: Optional[Gtk.TextIter] = None + ) -> None: ... + def set_auto_indent(self, enable: bool) -> None: ... + def set_background_pattern( + self, background_pattern: BackgroundPatternType + ) -> None: ... + def set_enable_snippets(self, enable_snippets: bool) -> None: ... + def set_highlight_current_line(self, highlight: bool) -> None: ... + def set_indent_on_tab(self, enable: bool) -> None: ... + def set_indent_width(self, width: int) -> None: ... + def set_indenter(self, indenter: Optional[Indenter] = None) -> None: ... + def set_insert_spaces_instead_of_tabs(self, enable: bool) -> None: ... + def set_mark_attributes( + self, category: str, attributes: MarkAttributes, priority: int + ) -> None: ... + def set_right_margin_position(self, pos: int) -> None: ... + def set_show_line_marks(self, show: bool) -> None: ... + def set_show_line_numbers(self, show: bool) -> None: ... + def set_show_right_margin(self, show: bool) -> None: ... + def set_smart_backspace(self, smart_backspace: bool) -> None: ... + def set_smart_home_end(self, smart_home_end: SmartHomeEndType) -> None: ... + def set_tab_width(self, width: int) -> None: ... + def unindent_lines(self, start: Gtk.TextIter, end: Gtk.TextIter) -> None: ... + +class ViewClass(GObject.GPointer): + parent_class: Gtk.TextViewClass = ... + line_mark_activated: Callable[ + [View, Gtk.TextIter, int, Gdk.ModifierType, int], None + ] = ... + show_completion: Callable[[View], None] = ... + move_lines: Callable[[View, bool], None] = ... + move_words: Callable[[View, int], None] = ... + push_snippet: Callable[[View, Snippet, Optional[Gtk.TextIter]], None] = ... + _reserved: list[None] = ... + +class VimIMContext(Gtk.IMContext): + class Props: + command_bar_text: str + command_text: str + input_hints: Gtk.InputHints + input_purpose: Gtk.InputPurpose + + props: Props = ... + def __init__( + self, input_hints: Gtk.InputHints = ..., input_purpose: Gtk.InputPurpose = ... + ): ... + def execute_command(self, command: str) -> None: ... + def get_command_bar_text(self) -> str: ... + def get_command_text(self) -> str: ... + @classmethod + def new(cls) -> VimIMContext: ... + +class VimIMContextClass(GObject.GPointer): + parent_class: Gtk.IMContextClass = ... + +class FileSaverFlags(GObject.GFlags): + CREATE_BACKUP = 4 + IGNORE_INVALID_CHARS = 1 + IGNORE_MODIFICATION_TIME = 2 + NONE = 0 + +class SortFlags(GObject.GFlags): + CASE_SENSITIVE = 1 + NONE = 0 + REMOVE_DUPLICATES = 4 + REVERSE_ORDER = 2 + +class SpaceLocationFlags(GObject.GFlags): + ALL = 7 + INSIDE_TEXT = 2 + LEADING = 1 + NONE = 0 + TRAILING = 4 + +class SpaceTypeFlags(GObject.GFlags): + ALL = 15 + NBSP = 8 + NEWLINE = 4 + NONE = 0 + SPACE = 1 + TAB = 2 + +class BackgroundPatternType(GObject.GEnum): + GRID = 1 + NONE = 0 + +class BracketMatchType(GObject.GEnum): + FOUND = 3 + NONE = 0 + NOT_FOUND = 2 + OUT_OF_RANGE = 1 + +class ChangeCaseType(GObject.GEnum): + LOWER = 0 + TITLE = 3 + TOGGLE = 2 + UPPER = 1 + +class CompletionActivation(GObject.GEnum): + INTERACTIVE = 1 + NONE = 0 + USER_REQUESTED = 2 + +class CompletionColumn(GObject.GEnum): + AFTER = 3 + BEFORE = 1 + COMMENT = 4 + DETAILS = 5 + ICON = 0 + TYPED_TEXT = 2 + +class CompressionType(GObject.GEnum): + GZIP = 1 + NONE = 0 + +class FileLoaderError(GObject.GEnum): + CONVERSION_FALLBACK = 2 + ENCODING_AUTO_DETECTION_FAILED = 1 + TOO_BIG = 0 + @staticmethod + def quark() -> int: ... + +class FileSaverError(GObject.GEnum): + EXTERNALLY_MODIFIED = 1 + INVALID_CHARS = 0 + @staticmethod + def quark() -> int: ... + +class GutterRendererAlignmentMode(GObject.GEnum): + CELL = 0 + FIRST = 1 + LAST = 2 + +class NewlineType(GObject.GEnum): + CR = 1 + CR_LF = 2 + LF = 0 + +class SmartHomeEndType(GObject.GEnum): + AFTER = 2 + ALWAYS = 3 + BEFORE = 1 + DISABLED = 0 + +class ViewGutterPosition(GObject.GEnum): + LINES = -30 + MARKS = -20 diff --git a/src/gi-stubs/repository/JavaScriptCore.pyi b/src/gi-stubs/repository/JavaScriptCore.pyi new file mode 100644 index 00000000..eac42f08 --- /dev/null +++ b/src/gi-stubs/repository/JavaScriptCore.pyi @@ -0,0 +1,538 @@ +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar + +from gi.repository import GLib +from gi.repository import GObject + +MAJOR_VERSION: int = 2 +MICRO_VERSION: int = 3 +MINOR_VERSION: int = 42 +OPTIONS_USE_DFG: str = "useDFGJIT" +OPTIONS_USE_FTL: str = "useFTLJIT" +OPTIONS_USE_JIT: str = "useJIT" +OPTIONS_USE_LLINT: str = "useLLInt" +_lock = ... # FIXME Constant +_namespace: str = "JavaScriptCore" +_version: str = "6.0" + +def get_major_version() -> int: ... +def get_micro_version() -> int: ... +def get_minor_version() -> int: ... +def options_foreach(function: Callable[..., bool], *user_data: Any) -> None: ... +def options_get_boolean(option: str) -> Tuple[bool, bool]: ... +def options_get_double(option: str) -> Tuple[bool, float]: ... +def options_get_int(option: str) -> Tuple[bool, int]: ... +def options_get_option_group() -> GLib.OptionGroup: ... +def options_get_range_string(option: str) -> Tuple[bool, str]: ... +def options_get_size(option: str) -> Tuple[bool, int]: ... +def options_get_string(option: str) -> Tuple[bool, str]: ... +def options_get_uint(option: str) -> Tuple[bool, int]: ... +def options_set_boolean(option: str, value: bool) -> bool: ... +def options_set_double(option: str, value: float) -> bool: ... +def options_set_int(option: str, value: int) -> bool: ... +def options_set_range_string(option: str, value: str) -> bool: ... +def options_set_size(option: str, value: int) -> bool: ... +def options_set_string(option: str, value: str) -> bool: ... +def options_set_uint(option: str, value: int) -> bool: ... + +class Class(GObject.Object): + """ + :Constructors: + + :: + + Class(**properties) + + Object JSCClass + + Properties from JSCClass: + context -> JSCContext: context + name -> gchararray: name + parent -> JSCClass: parent + + Signals from GObject: + notify (GParam) + """ + + class Props: + name: str + parent: Class + context: Context + + props: Props = ... + def __init__( + self, context: Context = ..., name: str = ..., parent: Class = ... + ): ... + def add_constructor( + self, + name: Optional[str], + callback: Callable[..., None], + return_type: Type, + parameter_types: Optional[Sequence[Type]] = None, + *user_data: Any, + ) -> Value: ... + def add_constructor_variadic( + self, + name: Optional[str], + callback: Callable[..., None], + return_type: Type, + *user_data: Any, + ) -> Value: ... + def add_method( + self, + name: str, + callback: Callable[..., None], + return_type: Type, + parameter_types: Optional[Sequence[Type]] = None, + *user_data: Any, + ) -> None: ... + def add_method_variadic( + self, + name: str, + callback: Callable[..., None], + return_type: Type, + *user_data: Any, + ) -> None: ... + def add_property( + self, + name: str, + property_type: Type, + getter: Optional[Callable[[], None]] = None, + setter: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_name(self) -> str: ... + def get_parent(self) -> Class: ... + +class ClassClass(GObject.GPointer): + """ + :Constructors: + + :: + + ClassClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ClassVTable(GObject.GPointer): + """ + :Constructors: + + :: + + ClassVTable() + """ + + get_property: Callable[[Class, Context, None, str], Optional[Value]] = ... + set_property: Callable[[Class, Context, None, str, Value], bool] = ... + has_property: Callable[[Class, Context, None, str], bool] = ... + delete_property: Callable[[Class, Context, None, str], bool] = ... + enumerate_properties: Callable[[Class, Context, None], Optional[list[str]]] = ... + _jsc_reserved0: None = ... + _jsc_reserved1: None = ... + _jsc_reserved2: None = ... + _jsc_reserved3: None = ... + _jsc_reserved4: None = ... + _jsc_reserved5: None = ... + _jsc_reserved6: None = ... + _jsc_reserved7: None = ... + +class Context(GObject.Object): + """ + :Constructors: + + :: + + Context(**properties) + new() -> JavaScriptCore.Context + new_with_virtual_machine(vm:JavaScriptCore.VirtualMachine) -> JavaScriptCore.Context + + Object JSCContext + + Properties from JSCContext: + virtual-machine -> JSCVirtualMachine: virtual-machine + + Signals from GObject: + notify (GParam) + """ + + class Props: + virtual_machine: VirtualMachine + + props: Props = ... + def __init__(self, virtual_machine: VirtualMachine = ...): ... + def check_syntax( + self, code: str, length: int, mode: CheckSyntaxMode, uri: str, line_number: int + ) -> Tuple[CheckSyntaxResult, Exception]: ... + def clear_exception(self) -> None: ... + def evaluate(self, code: str, length: int) -> Value: ... + def evaluate_in_object( + self, + code: str, + length: int, + object_instance: None, + object_class: Optional[Class], + uri: str, + line_number: int, + ) -> Tuple[Value, Value]: ... + def evaluate_with_source_uri( + self, code: str, length: int, uri: str, line_number: int + ) -> Value: ... + @staticmethod + def get_current() -> Optional[Context]: ... + def get_exception(self) -> Optional[Exception]: ... + def get_global_object(self) -> Value: ... + def get_value(self, name: str) -> Value: ... + def get_virtual_machine(self) -> VirtualMachine: ... + @classmethod + def new(cls) -> Context: ... + @classmethod + def new_with_virtual_machine(cls, vm: VirtualMachine) -> Context: ... + def pop_exception_handler(self) -> None: ... + def push_exception_handler( + self, handler: Callable[..., None], *user_data: Any + ) -> None: ... + def register_class( + self, + name: str, + parent_class: Optional[Class] = None, + vtable: Optional[ClassVTable] = None, + destroy_notify: Optional[Callable[[None], None]] = None, + ) -> Class: ... + def set_value(self, name: str, value: Value) -> None: ... + def throw(self, error_message: str) -> None: ... + def throw_exception(self, exception: Exception) -> None: ... + def throw_with_name(self, error_name: str, error_message: str) -> None: ... + +class ContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContextClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Exception(GObject.Object): + """ + :Constructors: + + :: + + Exception(**properties) + new(context:JavaScriptCore.Context, message:str) -> JavaScriptCore.Exception + new_with_name(context:JavaScriptCore.Context, name:str, message:str) -> JavaScriptCore.Exception + + Object JSCException + + Signals from GObject: + notify (GParam) + """ + + def get_backtrace_string(self) -> Optional[str]: ... + def get_column_number(self) -> int: ... + def get_line_number(self) -> int: ... + def get_message(self) -> str: ... + def get_name(self) -> str: ... + def get_source_uri(self) -> Optional[str]: ... + @classmethod + def new(cls, context: Context, message: str) -> Exception: ... + @classmethod + def new_with_name(cls, context: Context, name: str, message: str) -> Exception: ... + def report(self) -> str: ... + def to_string(self) -> str: ... + +class ExceptionClass(GObject.GPointer): + """ + :Constructors: + + :: + + ExceptionClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Value(GObject.Object): + """ + :Constructors: + + :: + + Value(**properties) + new_array_buffer(context:JavaScriptCore.Context, data=None, size:int, destroy_notify:GLib.DestroyNotify=None, user_data=None) -> JavaScriptCore.Value or None + new_array_from_garray(context:JavaScriptCore.Context, array:list=None) -> JavaScriptCore.Value + new_array_from_strv(context:JavaScriptCore.Context, strv:list) -> JavaScriptCore.Value + new_boolean(context:JavaScriptCore.Context, value:bool) -> JavaScriptCore.Value + new_from_json(context:JavaScriptCore.Context, json:str) -> JavaScriptCore.Value + new_function_variadic(context:JavaScriptCore.Context, name:str=None, callback:GObject.Callback, user_data=None, return_type:GType) -> JavaScriptCore.Value + new_function(context:JavaScriptCore.Context, name:str=None, callback:GObject.Callback, user_data=None, return_type:GType, parameter_types:list=None) -> JavaScriptCore.Value + new_null(context:JavaScriptCore.Context) -> JavaScriptCore.Value + new_number(context:JavaScriptCore.Context, number:float) -> JavaScriptCore.Value + new_object(context:JavaScriptCore.Context, instance=None, jsc_class:JavaScriptCore.Class=None) -> JavaScriptCore.Value + new_string(context:JavaScriptCore.Context, string:str=None) -> JavaScriptCore.Value + new_string_from_bytes(context:JavaScriptCore.Context, bytes:GLib.Bytes=None) -> JavaScriptCore.Value + new_typed_array(context:JavaScriptCore.Context, type:JavaScriptCore.TypedArrayType, length:int) -> JavaScriptCore.Value + new_undefined(context:JavaScriptCore.Context) -> JavaScriptCore.Value + + Object JSCValue + + Properties from JSCValue: + context -> JSCContext: context + + Signals from GObject: + notify (GParam) + """ + + class Props: + context: Context + + props: Props = ... + def __init__(self, context: Context = ...): ... + def array_buffer_get_data(self, size: Optional[int] = None) -> None: ... + def array_buffer_get_size(self) -> int: ... + def constructor_call( + self, parameters: Optional[Sequence[Value]] = None + ) -> Value: ... + def function_call(self, parameters: Optional[Sequence[Value]] = None) -> Value: ... + def get_context(self) -> Context: ... + def is_array(self) -> bool: ... + def is_array_buffer(self) -> bool: ... + def is_boolean(self) -> bool: ... + def is_constructor(self) -> bool: ... + def is_function(self) -> bool: ... + def is_null(self) -> bool: ... + def is_number(self) -> bool: ... + def is_object(self) -> bool: ... + def is_string(self) -> bool: ... + def is_typed_array(self) -> bool: ... + def is_undefined(self) -> bool: ... + @classmethod + def new_array_buffer( + cls, + context: Context, + data: None, + size: int, + destroy_notify: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> Optional[Value]: ... + @classmethod + def new_array_from_garray( + cls, context: Context, array: Optional[Sequence[Value]] = None + ) -> Value: ... + @classmethod + def new_array_from_strv(cls, context: Context, strv: Sequence[str]) -> Value: ... + @classmethod + def new_boolean(cls, context: Context, value: bool) -> Value: ... + @classmethod + def new_from_json(cls, context: Context, json: str) -> Value: ... + @classmethod + def new_function( + cls, + context: Context, + name: Optional[str], + callback: Callable[..., None], + return_type: Type, + parameter_types: Optional[Sequence[Type]] = None, + *user_data: Any, + ) -> Value: ... + @classmethod + def new_function_variadic( + cls, + context: Context, + name: Optional[str], + callback: Callable[..., None], + return_type: Type, + *user_data: Any, + ) -> Value: ... + @classmethod + def new_null(cls, context: Context) -> Value: ... + @classmethod + def new_number(cls, context: Context, number: float) -> Value: ... + @classmethod + def new_object( + cls, context: Context, instance: None, jsc_class: Optional[Class] = None + ) -> Value: ... + @classmethod + def new_string(cls, context: Context, string: Optional[str] = None) -> Value: ... + @classmethod + def new_string_from_bytes( + cls, context: Context, bytes: Optional[GLib.Bytes] = None + ) -> Value: ... + @classmethod + def new_typed_array( + cls, context: Context, type: TypedArrayType, length: int + ) -> Value: ... + def new_typed_array_with_buffer( + self, type: TypedArrayType, offset: int, length: int + ) -> Value: ... + @classmethod + def new_undefined(cls, context: Context) -> Value: ... + def object_define_property_accessor( + self, + property_name: str, + flags: ValuePropertyFlags, + property_type: Type, + getter: Optional[Callable[..., None]] = None, + setter: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def object_define_property_data( + self, + property_name: str, + flags: ValuePropertyFlags, + property_value: Optional[Value] = None, + ) -> None: ... + def object_delete_property(self, name: str) -> bool: ... + def object_enumerate_properties(self) -> Optional[list[str]]: ... + def object_get_property(self, name: str) -> Value: ... + def object_get_property_at_index(self, index: int) -> Value: ... + def object_has_property(self, name: str) -> bool: ... + def object_invoke_method( + self, name: str, parameters: Optional[Sequence[Value]] = None + ) -> Value: ... + def object_is_instance_of(self, name: str) -> bool: ... + def object_set_property(self, name: str, property: Value) -> None: ... + def object_set_property_at_index(self, index: int, property: Value) -> None: ... + def to_boolean(self) -> bool: ... + def to_double(self) -> float: ... + def to_int32(self) -> int: ... + def to_json(self, indent: int) -> str: ... + def to_string(self) -> str: ... + def to_string_as_bytes(self) -> GLib.Bytes: ... + def typed_array_get_buffer(self) -> Value: ... + def typed_array_get_data(self) -> int: ... + def typed_array_get_length(self) -> int: ... + def typed_array_get_offset(self) -> int: ... + def typed_array_get_size(self) -> int: ... + def typed_array_get_type(self) -> TypedArrayType: ... + +class ValueClass(GObject.GPointer): + """ + :Constructors: + + :: + + ValueClass() + """ + + parent_class: GObject.ObjectClass = ... + +class VirtualMachine(GObject.Object): + """ + :Constructors: + + :: + + VirtualMachine(**properties) + new() -> JavaScriptCore.VirtualMachine + + Object JSCVirtualMachine + + Signals from GObject: + notify (GParam) + """ + + @classmethod + def new(cls) -> VirtualMachine: ... + +class VirtualMachineClass(GObject.GPointer): + """ + :Constructors: + + :: + + VirtualMachineClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WeakValue(GObject.Object): + """ + :Constructors: + + :: + + WeakValue(**properties) + new(value:JavaScriptCore.Value) -> JavaScriptCore.WeakValue + + Object JSCWeakValue + + Signals from JSCWeakValue: + cleared () + + Properties from JSCWeakValue: + value -> JSCValue: value + + Signals from GObject: + notify (GParam) + """ + + class Props: + value: Value + + props: Props = ... + def __init__(self, value: Value = ...): ... + def get_value(self) -> Value: ... + @classmethod + def new(cls, value: Value) -> WeakValue: ... + +class WeakValueClass(GObject.GPointer): + """ + :Constructors: + + :: + + WeakValueClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ValuePropertyFlags(GObject.GFlags): + CONFIGURABLE = 1 + ENUMERABLE = 2 + WRITABLE = 4 + +class CheckSyntaxMode(GObject.GEnum): + MODULE = 1 + SCRIPT = 0 + +class CheckSyntaxResult(GObject.GEnum): + IRRECOVERABLE_ERROR = 2 + OUT_OF_MEMORY_ERROR = 4 + RECOVERABLE_ERROR = 1 + STACK_OVERFLOW_ERROR = 5 + SUCCESS = 0 + UNTERMINATED_LITERAL_ERROR = 3 + +class OptionType(GObject.GEnum): + BOOLEAN = 0 + DOUBLE = 4 + INT = 1 + RANGE_STRING = 6 + SIZE = 3 + STRING = 5 + UINT = 2 + +class TypedArrayType(GObject.GEnum): + FLOAT32 = 10 + FLOAT64 = 11 + INT16 = 2 + INT32 = 3 + INT64 = 4 + INT8 = 1 + NONE = 0 + UINT16 = 7 + UINT32 = 8 + UINT64 = 9 + UINT8 = 5 + UINT8_CLAMPED = 6 diff --git a/src/gi-stubs/repository/Soup.pyi b/src/gi-stubs/repository/Soup.pyi new file mode 100644 index 00000000..b7760b7e --- /dev/null +++ b/src/gi-stubs/repository/Soup.pyi @@ -0,0 +1,1366 @@ +from typing import Any +from typing import Callable +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type + +from gi.repository import Gio +from gi.repository import GLib +from gi.repository import GObject + +COOKIE_MAX_AGE_ONE_DAY: int = 0 +COOKIE_MAX_AGE_ONE_HOUR: int = 3600 +COOKIE_MAX_AGE_ONE_WEEK: int = 0 +COOKIE_MAX_AGE_ONE_YEAR: int = 0 +FORM_MIME_TYPE_MULTIPART: str = "multipart/form-data" +FORM_MIME_TYPE_URLENCODED: str = "application/x-www-form-urlencoded" +HSTS_POLICY_MAX_AGE_PAST: int = 0 +HTTP_URI_FLAGS: int = 482 +MAJOR_VERSION: int = 3 +MICRO_VERSION: int = 0 +MINOR_VERSION: int = 2 +VERSION_MIN_REQUIRED: int = 2 +_namespace: str = "Soup" +_version: str = "3.0" + +def check_version(major: int, minor: int, micro: int) -> bool: ... +def cookie_parse( + header: str, origin: Optional[GLib.Uri] = None +) -> Optional[Cookie]: ... +def cookies_from_request(msg: Message) -> list[Cookie]: ... +def cookies_from_response(msg: Message) -> list[Cookie]: ... +def cookies_to_cookie_header(cookies: list[Cookie]) -> str: ... +def cookies_to_request(cookies: list[Cookie], msg: Message) -> None: ... +def cookies_to_response(cookies: list[Cookie], msg: Message) -> None: ... +def date_time_new_from_http_string(date_string: str) -> Optional[GLib.DateTime]: ... +def date_time_to_string(date: GLib.DateTime, format: DateFormat) -> str: ... +def form_decode(encoded_form: str) -> dict[str, str]: ... +def form_decode_multipart( + multipart: Multipart, file_control_name: Optional[str] = None +) -> Tuple[Optional[dict[str, str]], str, str, GLib.Bytes]: ... +def form_encode_datalist(form_data_set: GLib.Data) -> str: ... +def form_encode_hash(form_data_set: dict[str, str]) -> str: ... +def get_major_version() -> int: ... +def get_micro_version() -> int: ... +def get_minor_version() -> int: ... +def header_contains(header: str, token: str) -> bool: ... +def header_free_param_list(param_list: dict[str, str]) -> None: ... +def header_g_string_append_param( + string: GLib.String, name: str, value: str +) -> None: ... +def header_g_string_append_param_quoted( + string: GLib.String, name: str, value: str +) -> None: ... +def header_parse_list(header: str) -> list[str]: ... +def header_parse_param_list(header: str) -> dict[str, str]: ... +def header_parse_param_list_strict(header: str) -> Optional[dict[str, str]]: ... +def header_parse_quality_list(header: str) -> Tuple[list[str], list[str]]: ... +def header_parse_semi_param_list(header: str) -> dict[str, str]: ... +def header_parse_semi_param_list_strict(header: str) -> Optional[dict[str, str]]: ... +def headers_parse(str: str, len: int, dest: MessageHeaders) -> bool: ... +def headers_parse_request( + str: str, len: int, req_headers: MessageHeaders +) -> Tuple[int, str, str, HTTPVersion]: ... +def headers_parse_response( + str: str, len: int, headers: MessageHeaders +) -> Tuple[bool, HTTPVersion, int, str]: ... +def headers_parse_status_line( + status_line: str, +) -> Tuple[bool, HTTPVersion, int, str]: ... +def message_headers_iter_init(hdrs: MessageHeaders) -> MessageHeadersIter: ... +def session_error_quark() -> int: ... +def status_get_phrase(status_code: int) -> str: ... +def tld_domain_is_public_suffix(domain: str) -> bool: ... +def tld_error_quark() -> int: ... +def tld_get_base_domain(hostname: str) -> str: ... + +# override +def uri_decode_data_uri(uri: str) -> Tuple[Optional[GLib.Bytes], Optional[str]]: ... +def uri_equal(uri1: GLib.Uri, uri2: GLib.Uri) -> bool: ... +def websocket_client_prepare_handshake( + msg: Message, + origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, + supported_extensions: Optional[Sequence[GObject.TypeClass]] = None, +) -> None: ... +def websocket_client_verify_handshake( + msg: Message, supported_extensions: Optional[Sequence[GObject.TypeClass]] = None +) -> Tuple[bool, list[WebsocketExtension]]: ... +def websocket_error_quark() -> int: ... +def websocket_server_check_handshake( + msg: ServerMessage, + origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, + supported_extensions: Optional[Sequence[GObject.TypeClass]] = None, +) -> bool: ... +def websocket_server_process_handshake( + msg: ServerMessage, + expected_origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, + supported_extensions: Optional[Sequence[GObject.TypeClass]] = None, +) -> Tuple[bool, list[WebsocketExtension]]: ... + +class Auth(GObject.Object): + class Props: + authority: str + is_authenticated: bool + is_cancelled: bool + is_for_proxy: bool + realm: str + scheme_name: str + + props: Props = ... + def __init__( + self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... + ): ... + parent_instance: GObject.Object = ... + def authenticate(self, username: str, password: str) -> None: ... + def can_authenticate(self) -> bool: ... + def cancel(self) -> None: ... + def do_authenticate(self, username: str, password: str) -> None: ... + def do_can_authenticate(self) -> bool: ... + def do_get_authorization(self, msg: Message) -> str: ... + def do_get_protection_space(self, source_uri: GLib.Uri) -> list[str]: ... + def do_is_authenticated(self) -> bool: ... + def do_is_ready(self, msg: Message) -> bool: ... + def do_update(self, msg: Message, auth_header: dict[str, str]) -> bool: ... + def get_authority(self) -> str: ... + def get_authorization(self, msg: Message) -> str: ... + def get_info(self) -> str: ... + def get_protection_space(self, source_uri: GLib.Uri) -> list[str]: ... + def get_realm(self) -> str: ... + def get_scheme_name(self) -> str: ... + def is_authenticated(self) -> bool: ... + def is_cancelled(self) -> bool: ... + def is_for_proxy(self) -> bool: ... + def is_ready(self, msg: Message) -> bool: ... + @classmethod + def new(cls, type: Type, msg: Message, auth_header: str) -> Optional[Auth]: ... + def update(self, msg: Message, auth_header: str) -> bool: ... + +class AuthBasic(Auth): + class Props: + authority: str + is_authenticated: bool + is_cancelled: bool + is_for_proxy: bool + realm: str + scheme_name: str + + props: Props = ... + def __init__( + self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... + ): ... + +class AuthClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + scheme_name: str = ... + strength: int = ... + update: Callable[[Auth, Message, dict[str, str]], bool] = ... + get_protection_space: Callable[[Auth, GLib.Uri], list[str]] = ... + authenticate: Callable[[Auth, str, str], None] = ... + is_authenticated: Callable[[Auth], bool] = ... + get_authorization: Callable[[Auth, Message], str] = ... + is_ready: Callable[[Auth, Message], bool] = ... + can_authenticate: Callable[[Auth], bool] = ... + padding: list[None] = ... + +class AuthDigest(Auth): + class Props: + authority: str + is_authenticated: bool + is_cancelled: bool + is_for_proxy: bool + realm: str + scheme_name: str + + props: Props = ... + def __init__( + self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... + ): ... + +class AuthDomain(GObject.Object): + class Props: + filter: Callable[..., bool] + filter_data: None + generic_auth_callback: Callable[..., bool] + generic_auth_data: None + proxy: bool + realm: str + + props: Props = ... + def __init__( + self, + filter: Callable[..., bool] = ..., + filter_data: None = ..., + generic_auth_callback: Callable[..., bool] = ..., + generic_auth_data: None = ..., + proxy: bool = ..., + realm: str = ..., + ): ... + parent_instance: GObject.Object = ... + def accepts(self, msg: ServerMessage) -> Optional[str]: ... + def add_path(self, path: str) -> None: ... + def challenge(self, msg: ServerMessage) -> None: ... + def check_password( + self, msg: ServerMessage, username: str, password: str + ) -> bool: ... + def covers(self, msg: ServerMessage) -> bool: ... + def do_accepts(self, msg: ServerMessage, header: str) -> str: ... + def do_challenge(self, msg: ServerMessage) -> str: ... + def do_check_password( + self, msg: ServerMessage, username: str, password: str + ) -> bool: ... + def get_realm(self) -> str: ... + def remove_path(self, path: str) -> None: ... + def set_filter(self, filter: Callable[..., bool], *filter_data: Any) -> None: ... + def set_generic_auth_callback( + self, auth_callback: Callable[..., bool], *auth_data: Any + ) -> None: ... + +class AuthDomainBasic(AuthDomain): + class Props: + auth_callback: Callable[..., bool] + auth_data: None + filter: Callable[..., bool] + filter_data: None + generic_auth_callback: Callable[..., bool] + generic_auth_data: None + proxy: bool + realm: str + + props: Props = ... + def __init__( + self, + auth_callback: Callable[..., bool] = ..., + auth_data: None = ..., + filter: Callable[..., bool] = ..., + filter_data: None = ..., + generic_auth_callback: Callable[..., bool] = ..., + generic_auth_data: None = ..., + proxy: bool = ..., + realm: str = ..., + ): ... + def set_auth_callback( + self, callback: Callable[..., bool], *user_data: Any + ) -> None: ... + +class AuthDomainBasicClass(GObject.GPointer): + parent_class: AuthDomainClass = ... + +class AuthDomainClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + accepts: Callable[[AuthDomain, ServerMessage, str], str] = ... + challenge: Callable[[AuthDomain, ServerMessage], str] = ... + check_password: Callable[[AuthDomain, ServerMessage, str, str], bool] = ... + padding: list[None] = ... + +class AuthDomainDigest(AuthDomain): + class Props: + auth_callback: Callable[..., Optional[str]] + auth_data: None + filter: Callable[..., bool] + filter_data: None + generic_auth_callback: Callable[..., bool] + generic_auth_data: None + proxy: bool + realm: str + + props: Props = ... + def __init__( + self, + auth_callback: Callable[..., Optional[str]] = ..., + auth_data: None = ..., + filter: Callable[..., bool] = ..., + filter_data: None = ..., + generic_auth_callback: Callable[..., bool] = ..., + generic_auth_data: None = ..., + proxy: bool = ..., + realm: str = ..., + ): ... + @staticmethod + def encode_password(username: str, realm: str, password: str) -> str: ... + def set_auth_callback( + self, callback: Callable[..., Optional[str]], *user_data: Any + ) -> None: ... + +class AuthDomainDigestClass(GObject.GPointer): + parent_class: AuthDomainClass = ... + +class AuthManager(GObject.Object, SessionFeature): + def clear_cached_credentials(self) -> None: ... + def use_auth(self, uri: GLib.Uri, auth: Auth) -> None: ... + +class AuthManagerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class AuthNTLM(Auth): + class Props: + authority: str + is_authenticated: bool + is_cancelled: bool + is_for_proxy: bool + realm: str + scheme_name: str + + props: Props = ... + def __init__( + self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... + ): ... + +class AuthNegotiate(Auth): + class Props: + authority: str + is_authenticated: bool + is_cancelled: bool + is_for_proxy: bool + realm: str + scheme_name: str + + props: Props = ... + def __init__( + self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... + ): ... + @staticmethod + def supported() -> bool: ... + +class Cache(GObject.Object, SessionFeature): + class Props: + cache_dir: str + cache_type: CacheType + + props: Props = ... + def __init__(self, cache_dir: str = ..., cache_type: CacheType = ...): ... + parent_instance: GObject.Object = ... + def clear(self) -> None: ... + def do_get_cacheability(self, msg: Message) -> Cacheability: ... + def dump(self) -> None: ... + def flush(self) -> None: ... + def get_max_size(self) -> int: ... + def load(self) -> None: ... + @classmethod + def new(cls, cache_dir: Optional[str], cache_type: CacheType) -> Cache: ... + def set_max_size(self, max_size: int) -> None: ... + +class CacheClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + get_cacheability: Callable[[Cache, Message], Cacheability] = ... + padding: list[None] = ... + +class ContentDecoder(GObject.Object, SessionFeature): ... + +class ContentDecoderClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class ContentSniffer(GObject.Object, SessionFeature): + @classmethod + def new(cls) -> ContentSniffer: ... + def sniff(self, msg: Message, buffer: GLib.Bytes) -> Tuple[str, dict[str, str]]: ... + +class ContentSnifferClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class Cookie(GObject.GBoxed): + def applies_to_uri(self, uri: GLib.Uri) -> bool: ... + def copy(self) -> Cookie: ... + def domain_matches(self, host: str) -> bool: ... + def equal(self, cookie2: Cookie) -> bool: ... + def free(self) -> None: ... + def get_domain(self) -> str: ... + def get_expires(self) -> Optional[GLib.DateTime]: ... + def get_http_only(self) -> bool: ... + def get_name(self) -> str: ... + def get_path(self) -> str: ... + def get_same_site_policy(self) -> SameSitePolicy: ... + def get_secure(self) -> bool: ... + def get_value(self) -> str: ... + @classmethod + def new( + cls, name: str, value: str, domain: str, path: str, max_age: int + ) -> Cookie: ... + @staticmethod + def parse(header: str, origin: Optional[GLib.Uri] = None) -> Optional[Cookie]: ... + def set_domain(self, domain: str) -> None: ... + def set_expires(self, expires: GLib.DateTime) -> None: ... + def set_http_only(self, http_only: bool) -> None: ... + def set_max_age(self, max_age: int) -> None: ... + def set_name(self, name: str) -> None: ... + def set_path(self, path: str) -> None: ... + def set_same_site_policy(self, policy: SameSitePolicy) -> None: ... + def set_secure(self, secure: bool) -> None: ... + def set_value(self, value: str) -> None: ... + def to_cookie_header(self) -> str: ... + def to_set_cookie_header(self) -> str: ... + +class CookieJar(GObject.Object, SessionFeature): + class Props: + accept_policy: CookieJarAcceptPolicy + read_only: bool + + props: Props = ... + def __init__( + self, accept_policy: CookieJarAcceptPolicy = ..., read_only: bool = ... + ): ... + parent_instance: GObject.Object = ... + def add_cookie(self, cookie: Cookie) -> None: ... + def add_cookie_full( + self, + cookie: Cookie, + uri: Optional[GLib.Uri] = None, + first_party: Optional[GLib.Uri] = None, + ) -> None: ... + def add_cookie_with_first_party( + self, first_party: GLib.Uri, cookie: Cookie + ) -> None: ... + def all_cookies(self) -> list[Cookie]: ... + def delete_cookie(self, cookie: Cookie) -> None: ... + def do_changed(self, old_cookie: Cookie, new_cookie: Cookie) -> None: ... + def do_is_persistent(self) -> bool: ... + def do_save(self) -> None: ... + def get_accept_policy(self) -> CookieJarAcceptPolicy: ... + def get_cookie_list(self, uri: GLib.Uri, for_http: bool) -> list[Cookie]: ... + def get_cookie_list_with_same_site_info( + self, + uri: GLib.Uri, + top_level: Optional[GLib.Uri], + site_for_cookies: Optional[GLib.Uri], + for_http: bool, + is_safe_method: bool, + is_top_level_navigation: bool, + ) -> list[Cookie]: ... + def get_cookies(self, uri: GLib.Uri, for_http: bool) -> Optional[str]: ... + def is_persistent(self) -> bool: ... + @classmethod + def new(cls) -> CookieJar: ... + def set_accept_policy(self, policy: CookieJarAcceptPolicy) -> None: ... + def set_cookie(self, uri: GLib.Uri, cookie: str) -> None: ... + def set_cookie_with_first_party( + self, uri: GLib.Uri, first_party: GLib.Uri, cookie: str + ) -> None: ... + +class CookieJarClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + save: Callable[[CookieJar], None] = ... + is_persistent: Callable[[CookieJar], bool] = ... + changed: Callable[[CookieJar, Cookie, Cookie], None] = ... + padding: list[None] = ... + +class CookieJarDB(CookieJar, SessionFeature): + class Props: + filename: str + accept_policy: CookieJarAcceptPolicy + read_only: bool + + props: Props = ... + def __init__( + self, + filename: str = ..., + accept_policy: CookieJarAcceptPolicy = ..., + read_only: bool = ..., + ): ... + @classmethod + def new(cls, filename: str, read_only: bool) -> CookieJarDB: ... + +class CookieJarDBClass(GObject.GPointer): + parent_class: CookieJarClass = ... + +class CookieJarText(CookieJar, SessionFeature): + class Props: + filename: str + accept_policy: CookieJarAcceptPolicy + read_only: bool + + props: Props = ... + def __init__( + self, + filename: str = ..., + accept_policy: CookieJarAcceptPolicy = ..., + read_only: bool = ..., + ): ... + @classmethod + def new(cls, filename: str, read_only: bool) -> CookieJarText: ... + +class CookieJarTextClass(GObject.GPointer): + parent_class: CookieJarClass = ... + +class HSTSEnforcer(GObject.Object, SessionFeature): + parent_instance: GObject.Object = ... + def do_changed(self, old_policy: HSTSPolicy, new_policy: HSTSPolicy) -> None: ... + def do_has_valid_policy(self, domain: str) -> bool: ... + def do_is_persistent(self) -> bool: ... + def get_domains(self, session_policies: bool) -> list[str]: ... + def get_policies(self, session_policies: bool) -> list[HSTSPolicy]: ... + def has_valid_policy(self, domain: str) -> bool: ... + def is_persistent(self) -> bool: ... + @classmethod + def new(cls) -> HSTSEnforcer: ... + def set_policy(self, policy: HSTSPolicy) -> None: ... + def set_session_policy(self, domain: str, include_subdomains: bool) -> None: ... + +class HSTSEnforcerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + is_persistent: Callable[[HSTSEnforcer], bool] = ... + has_valid_policy: Callable[[HSTSEnforcer, str], bool] = ... + changed: Callable[[HSTSEnforcer, HSTSPolicy, HSTSPolicy], None] = ... + padding: list[None] = ... + +class HSTSEnforcerDB(HSTSEnforcer, SessionFeature): + class Props: + filename: str + + props: Props = ... + def __init__(self, filename: str = ...): ... + @classmethod + def new(cls, filename: str) -> HSTSEnforcerDB: ... + +class HSTSEnforcerDBClass(GObject.GPointer): + parent_class: HSTSEnforcerClass = ... + +class HSTSPolicy(GObject.GBoxed): + def copy(self) -> HSTSPolicy: ... + def equal(self, policy2: HSTSPolicy) -> bool: ... + def free(self) -> None: ... + def get_domain(self) -> str: ... + def get_expires(self) -> GLib.DateTime: ... + def get_max_age(self) -> int: ... + def includes_subdomains(self) -> bool: ... + def is_expired(self) -> bool: ... + def is_session_policy(self) -> bool: ... + @classmethod + def new(cls, domain: str, max_age: int, include_subdomains: bool) -> HSTSPolicy: ... + @classmethod + def new_from_response(cls, msg: Message) -> Optional[HSTSPolicy]: ... + @classmethod + def new_full( + cls, domain: str, max_age: int, expires: GLib.DateTime, include_subdomains: bool + ) -> HSTSPolicy: ... + @classmethod + def new_session_policy( + cls, domain: str, include_subdomains: bool + ) -> HSTSPolicy: ... + +class Logger(GObject.Object, SessionFeature): + class Props: + level: LoggerLogLevel + max_body_size: int + + props: Props = ... + def __init__(self, level: LoggerLogLevel = ..., max_body_size: int = ...): ... + def get_max_body_size(self) -> int: ... + @classmethod + def new(cls, level: LoggerLogLevel) -> Logger: ... + def set_max_body_size(self, max_body_size: int) -> None: ... + def set_printer(self, printer: Callable[..., None], *printer_data: Any) -> None: ... + def set_request_filter( + self, request_filter: Callable[..., LoggerLogLevel], *filter_data: Any + ) -> None: ... + def set_response_filter( + self, response_filter: Callable[..., LoggerLogLevel], *filter_data: Any + ) -> None: ... + +class LoggerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class Message(GObject.Object): + class Props: + first_party: GLib.Uri + flags: MessageFlags + http_version: HTTPVersion + is_options_ping: bool + is_top_level_navigation: bool + method: str + priority: MessagePriority + reason_phrase: str + remote_address: Gio.SocketAddress + request_headers: MessageHeaders + response_headers: MessageHeaders + site_for_cookies: GLib.Uri + status_code: int + tls_ciphersuite_name: str + tls_peer_certificate: Gio.TlsCertificate + tls_peer_certificate_errors: Gio.TlsCertificateFlags + tls_protocol_version: Gio.TlsProtocolVersion + uri: GLib.Uri + + props: Props = ... + def __init__( + self, + first_party: GLib.Uri = ..., + flags: MessageFlags = ..., + is_options_ping: bool = ..., + is_top_level_navigation: bool = ..., + method: str = ..., + priority: MessagePriority = ..., + site_for_cookies: GLib.Uri = ..., + uri: GLib.Uri = ..., + ): ... + def add_flags(self, flags: MessageFlags) -> None: ... + def disable_feature(self, feature_type: Type) -> None: ... + def get_connection_id(self) -> int: ... + def get_first_party(self) -> GLib.Uri: ... + def get_flags(self) -> MessageFlags: ... + def get_http_version(self) -> HTTPVersion: ... + def get_is_options_ping(self) -> bool: ... + def get_is_top_level_navigation(self) -> bool: ... + def get_method(self) -> str: ... + def get_metrics(self) -> Optional[MessageMetrics]: ... + def get_priority(self) -> MessagePriority: ... + def get_reason_phrase(self) -> Optional[str]: ... + def get_remote_address(self) -> Optional[Gio.SocketAddress]: ... + def get_request_headers(self) -> MessageHeaders: ... + def get_response_headers(self) -> MessageHeaders: ... + def get_site_for_cookies(self) -> GLib.Uri: ... + def get_status(self) -> Status: ... + def get_tls_ciphersuite_name(self) -> str: ... + def get_tls_peer_certificate(self) -> Optional[Gio.TlsCertificate]: ... + def get_tls_peer_certificate_errors(self) -> Gio.TlsCertificateFlags: ... + def get_tls_protocol_version(self) -> Gio.TlsProtocolVersion: ... + def get_uri(self) -> GLib.Uri: ... + def is_feature_disabled(self, feature_type: Type) -> bool: ... + def is_keepalive(self) -> bool: ... + @classmethod + def new(cls, method: str, uri_string: str) -> Optional[Message]: ... + @classmethod + def new_from_encoded_form( + cls, method: str, uri_string: str, encoded_form: str + ) -> Optional[Message]: ... + @classmethod + def new_from_multipart( + cls, uri_string: str, multipart: Multipart + ) -> Optional[Message]: ... + @classmethod + def new_from_uri(cls, method: str, uri: GLib.Uri) -> Message: ... + @classmethod + def new_options_ping(cls, base_uri: GLib.Uri) -> Message: ... + def query_flags(self, flags: MessageFlags) -> bool: ... + def remove_flags(self, flags: MessageFlags) -> None: ... + def set_first_party(self, first_party: GLib.Uri) -> None: ... + def set_flags(self, flags: MessageFlags) -> None: ... + def set_is_options_ping(self, is_options_ping: bool) -> None: ... + def set_is_top_level_navigation(self, is_top_level_navigation: bool) -> None: ... + def set_method(self, method: str) -> None: ... + def set_priority(self, priority: MessagePriority) -> None: ... + def set_request_body( + self, + content_type: Optional[str], + stream: Optional[Gio.InputStream], + content_length: int, + ) -> None: ... + def set_request_body_from_bytes( + self, content_type: Optional[str] = None, bytes: Optional[GLib.Bytes] = None + ) -> None: ... + def set_site_for_cookies( + self, site_for_cookies: Optional[GLib.Uri] = None + ) -> None: ... + def set_tls_client_certificate( + self, certificate: Optional[Gio.TlsCertificate] = None + ) -> None: ... + def set_uri(self, uri: GLib.Uri) -> None: ... + def tls_client_certificate_password_request_complete(self) -> None: ... + +class MessageBody(GObject.GBoxed): + data: bytes = ... + length: int = ... + def append(self, data: Sequence[int]) -> None: ... + def append_bytes(self, buffer: GLib.Bytes) -> None: ... + def complete(self) -> None: ... + def flatten(self) -> GLib.Bytes: ... + def get_accumulate(self) -> bool: ... + def get_chunk(self, offset: int) -> Optional[GLib.Bytes]: ... + def got_chunk(self, chunk: GLib.Bytes) -> None: ... + @classmethod + def new(cls) -> MessageBody: ... + def ref(self) -> MessageBody: ... + def set_accumulate(self, accumulate: bool) -> None: ... + def truncate(self) -> None: ... + def unref(self) -> None: ... + def wrote_chunk(self, chunk: GLib.Bytes) -> None: ... + +class MessageClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class MessageHeaders(GObject.GBoxed): + def append(self, name: str, value: str) -> None: ... + def clean_connection_headers(self) -> None: ... + def clear(self) -> None: ... + def foreach(self, func: Callable[..., None], *user_data: Any) -> None: ... + def free_ranges(self, ranges: Range) -> None: ... + def get_content_disposition(self) -> Tuple[bool, str, dict[str, str]]: ... + def get_content_length(self) -> int: ... + def get_content_range(self) -> Tuple[bool, int, int, int]: ... + def get_content_type(self) -> Tuple[Optional[str], dict[str, str]]: ... + def get_encoding(self) -> Encoding: ... + def get_expectations(self) -> Expectation: ... + def get_headers_type(self) -> MessageHeadersType: ... + def get_list(self, name: str) -> Optional[str]: ... + def get_one(self, name: str) -> Optional[str]: ... + def get_ranges(self, total_length: int) -> Tuple[bool, list[Range]]: ... + def header_contains(self, name: str, token: str) -> bool: ... + def header_equals(self, name: str, value: str) -> bool: ... + @classmethod + def new(cls, type: MessageHeadersType) -> MessageHeaders: ... + def ref(self) -> MessageHeaders: ... + def remove(self, name: str) -> None: ... + def replace(self, name: str, value: str) -> None: ... + def set_content_disposition( + self, disposition: str, params: Optional[dict[str, str]] = None + ) -> None: ... + def set_content_length(self, content_length: int) -> None: ... + def set_content_range(self, start: int, end: int, total_length: int) -> None: ... + def set_content_type( + self, content_type: str, params: Optional[dict[str, str]] = None + ) -> None: ... + def set_encoding(self, encoding: Encoding) -> None: ... + def set_expectations(self, expectations: Expectation) -> None: ... + def set_range(self, start: int, end: int) -> None: ... + def set_ranges(self, ranges: Range, length: int) -> None: ... + def unref(self) -> None: ... + +class MessageHeadersIter(GObject.GPointer): + dummy: list[None] = ... + @staticmethod + def init(hdrs: MessageHeaders) -> MessageHeadersIter: ... + def next(self) -> Tuple[bool, str, str]: ... + +class MessageMetrics(GObject.GBoxed): + def copy(self) -> MessageMetrics: ... + def free(self) -> None: ... + def get_connect_end(self) -> int: ... + def get_connect_start(self) -> int: ... + def get_dns_end(self) -> int: ... + def get_dns_start(self) -> int: ... + def get_fetch_start(self) -> int: ... + def get_request_body_bytes_sent(self) -> int: ... + def get_request_body_size(self) -> int: ... + def get_request_header_bytes_sent(self) -> int: ... + def get_request_start(self) -> int: ... + def get_response_body_bytes_received(self) -> int: ... + def get_response_body_size(self) -> int: ... + def get_response_end(self) -> int: ... + def get_response_header_bytes_received(self) -> int: ... + def get_response_start(self) -> int: ... + def get_tls_start(self) -> int: ... + +class Multipart(GObject.GBoxed): + def append_form_file( + self, control_name: str, filename: str, content_type: str, body: GLib.Bytes + ) -> None: ... + def append_form_string(self, control_name: str, data: str) -> None: ... + def append_part(self, headers: MessageHeaders, body: GLib.Bytes) -> None: ... + def free(self) -> None: ... + def get_length(self) -> int: ... + def get_part(self, part: int) -> Tuple[bool, MessageHeaders, GLib.Bytes]: ... + @classmethod + def new(cls, mime_type: str) -> Multipart: ... + @classmethod + def new_from_message( + cls, headers: MessageHeaders, body: GLib.Bytes + ) -> Optional[Multipart]: ... + def to_message(self, dest_headers: MessageHeaders) -> GLib.Bytes: ... + +class MultipartInputStream(Gio.FilterInputStream, Gio.PollableInputStream): + class Props: + message: Message + base_stream: Gio.InputStream + close_base_stream: bool + + props: Props = ... + def __init__( + self, + message: Message = ..., + base_stream: Gio.InputStream = ..., + close_base_stream: bool = ..., + ): ... + def get_headers(self) -> Optional[MessageHeaders]: ... + @classmethod + def new( + cls, msg: Message, base_stream: Gio.InputStream + ) -> MultipartInputStream: ... + def next_part( + self, cancellable: Optional[Gio.Cancellable] = None + ) -> Optional[Gio.InputStream]: ... + def next_part_async( + self, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *data: Any, + ) -> None: ... + def next_part_finish( + self, result: Gio.AsyncResult + ) -> Optional[Gio.InputStream]: ... + +class MultipartInputStreamClass(GObject.GPointer): + parent_class: Gio.FilterInputStreamClass = ... + +class Range(GObject.GPointer): + start: int = ... + end: int = ... + +class Server(GObject.Object): + class Props: + raw_paths: bool + server_header: str + tls_auth_mode: Gio.TlsAuthenticationMode + tls_certificate: Gio.TlsCertificate + tls_database: Gio.TlsDatabase + + props: Props = ... + def __init__( + self, + raw_paths: bool = ..., + server_header: str = ..., + tls_auth_mode: Gio.TlsAuthenticationMode = ..., + tls_certificate: Gio.TlsCertificate = ..., + tls_database: Gio.TlsDatabase = ..., + ): ... + parent_instance: GObject.Object = ... + def accept_iostream( + self, + stream: Gio.IOStream, + local_addr: Optional[Gio.SocketAddress] = None, + remote_addr: Optional[Gio.SocketAddress] = None, + ) -> bool: ... + def add_auth_domain(self, auth_domain: AuthDomain) -> None: ... + def add_early_handler( + self, path: Optional[str], callback: Callable[..., None], *user_data: Any + ) -> None: ... + def add_handler( + self, path: Optional[str], callback: Callable[..., None], *user_data: Any + ) -> None: ... + def add_websocket_extension(self, extension_type: Type) -> None: ... + def add_websocket_handler( + self, + path: Optional[str], + origin: Optional[str], + protocols: Optional[Sequence[str]], + callback: Callable[..., None], + *user_data: Any, + ) -> None: ... + def disconnect(self) -> None: ... + def do_request_aborted(self, msg: ServerMessage) -> None: ... + def do_request_finished(self, msg: ServerMessage) -> None: ... + def do_request_read(self, msg: ServerMessage) -> None: ... + def do_request_started(self, msg: ServerMessage) -> None: ... + def get_listeners(self) -> list[Gio.Socket]: ... + def get_tls_auth_mode(self) -> Gio.TlsAuthenticationMode: ... + def get_tls_certificate(self) -> Optional[Gio.TlsCertificate]: ... + def get_tls_database(self) -> Optional[Gio.TlsDatabase]: ... + def get_uris(self) -> list[GLib.Uri]: ... + def is_https(self) -> bool: ... + def listen( + self, address: Gio.SocketAddress, options: ServerListenOptions + ) -> bool: ... + def listen_all(self, port: int, options: ServerListenOptions) -> bool: ... + def listen_local(self, port: int, options: ServerListenOptions) -> bool: ... + def listen_socket( + self, socket: Gio.Socket, options: ServerListenOptions + ) -> bool: ... + def pause_message(self, msg: ServerMessage) -> None: ... + def remove_auth_domain(self, auth_domain: AuthDomain) -> None: ... + def remove_handler(self, path: str) -> None: ... + def remove_websocket_extension(self, extension_type: Type) -> None: ... + def set_tls_auth_mode(self, mode: Gio.TlsAuthenticationMode) -> None: ... + def set_tls_certificate(self, certificate: Gio.TlsCertificate) -> None: ... + def set_tls_database(self, tls_database: Gio.TlsDatabase) -> None: ... + def unpause_message(self, msg: ServerMessage) -> None: ... + +class ServerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + request_started: Callable[[Server, ServerMessage], None] = ... + request_read: Callable[[Server, ServerMessage], None] = ... + request_finished: Callable[[Server, ServerMessage], None] = ... + request_aborted: Callable[[Server, ServerMessage], None] = ... + padding: list[None] = ... + +class ServerMessage(GObject.Object): + class Props: + tls_peer_certificate: Gio.TlsCertificate + tls_peer_certificate_errors: Gio.TlsCertificateFlags + + props: Props = ... + def get_http_version(self) -> HTTPVersion: ... + def get_local_address(self) -> Optional[Gio.SocketAddress]: ... + def get_method(self) -> str: ... + def get_reason_phrase(self) -> Optional[str]: ... + def get_remote_address(self) -> Optional[Gio.SocketAddress]: ... + def get_remote_host(self) -> Optional[str]: ... + def get_request_body(self) -> MessageBody: ... + def get_request_headers(self) -> MessageHeaders: ... + def get_response_body(self) -> MessageBody: ... + def get_response_headers(self) -> MessageHeaders: ... + def get_socket(self) -> Optional[Gio.Socket]: ... + def get_status(self) -> int: ... + def get_tls_peer_certificate(self) -> Optional[Gio.TlsCertificate]: ... + def get_tls_peer_certificate_errors(self) -> Gio.TlsCertificateFlags: ... + def get_uri(self) -> GLib.Uri: ... + def is_options_ping(self) -> bool: ... + def pause(self) -> None: ... + def set_http_version(self, version: HTTPVersion) -> None: ... + def set_redirect(self, status_code: int, redirect_uri: str) -> None: ... + def set_response( + self, + content_type: Optional[str], + resp_use: MemoryUse, + resp_body: Optional[Sequence[int]] = None, + ) -> None: ... + def set_status( + self, status_code: int, reason_phrase: Optional[str] = None + ) -> None: ... + def steal_connection(self) -> Gio.IOStream: ... + def unpause(self) -> None: ... + +class ServerMessageClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class Session(GObject.Object): + class Props: + accept_language: str + accept_language_auto: bool + idle_timeout: int + local_address: Gio.InetSocketAddress + max_conns: int + max_conns_per_host: int + proxy_resolver: Gio.ProxyResolver + remote_connectable: Gio.SocketConnectable + timeout: int + tls_database: Gio.TlsDatabase + tls_interaction: Gio.TlsInteraction + user_agent: str + + props: Props = ... + def __init__( + self, + accept_language: str = ..., + accept_language_auto: bool = ..., + idle_timeout: int = ..., + local_address: Gio.InetSocketAddress = ..., + max_conns: int = ..., + max_conns_per_host: int = ..., + proxy_resolver: Gio.ProxyResolver = ..., + remote_connectable: Gio.SocketConnectable = ..., + timeout: int = ..., + tls_database: Gio.TlsDatabase = ..., + tls_interaction: Gio.TlsInteraction = ..., + user_agent: str = ..., + ): ... + parent_instance: GObject.Object = ... + def abort(self) -> None: ... + def add_feature(self, feature: SessionFeature) -> None: ... + def add_feature_by_type(self, feature_type: Type) -> None: ... + def do_request_queued(self, msg: Message) -> None: ... + def do_request_unqueued(self, msg: Message) -> None: ... + def get_accept_language(self) -> Optional[str]: ... + def get_accept_language_auto(self) -> bool: ... + def get_async_result_message( + self, result: Gio.AsyncResult + ) -> Optional[Message]: ... + def get_feature(self, feature_type: Type) -> Optional[SessionFeature]: ... + def get_feature_for_message( + self, feature_type: Type, msg: Message + ) -> Optional[SessionFeature]: ... + def get_idle_timeout(self) -> int: ... + def get_local_address(self) -> Optional[Gio.InetSocketAddress]: ... + def get_max_conns(self) -> int: ... + def get_max_conns_per_host(self) -> int: ... + def get_proxy_resolver(self) -> Optional[Gio.ProxyResolver]: ... + def get_remote_connectable(self) -> Optional[Gio.SocketConnectable]: ... + def get_timeout(self) -> int: ... + def get_tls_database(self) -> Optional[Gio.TlsDatabase]: ... + def get_tls_interaction(self) -> Optional[Gio.TlsInteraction]: ... + def get_user_agent(self) -> Optional[str]: ... + def has_feature(self, feature_type: Type) -> bool: ... + @classmethod + def new(cls) -> Session: ... + def preconnect_async( + self, + msg: Message, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def preconnect_finish(self, result: Gio.AsyncResult) -> bool: ... + def remove_feature(self, feature: SessionFeature) -> None: ... + def remove_feature_by_type(self, feature_type: Type) -> None: ... + def send( + self, msg: Message, cancellable: Optional[Gio.Cancellable] = None + ) -> Gio.InputStream: ... + def send_and_read( + self, msg: Message, cancellable: Optional[Gio.Cancellable] = None + ) -> GLib.Bytes: ... + def send_and_read_async( + self, + msg: Message, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def send_and_read_finish(self, result: Gio.AsyncResult) -> GLib.Bytes: ... + def send_async( + self, + msg: Message, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def send_finish(self, result: Gio.AsyncResult) -> Gio.InputStream: ... + def set_accept_language(self, accept_language: str) -> None: ... + def set_accept_language_auto(self, accept_language_auto: bool) -> None: ... + def set_idle_timeout(self, timeout: int) -> None: ... + def set_proxy_resolver( + self, proxy_resolver: Optional[Gio.ProxyResolver] = None + ) -> None: ... + def set_timeout(self, timeout: int) -> None: ... + def set_tls_database( + self, tls_database: Optional[Gio.TlsDatabase] = None + ) -> None: ... + def set_tls_interaction( + self, tls_interaction: Optional[Gio.TlsInteraction] = None + ) -> None: ... + def set_user_agent(self, user_agent: str) -> None: ... + def websocket_connect_async( + self, + msg: Message, + origin: Optional[str], + protocols: Optional[Sequence[str]], + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def websocket_connect_finish( + self, result: Gio.AsyncResult + ) -> WebsocketConnection: ... + +class SessionClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + request_queued: Callable[[Session, Message], None] = ... + request_unqueued: Callable[[Session, Message], None] = ... + _soup_reserved1: None = ... + _soup_reserved2: None = ... + _soup_reserved3: None = ... + _soup_reserved4: None = ... + _soup_reserved5: None = ... + _soup_reserved6: None = ... + _soup_reserved7: None = ... + _soup_reserved8: None = ... + +class SessionFeature(GObject.Object): ... +class SessionFeatureInterface(GObject.GPointer): ... + +class WebsocketConnection(GObject.Object): + class Props: + connection_type: WebsocketConnectionType + extensions: None + io_stream: Gio.IOStream + keepalive_interval: int + max_incoming_payload_size: int + origin: str + protocol: str + state: WebsocketState + uri: GLib.Uri + + props: Props = ... + def __init__( + self, + connection_type: WebsocketConnectionType = ..., + extensions: None = ..., + io_stream: Gio.IOStream = ..., + keepalive_interval: int = ..., + max_incoming_payload_size: int = ..., + origin: str = ..., + protocol: str = ..., + uri: GLib.Uri = ..., + ): ... + def close(self, code: int, data: Optional[str] = None) -> None: ... + def get_close_code(self) -> int: ... + def get_close_data(self) -> str: ... + def get_connection_type(self) -> WebsocketConnectionType: ... + def get_extensions(self) -> list[WebsocketExtension]: ... + def get_io_stream(self) -> Gio.IOStream: ... + def get_keepalive_interval(self) -> int: ... + def get_max_incoming_payload_size(self) -> int: ... + def get_origin(self) -> Optional[str]: ... + def get_protocol(self) -> Optional[str]: ... + def get_state(self) -> WebsocketState: ... + def get_uri(self) -> GLib.Uri: ... + @classmethod + def new( + cls, + stream: Gio.IOStream, + uri: GLib.Uri, + type: WebsocketConnectionType, + origin: Optional[str], + protocol: Optional[str], + extensions: list[WebsocketExtension], + ) -> WebsocketConnection: ... + def send_binary(self, data: Optional[Sequence[int]] = None) -> None: ... + def send_message(self, type: WebsocketDataType, message: GLib.Bytes) -> None: ... + def send_text(self, text: str) -> None: ... + def set_keepalive_interval(self, interval: int) -> None: ... + def set_max_incoming_payload_size(self, max_incoming_payload_size: int) -> None: ... + +class WebsocketConnectionClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class WebsocketExtension(GObject.Object): + parent_instance: GObject.Object = ... + def configure( + self, + connection_type: WebsocketConnectionType, + params: Optional[dict[str, str]] = None, + ) -> bool: ... + def do_configure( + self, + connection_type: WebsocketConnectionType, + params: Optional[dict[str, str]] = None, + ) -> bool: ... + def do_get_request_params(self) -> Optional[str]: ... + def do_get_response_params(self) -> Optional[str]: ... + def do_process_incoming_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + def do_process_outgoing_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + def get_request_params(self) -> Optional[str]: ... + def get_response_params(self) -> Optional[str]: ... + def process_incoming_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + def process_outgoing_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + +class WebsocketExtensionClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + name: str = ... + configure: Callable[ + [WebsocketExtension, WebsocketConnectionType, Optional[dict[str, str]]], bool + ] = ... + get_request_params: Callable[[WebsocketExtension], Optional[str]] = ... + get_response_params: Callable[[WebsocketExtension], Optional[str]] = ... + process_outgoing_message: Callable[ + [WebsocketExtension, GLib.Bytes], Tuple[GLib.Bytes, int] + ] = ... + process_incoming_message: Callable[ + [WebsocketExtension, GLib.Bytes], Tuple[GLib.Bytes, int] + ] = ... + padding: list[None] = ... + +class WebsocketExtensionDeflate(WebsocketExtension): ... + +class WebsocketExtensionDeflateClass(GObject.GPointer): + parent_class: WebsocketExtensionClass = ... + +class WebsocketExtensionManager(GObject.Object, SessionFeature): ... + +class WebsocketExtensionManagerClass(GObject.GPointer): + parent_class: GObject.ObjectClass = ... + +class Cacheability(GObject.GFlags): + CACHEABLE = 1 + INVALIDATES = 4 + UNCACHEABLE = 2 + VALIDATES = 8 + +class Expectation(GObject.GFlags): + CONTINUE = 2 + UNRECOGNIZED = 1 + +class MessageFlags(GObject.GFlags): + COLLECT_METRICS = 32 + DO_NOT_USE_AUTH_CACHE = 16 + IDEMPOTENT = 8 + NEW_CONNECTION = 4 + NO_REDIRECT = 2 + +class ServerListenOptions(GObject.GFlags): + HTTPS = 1 + IPV4_ONLY = 2 + IPV6_ONLY = 4 + +class CacheType(GObject.GEnum): + SHARED = 1 + SINGLE_USER = 0 + +class CookieJarAcceptPolicy(GObject.GEnum): + ALWAYS = 0 + GRANDFATHERED_THIRD_PARTY = 3 + NEVER = 1 + NO_THIRD_PARTY = 2 + +class DateFormat(GObject.GEnum): + COOKIE = 2 + HTTP = 1 + +class Encoding(GObject.GEnum): + BYTERANGES = 5 + CHUNKED = 4 + CONTENT_LENGTH = 2 + EOF = 3 + NONE = 1 + UNRECOGNIZED = 0 + +class HTTPVersion(GObject.GEnum): + HTTP_1_0 = 0 + HTTP_1_1 = 1 + HTTP_2_0 = 2 + +class LoggerLogLevel(GObject.GEnum): + BODY = 3 + HEADERS = 2 + MINIMAL = 1 + NONE = 0 + +class MemoryUse(GObject.GEnum): + COPY = 2 + STATIC = 0 + TAKE = 1 + +class MessageHeadersType(GObject.GEnum): + MULTIPART = 2 + REQUEST = 0 + RESPONSE = 1 + +class MessagePriority(GObject.GEnum): + HIGH = 3 + LOW = 1 + NORMAL = 2 + VERY_HIGH = 4 + VERY_LOW = 0 + +class SameSitePolicy(GObject.GEnum): + LAX = 1 + NONE = 0 + STRICT = 2 + +class SessionError(GObject.GEnum): + ENCODING = 1 + MESSAGE_ALREADY_IN_QUEUE = 6 + PARSING = 0 + REDIRECT_BAD_URI = 5 + REDIRECT_NO_LOCATION = 4 + TOO_MANY_REDIRECTS = 2 + TOO_MANY_RESTARTS = 3 + @staticmethod + def quark() -> int: ... + +class Status(GObject.GEnum): + ACCEPTED = 202 + BAD_GATEWAY = 502 + BAD_REQUEST = 400 + CONFLICT = 409 + CONTINUE = 100 + CREATED = 201 + EXPECTATION_FAILED = 417 + FAILED_DEPENDENCY = 424 + FORBIDDEN = 403 + FOUND = 302 + GATEWAY_TIMEOUT = 504 + GONE = 410 + HTTP_VERSION_NOT_SUPPORTED = 505 + INSUFFICIENT_STORAGE = 507 + INTERNAL_SERVER_ERROR = 500 + INVALID_RANGE = 416 + LENGTH_REQUIRED = 411 + LOCKED = 423 + METHOD_NOT_ALLOWED = 405 + MISDIRECTED_REQUEST = 421 + MOVED_PERMANENTLY = 301 + MOVED_TEMPORARILY = 302 + MULTIPLE_CHOICES = 300 + MULTI_STATUS = 207 + NONE = 0 + NON_AUTHORITATIVE = 203 + NOT_ACCEPTABLE = 406 + NOT_APPEARING_IN_THIS_PROTOCOL = 306 + NOT_EXTENDED = 510 + NOT_FOUND = 404 + NOT_IMPLEMENTED = 501 + NOT_MODIFIED = 304 + NO_CONTENT = 204 + OK = 200 + PARTIAL_CONTENT = 206 + PAYMENT_REQUIRED = 402 + PERMANENT_REDIRECT = 308 + PRECONDITION_FAILED = 412 + PROCESSING = 102 + PROXY_AUTHENTICATION_REQUIRED = 407 + PROXY_UNAUTHORIZED = 407 + REQUESTED_RANGE_NOT_SATISFIABLE = 416 + REQUEST_ENTITY_TOO_LARGE = 413 + REQUEST_TIMEOUT = 408 + REQUEST_URI_TOO_LONG = 414 + RESET_CONTENT = 205 + SEE_OTHER = 303 + SERVICE_UNAVAILABLE = 503 + SWITCHING_PROTOCOLS = 101 + TEMPORARY_REDIRECT = 307 + UNAUTHORIZED = 401 + UNPROCESSABLE_ENTITY = 422 + UNSUPPORTED_MEDIA_TYPE = 415 + USE_PROXY = 305 + @staticmethod + def get_phrase(status_code: int) -> str: ... + +class TLDError(GObject.GEnum): + INVALID_HOSTNAME = 0 + IS_IP_ADDRESS = 1 + NOT_ENOUGH_DOMAINS = 2 + NO_BASE_DOMAIN = 3 + NO_PSL_DATA = 4 + @staticmethod + def quark() -> int: ... + +class URIComponent(GObject.GEnum): + AUTH_PARAMS = 4 + FRAGMENT = 9 + HOST = 5 + NONE = 0 + PASSWORD = 3 + PATH = 7 + PORT = 6 + QUERY = 8 + SCHEME = 1 + USER = 2 + +class WebsocketCloseCode(GObject.GEnum): + ABNORMAL = 1006 + BAD_DATA = 1007 + GOING_AWAY = 1001 + NORMAL = 1000 + NO_EXTENSION = 1010 + NO_STATUS = 1005 + POLICY_VIOLATION = 1008 + PROTOCOL_ERROR = 1002 + SERVER_ERROR = 1011 + TLS_HANDSHAKE = 1015 + TOO_BIG = 1009 + UNSUPPORTED_DATA = 1003 + +class WebsocketConnectionType(GObject.GEnum): + CLIENT = 1 + SERVER = 2 + UNKNOWN = 0 + +class WebsocketDataType(GObject.GEnum): + BINARY = 2 + TEXT = 1 + +class WebsocketError(GObject.GEnum): + BAD_HANDSHAKE = 2 + BAD_ORIGIN = 3 + FAILED = 0 + NOT_WEBSOCKET = 1 + @staticmethod + def quark() -> int: ... + +class WebsocketState(GObject.GEnum): + CLOSED = 3 + CLOSING = 2 + OPEN = 1 diff --git a/src/gi-stubs/repository/WebKit.pyi b/src/gi-stubs/repository/WebKit.pyi new file mode 100644 index 00000000..eb2013a5 --- /dev/null +++ b/src/gi-stubs/repository/WebKit.pyi @@ -0,0 +1,3882 @@ +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar + +from gi.repository import Gdk +from gi.repository import Gio +from gi.repository import GLib +from gi.repository import GObject +from gi.repository import Gtk +from gi.repository import JavaScriptCore +from gi.repository import Soup + +EDITING_COMMAND_COPY: str = "Copy" +EDITING_COMMAND_CREATE_LINK: str = "CreateLink" +EDITING_COMMAND_CUT: str = "Cut" +EDITING_COMMAND_INSERT_IMAGE: str = "InsertImage" +EDITING_COMMAND_PASTE: str = "Paste" +EDITING_COMMAND_PASTE_AS_PLAIN_TEXT: str = "PasteAsPlainText" +EDITING_COMMAND_REDO: str = "Redo" +EDITING_COMMAND_SELECT_ALL: str = "SelectAll" +EDITING_COMMAND_UNDO: str = "Undo" +MAJOR_VERSION: int = 2 +MICRO_VERSION: int = 3 +MINOR_VERSION: int = 42 +_lock = ... # FIXME Constant +_namespace: str = "WebKit" +_version: str = "6.0" + +def download_error_quark() -> int: ... +def favicon_database_error_quark() -> int: ... +def get_major_version() -> int: ... +def get_micro_version() -> int: ... +def get_minor_version() -> int: ... +def javascript_error_quark() -> int: ... +def media_error_quark() -> int: ... +def media_key_system_permission_get_name( + request: MediaKeySystemPermissionRequest, +) -> str: ... +def network_error_quark() -> int: ... +def policy_error_quark() -> int: ... +def print_error_quark() -> int: ... +def snapshot_error_quark() -> int: ... +def uri_for_display(uri: str) -> Optional[str]: ... +def user_content_filter_error_quark() -> int: ... +def user_media_permission_is_for_audio_device( + request: UserMediaPermissionRequest, +) -> bool: ... +def user_media_permission_is_for_display_device( + request: UserMediaPermissionRequest, +) -> bool: ... +def user_media_permission_is_for_video_device( + request: UserMediaPermissionRequest, +) -> bool: ... +def user_message_error_quark() -> int: ... + +class ApplicationInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> WebKit.ApplicationInfo + """ + + def get_name(self) -> str: ... + def get_version(self) -> Tuple[int, int, int]: ... + @classmethod + def new(cls) -> ApplicationInfo: ... + def ref(self) -> ApplicationInfo: ... + def set_name(self, name: str) -> None: ... + def set_version(self, major: int, minor: int, micro: int) -> None: ... + def unref(self) -> None: ... + +class AuthenticationRequest(GObject.Object): + """ + :Constructors: + + :: + + AuthenticationRequest(**properties) + + Object WebKitAuthenticationRequest + + Signals from WebKitAuthenticationRequest: + cancelled () + authenticated (WebKitCredential) + + Signals from GObject: + notify (GParam) + """ + + def authenticate(self, credential: Optional[Credential] = None) -> None: ... + def can_save_credentials(self) -> bool: ... + def cancel(self) -> None: ... + def get_certificate_pin_flags(self) -> Gio.TlsPasswordFlags: ... + def get_host(self) -> str: ... + def get_port(self) -> int: ... + def get_proposed_credential(self) -> Credential: ... + def get_realm(self) -> str: ... + def get_scheme(self) -> AuthenticationScheme: ... + def get_security_origin(self) -> SecurityOrigin: ... + def is_for_proxy(self) -> bool: ... + def is_retry(self) -> bool: ... + def set_can_save_credentials(self, enabled: bool) -> None: ... + def set_proposed_credential(self, credential: Credential) -> None: ... + +class AuthenticationRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthenticationRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class AutomationSession(GObject.Object): + """ + :Constructors: + + :: + + AutomationSession(**properties) + + Object WebKitAutomationSession + + Signals from WebKitAutomationSession: + create-web-view () -> WebKitWebView + + Properties from WebKitAutomationSession: + id -> gchararray: id + + Signals from GObject: + notify (GParam) + """ + + class Props: + id: str + + props: Props = ... + def __init__(self, id: str = ...): ... + def get_application_info(self) -> ApplicationInfo: ... + def get_id(self) -> str: ... + def set_application_info(self, info: ApplicationInfo) -> None: ... + +class AutomationSessionClass(GObject.GPointer): + """ + :Constructors: + + :: + + AutomationSessionClass() + """ + + parent_class: GObject.ObjectClass = ... + +class BackForwardList(GObject.Object): + """ + :Constructors: + + :: + + BackForwardList(**properties) + + Object WebKitBackForwardList + + Signals from WebKitBackForwardList: + changed (WebKitBackForwardListItem, gpointer) + + Signals from GObject: + notify (GParam) + """ + + def get_back_item(self) -> Optional[BackForwardListItem]: ... + def get_back_list(self) -> list[BackForwardListItem]: ... + def get_back_list_with_limit(self, limit: int) -> list[BackForwardListItem]: ... + def get_current_item(self) -> Optional[BackForwardListItem]: ... + def get_forward_item(self) -> Optional[BackForwardListItem]: ... + def get_forward_list(self) -> list[BackForwardListItem]: ... + def get_forward_list_with_limit(self, limit: int) -> list[BackForwardListItem]: ... + def get_length(self) -> int: ... + def get_nth_item(self, index: int) -> Optional[BackForwardListItem]: ... + +class BackForwardListClass(GObject.GPointer): + """ + :Constructors: + + :: + + BackForwardListClass() + """ + + parent_class: GObject.ObjectClass = ... + +class BackForwardListItem(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + BackForwardListItem(**properties) + + Object WebKitBackForwardListItem + + Signals from GObject: + notify (GParam) + """ + + def get_original_uri(self) -> str: ... + def get_title(self) -> str: ... + def get_uri(self) -> str: ... + +class BackForwardListItemClass(GObject.GPointer): + """ + :Constructors: + + :: + + BackForwardListItemClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + +class ClipboardPermissionRequest(GObject.Object, PermissionRequest): ... + +class ClipboardPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + ClipboardPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ColorChooserRequest(GObject.Object): + """ + :Constructors: + + :: + + ColorChooserRequest(**properties) + + Object WebKitColorChooserRequest + + Signals from WebKitColorChooserRequest: + finished () + + Properties from WebKitColorChooserRequest: + rgba -> GdkRGBA: rgba + + Signals from GObject: + notify (GParam) + """ + + class Props: + rgba: Gdk.RGBA + + props: Props = ... + def __init__(self, rgba: Gdk.RGBA = ...): ... + def cancel(self) -> None: ... + def finish(self) -> None: ... + def get_element_rectangle(self) -> Gdk.Rectangle: ... + def get_rgba(self) -> Gdk.RGBA: ... + def set_rgba(self, rgba: Gdk.RGBA) -> None: ... + +class ColorChooserRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + ColorChooserRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ContextMenu(GObject.Object): + """ + :Constructors: + + :: + + ContextMenu(**properties) + new() -> WebKit.ContextMenu + new_with_items(items:list) -> WebKit.ContextMenu + + Object WebKitContextMenu + + Signals from GObject: + notify (GParam) + """ + + def append(self, item: ContextMenuItem) -> None: ... + def first(self) -> ContextMenuItem: ... + def get_event(self) -> Gdk.Event: ... + def get_item_at_position(self, position: int) -> ContextMenuItem: ... + def get_items(self) -> list[ContextMenuItem]: ... + def get_n_items(self) -> int: ... + def get_user_data(self) -> GLib.Variant: ... + def insert(self, item: ContextMenuItem, position: int) -> None: ... + def last(self) -> ContextMenuItem: ... + def move_item(self, item: ContextMenuItem, position: int) -> None: ... + @classmethod + def new(cls) -> ContextMenu: ... + @classmethod + def new_with_items(cls, items: list[ContextMenuItem]) -> ContextMenu: ... + def prepend(self, item: ContextMenuItem) -> None: ... + def remove(self, item: ContextMenuItem) -> None: ... + def remove_all(self) -> None: ... + def set_user_data(self, user_data: GLib.Variant) -> None: ... + +class ContextMenuClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContextMenuClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ContextMenuItem(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + ContextMenuItem(**properties) + new_from_gaction(action:Gio.Action, label:str, target:GLib.Variant=None) -> WebKit.ContextMenuItem + new_from_stock_action(action:WebKit.ContextMenuAction) -> WebKit.ContextMenuItem + new_from_stock_action_with_label(action:WebKit.ContextMenuAction, label:str) -> WebKit.ContextMenuItem + new_separator() -> WebKit.ContextMenuItem + new_with_submenu(label:str, submenu:WebKit.ContextMenu) -> WebKit.ContextMenuItem + + Object WebKitContextMenuItem + + Signals from GObject: + notify (GParam) + """ + + def get_gaction(self) -> Gio.Action: ... + def get_stock_action(self) -> ContextMenuAction: ... + def get_submenu(self) -> ContextMenu: ... + def is_separator(self) -> bool: ... + @classmethod + def new_from_gaction( + cls, action: Gio.Action, label: str, target: Optional[GLib.Variant] = None + ) -> ContextMenuItem: ... + @classmethod + def new_from_stock_action(cls, action: ContextMenuAction) -> ContextMenuItem: ... + @classmethod + def new_from_stock_action_with_label( + cls, action: ContextMenuAction, label: str + ) -> ContextMenuItem: ... + @classmethod + def new_separator(cls) -> ContextMenuItem: ... + @classmethod + def new_with_submenu(cls, label: str, submenu: ContextMenu) -> ContextMenuItem: ... + def set_submenu(self, submenu: Optional[ContextMenu] = None) -> None: ... + +class ContextMenuItemClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContextMenuItemClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + +class CookieManager(GObject.Object): + """ + :Constructors: + + :: + + CookieManager(**properties) + + Object WebKitCookieManager + + Signals from WebKitCookieManager: + changed () + + Signals from GObject: + notify (GParam) + """ + + def add_cookie( + self, + cookie: Soup.Cookie, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def add_cookie_finish(self, result: Gio.AsyncResult) -> bool: ... + def delete_cookie( + self, + cookie: Soup.Cookie, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def delete_cookie_finish(self, result: Gio.AsyncResult) -> bool: ... + def get_accept_policy( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_accept_policy_finish( + self, result: Gio.AsyncResult + ) -> CookieAcceptPolicy: ... + def get_all_cookies( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_all_cookies_finish(self, result: Gio.AsyncResult) -> list[Soup.Cookie]: ... + def get_cookies( + self, + uri: str, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_cookies_finish(self, result: Gio.AsyncResult) -> list[Soup.Cookie]: ... + def replace_cookies( + self, + cookies: list[Soup.Cookie], + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def replace_cookies_finish(self, result: Gio.AsyncResult) -> bool: ... + def set_accept_policy(self, policy: CookieAcceptPolicy) -> None: ... + def set_persistent_storage( + self, filename: str, storage: CookiePersistentStorage + ) -> None: ... + +class CookieManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + CookieManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Credential(GObject.GBoxed): + """ + :Constructors: + + :: + + new(username:str, password:str, persistence:WebKit.CredentialPersistence) -> WebKit.Credential + new_for_certificate(certificate:Gio.TlsCertificate=None, persistence:WebKit.CredentialPersistence) -> WebKit.Credential + new_for_certificate_pin(pin:str, persistence:WebKit.CredentialPersistence) -> WebKit.Credential + """ + + def copy(self) -> Credential: ... + def free(self) -> None: ... + def get_certificate(self) -> Gio.TlsCertificate: ... + def get_password(self) -> str: ... + def get_persistence(self) -> CredentialPersistence: ... + def get_username(self) -> str: ... + def has_password(self) -> bool: ... + @classmethod + def new( + cls, username: str, password: str, persistence: CredentialPersistence + ) -> Credential: ... + @classmethod + def new_for_certificate( + cls, + certificate: Optional[Gio.TlsCertificate], + persistence: CredentialPersistence, + ) -> Credential: ... + @classmethod + def new_for_certificate_pin( + cls, pin: str, persistence: CredentialPersistence + ) -> Credential: ... + +class DeviceInfoPermissionRequest(GObject.Object, PermissionRequest): ... + +class DeviceInfoPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + DeviceInfoPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Download(GObject.Object): + """ + :Constructors: + + :: + + Download(**properties) + + Object WebKitDownload + + Signals from WebKitDownload: + finished () + received-data (guint64) + failed (GError) + decide-destination (gchararray) -> gboolean + created-destination (gchararray) + + Properties from WebKitDownload: + destination -> gchararray: destination + response -> WebKitURIResponse: response + estimated-progress -> gdouble: estimated-progress + allow-overwrite -> gboolean: allow-overwrite + + Signals from GObject: + notify (GParam) + """ + + class Props: + allow_overwrite: bool + destination: Optional[str] + estimated_progress: float + response: URIResponse + + props: Props = ... + def __init__(self, allow_overwrite: bool = ...): ... + def cancel(self) -> None: ... + def get_allow_overwrite(self) -> bool: ... + def get_destination(self) -> Optional[str]: ... + def get_elapsed_time(self) -> float: ... + def get_estimated_progress(self) -> float: ... + def get_received_data_length(self) -> int: ... + def get_request(self) -> URIRequest: ... + def get_response(self) -> URIResponse: ... + def get_web_view(self) -> WebView: ... + def set_allow_overwrite(self, allowed: bool) -> None: ... + def set_destination(self, destination: str) -> None: ... + +class DownloadClass(GObject.GPointer): + """ + :Constructors: + + :: + + DownloadClass() + """ + + parent_class: GObject.ObjectClass = ... + +class EditorState(GObject.Object): + """ + :Constructors: + + :: + + EditorState(**properties) + + Object WebKitEditorState + + Properties from WebKitEditorState: + typing-attributes -> guint: typing-attributes + + Signals from GObject: + notify (GParam) + """ + + class Props: + typing_attributes: int + + props: Props = ... + def get_typing_attributes(self) -> int: ... + def is_copy_available(self) -> bool: ... + def is_cut_available(self) -> bool: ... + def is_paste_available(self) -> bool: ... + def is_redo_available(self) -> bool: ... + def is_undo_available(self) -> bool: ... + +class EditorStateClass(GObject.GPointer): + """ + :Constructors: + + :: + + EditorStateClass() + """ + + parent_class: GObject.ObjectClass = ... + +class FaviconDatabase(GObject.Object): + """ + :Constructors: + + :: + + FaviconDatabase(**properties) + + Object WebKitFaviconDatabase + + Signals from WebKitFaviconDatabase: + favicon-changed (gchararray, gchararray) + + Signals from GObject: + notify (GParam) + """ + + def clear(self) -> None: ... + def get_favicon( + self, + page_uri: str, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_favicon_finish(self, result: Gio.AsyncResult) -> Gdk.Texture: ... + def get_favicon_uri(self, page_uri: str) -> str: ... + +class FaviconDatabaseClass(GObject.GPointer): + """ + :Constructors: + + :: + + FaviconDatabaseClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Feature(GObject.GBoxed): + def get_category(self) -> str: ... + def get_default_value(self) -> bool: ... + def get_details(self) -> Optional[str]: ... + def get_identifier(self) -> str: ... + def get_name(self) -> Optional[str]: ... + def get_status(self) -> FeatureStatus: ... + def ref(self) -> Feature: ... + def unref(self) -> None: ... + +class FeatureList(GObject.GBoxed): + def get(self, index: int) -> Feature: ... + def get_length(self) -> int: ... + def ref(self) -> FeatureList: ... + def unref(self) -> None: ... + +class FileChooserRequest(GObject.Object): + """ + :Constructors: + + :: + + FileChooserRequest(**properties) + + Object WebKitFileChooserRequest + + Properties from WebKitFileChooserRequest: + filter -> GtkFileFilter: filter + mime-types -> GStrv: mime-types + select-multiple -> gboolean: select-multiple + selected-files -> GStrv: selected-files + + Signals from GObject: + notify (GParam) + """ + + class Props: + filter: Gtk.FileFilter + mime_types: list[str] + select_multiple: bool + selected_files: list[str] + + props: Props = ... + def cancel(self) -> None: ... + def get_mime_types(self) -> list[str]: ... + def get_mime_types_filter(self) -> Gtk.FileFilter: ... + def get_select_multiple(self) -> bool: ... + def get_selected_files(self) -> list[str]: ... + def select_files(self, files: Sequence[str]) -> None: ... + +class FileChooserRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileChooserRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class FindController(GObject.Object): + """ + :Constructors: + + :: + + FindController(**properties) + + Object WebKitFindController + + Signals from WebKitFindController: + found-text (guint) + failed-to-find-text () + counted-matches (guint) + + Properties from WebKitFindController: + text -> gchararray: text + options -> WebKitFindOptions: options + max-match-count -> guint: max-match-count + web-view -> WebKitWebView: web-view + + Signals from GObject: + notify (GParam) + """ + + class Props: + max_match_count: int + options: FindOptions + text: str + web_view: WebView + + props: Props = ... + def __init__(self, web_view: WebView = ...): ... + def count_matches( + self, search_text: str, find_options: int, max_match_count: int + ) -> None: ... + def get_max_match_count(self) -> int: ... + def get_options(self) -> int: ... + def get_search_text(self) -> str: ... + def get_web_view(self) -> WebView: ... + def search( + self, search_text: str, find_options: int, max_match_count: int + ) -> None: ... + def search_finish(self) -> None: ... + def search_next(self) -> None: ... + def search_previous(self) -> None: ... + +class FindControllerClass(GObject.GPointer): + """ + :Constructors: + + :: + + FindControllerClass() + """ + + parent_class: GObject.ObjectClass = ... + +class FormSubmissionRequest(GObject.Object): + """ + :Constructors: + + :: + + FormSubmissionRequest(**properties) + + Object WebKitFormSubmissionRequest + + Signals from GObject: + notify (GParam) + """ + + def list_text_fields(self) -> Tuple[bool, list[str], list[str]]: ... + def submit(self) -> None: ... + +class FormSubmissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + FormSubmissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class GeolocationManager(GObject.Object): + """ + :Constructors: + + :: + + GeolocationManager(**properties) + + Object WebKitGeolocationManager + + Signals from WebKitGeolocationManager: + start () -> gboolean + stop () + + Properties from WebKitGeolocationManager: + enable-high-accuracy -> gboolean: enable-high-accuracy + + Signals from GObject: + notify (GParam) + """ + + class Props: + enable_high_accuracy: bool + + props: Props = ... + def failed(self, error_message: str) -> None: ... + def get_enable_high_accuracy(self) -> bool: ... + def update_position(self, position: GeolocationPosition) -> None: ... + +class GeolocationManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + GeolocationManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + +class GeolocationPermissionRequest(GObject.Object, PermissionRequest): ... + +class GeolocationPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + GeolocationPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class GeolocationPosition(GObject.GBoxed): + """ + :Constructors: + + :: + + new(latitude:float, longitude:float, accuracy:float) -> WebKit.GeolocationPosition + """ + + def copy(self) -> GeolocationPosition: ... + def free(self) -> None: ... + @classmethod + def new( + cls, latitude: float, longitude: float, accuracy: float + ) -> GeolocationPosition: ... + def set_altitude(self, altitude: float) -> None: ... + def set_altitude_accuracy(self, altitude_accuracy: float) -> None: ... + def set_heading(self, heading: float) -> None: ... + def set_speed(self, speed: float) -> None: ... + def set_timestamp(self, timestamp: int) -> None: ... + +class HitTestResult(GObject.Object): + """ + :Constructors: + + :: + + HitTestResult(**properties) + + Object WebKitHitTestResult + + Properties from WebKitHitTestResult: + context -> guint: context + link-uri -> gchararray: link-uri + link-title -> gchararray: link-title + link-label -> gchararray: link-label + image-uri -> gchararray: image-uri + media-uri -> gchararray: media-uri + + Signals from GObject: + notify (GParam) + """ + + class Props: + context: int + image_uri: str + link_label: str + link_title: str + link_uri: str + media_uri: str + + props: Props = ... + def __init__( + self, + context: int = ..., + image_uri: str = ..., + link_label: str = ..., + link_title: str = ..., + link_uri: str = ..., + media_uri: str = ..., + ): ... + def context_is_editable(self) -> bool: ... + def context_is_image(self) -> bool: ... + def context_is_link(self) -> bool: ... + def context_is_media(self) -> bool: ... + def context_is_scrollbar(self) -> bool: ... + def context_is_selection(self) -> bool: ... + def get_context(self) -> int: ... + def get_image_uri(self) -> str: ... + def get_link_label(self) -> str: ... + def get_link_title(self) -> str: ... + def get_link_uri(self) -> str: ... + def get_media_uri(self) -> str: ... + +class HitTestResultClass(GObject.GPointer): + """ + :Constructors: + + :: + + HitTestResultClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ITPFirstParty(GObject.GBoxed): + def get_domain(self) -> str: ... + def get_last_update_time(self) -> GLib.DateTime: ... + def get_website_data_access_allowed(self) -> bool: ... + def ref(self) -> ITPFirstParty: ... + def unref(self) -> None: ... + +class ITPThirdParty(GObject.GBoxed): + def get_domain(self) -> str: ... + def get_first_parties(self) -> list[ITPFirstParty]: ... + def ref(self) -> ITPThirdParty: ... + def unref(self) -> None: ... + +class InputMethodContext(GObject.Object): + """ + :Constructors: + + :: + + InputMethodContext(**properties) + + Object WebKitInputMethodContext + + Signals from WebKitInputMethodContext: + preedit-started () + preedit-changed () + preedit-finished () + committed (gchararray) + delete-surrounding (gint, guint) + + Properties from WebKitInputMethodContext: + input-purpose -> WebKitInputPurpose: input-purpose + input-hints -> WebKitInputHints: input-hints + + Signals from GObject: + notify (GParam) + """ + + class Props: + input_hints: InputHints + input_purpose: InputPurpose + + props: Props = ... + parent_instance: GObject.Object = ... + priv: InputMethodContextPrivate = ... + def __init__( + self, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + ): ... + def do_committed(self, text: str) -> None: ... + def do_delete_surrounding(self, offset: int, n_chars: int) -> None: ... + def do_filter_key_event(self, key_event: Gdk.Event) -> bool: ... + def do_get_preedit(self) -> Tuple[str, list[InputMethodUnderline], int]: ... + def do_notify_cursor_area( + self, x: int, y: int, width: int, height: int + ) -> None: ... + def do_notify_focus_in(self) -> None: ... + def do_notify_focus_out(self) -> None: ... + def do_notify_surrounding( + self, text: str, length: int, cursor_index: int, selection_index: int + ) -> None: ... + def do_preedit_changed(self) -> None: ... + def do_preedit_finished(self) -> None: ... + def do_preedit_started(self) -> None: ... + def do_reset(self) -> None: ... + def do_set_enable_preedit(self, enabled: bool) -> None: ... + def filter_key_event(self, key_event: Gdk.Event) -> bool: ... + def get_input_hints(self) -> InputHints: ... + def get_input_purpose(self) -> InputPurpose: ... + def get_preedit(self) -> Tuple[str, list[InputMethodUnderline], int]: ... + def notify_cursor_area(self, x: int, y: int, width: int, height: int) -> None: ... + def notify_focus_in(self) -> None: ... + def notify_focus_out(self) -> None: ... + def notify_surrounding( + self, text: str, length: int, cursor_index: int, selection_index: int + ) -> None: ... + def reset(self) -> None: ... + def set_enable_preedit(self, enabled: bool) -> None: ... + def set_input_hints(self, hints: InputHints) -> None: ... + def set_input_purpose(self, purpose: InputPurpose) -> None: ... + +class InputMethodContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + InputMethodContextClass() + """ + + parent_class: GObject.ObjectClass = ... + preedit_started: Callable[[InputMethodContext], None] = ... + preedit_changed: Callable[[InputMethodContext], None] = ... + preedit_finished: Callable[[InputMethodContext], None] = ... + committed: Callable[[InputMethodContext, str], None] = ... + delete_surrounding: Callable[[InputMethodContext, int, int], None] = ... + set_enable_preedit: Callable[[InputMethodContext, bool], None] = ... + get_preedit: Callable[ + [InputMethodContext], Tuple[str, list[InputMethodUnderline], int] + ] = ... + filter_key_event: Callable[[InputMethodContext, Gdk.Event], bool] = ... + notify_focus_in: Callable[[InputMethodContext], None] = ... + notify_focus_out: Callable[[InputMethodContext], None] = ... + notify_cursor_area: Callable[[InputMethodContext, int, int, int, int], None] = ... + notify_surrounding: Callable[[InputMethodContext, str, int, int, int], None] = ... + reset: Callable[[InputMethodContext], None] = ... + _webkit_reserved0: None = ... + _webkit_reserved1: None = ... + _webkit_reserved2: None = ... + _webkit_reserved3: None = ... + _webkit_reserved4: None = ... + _webkit_reserved5: None = ... + _webkit_reserved6: None = ... + _webkit_reserved7: None = ... + _webkit_reserved8: None = ... + _webkit_reserved9: None = ... + _webkit_reserved10: None = ... + _webkit_reserved11: None = ... + _webkit_reserved12: None = ... + _webkit_reserved13: None = ... + _webkit_reserved14: None = ... + _webkit_reserved15: None = ... + +class InputMethodContextPrivate(GObject.GPointer): ... + +class InputMethodUnderline(GObject.GBoxed): + """ + :Constructors: + + :: + + new(start_offset:int, end_offset:int) -> WebKit.InputMethodUnderline + """ + + def copy(self) -> InputMethodUnderline: ... + def free(self) -> None: ... + @classmethod + def new(cls, start_offset: int, end_offset: int) -> InputMethodUnderline: ... + def set_color(self, rgba: Optional[Gdk.RGBA] = None) -> None: ... + +class MediaKeySystemPermissionRequest(GObject.Object, PermissionRequest): ... + +class MediaKeySystemPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + MediaKeySystemPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class MemoryPressureSettings(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> WebKit.MemoryPressureSettings + """ + + def copy(self) -> MemoryPressureSettings: ... + def free(self) -> None: ... + def get_conservative_threshold(self) -> float: ... + def get_kill_threshold(self) -> float: ... + def get_memory_limit(self) -> int: ... + def get_poll_interval(self) -> float: ... + def get_strict_threshold(self) -> float: ... + @classmethod + def new(cls) -> MemoryPressureSettings: ... + def set_conservative_threshold(self, value: float) -> None: ... + def set_kill_threshold(self, value: float) -> None: ... + def set_memory_limit(self, memory_limit: int) -> None: ... + def set_poll_interval(self, value: float) -> None: ... + def set_strict_threshold(self, value: float) -> None: ... + +class NavigationAction(GObject.GBoxed): + def copy(self) -> NavigationAction: ... + def free(self) -> None: ... + def get_frame_name(self) -> Optional[str]: ... + def get_modifiers(self) -> int: ... + def get_mouse_button(self) -> int: ... + def get_navigation_type(self) -> NavigationType: ... + def get_request(self) -> URIRequest: ... + def is_redirect(self) -> bool: ... + def is_user_gesture(self) -> bool: ... + +class NavigationPolicyDecision(PolicyDecision): + """ + :Constructors: + + :: + + NavigationPolicyDecision(**properties) + + Object WebKitNavigationPolicyDecision + + Properties from WebKitNavigationPolicyDecision: + navigation-action -> WebKitNavigationAction: navigation-action + + Signals from GObject: + notify (GParam) + """ + + class Props: + navigation_action: NavigationAction + + props: Props = ... + def get_navigation_action(self) -> NavigationAction: ... + +class NavigationPolicyDecisionClass(GObject.GPointer): + """ + :Constructors: + + :: + + NavigationPolicyDecisionClass() + """ + + parent_class: PolicyDecisionClass = ... + +class NetworkProxySettings(GObject.GBoxed): + """ + :Constructors: + + :: + + new(default_proxy_uri:str=None, ignore_hosts:list=None) -> WebKit.NetworkProxySettings + """ + + def add_proxy_for_scheme(self, scheme: str, proxy_uri: str) -> None: ... + def copy(self) -> NetworkProxySettings: ... + def free(self) -> None: ... + @classmethod + def new( + cls, + default_proxy_uri: Optional[str] = None, + ignore_hosts: Optional[Sequence[str]] = None, + ) -> NetworkProxySettings: ... + +class NetworkSession(GObject.Object): + """ + :Constructors: + + :: + + NetworkSession(**properties) + new(data_directory:str=None, cache_directory:str=None) -> WebKit.NetworkSession + new_ephemeral() -> WebKit.NetworkSession + + Object WebKitNetworkSession + + Signals from WebKitNetworkSession: + download-started (WebKitDownload) + + Properties from WebKitNetworkSession: + data-directory -> gchararray: data-directory + cache-directory -> gchararray: cache-directory + is-ephemeral -> gboolean: is-ephemeral + + Signals from GObject: + notify (GParam) + """ + + class Props: + is_ephemeral: bool + cache_directory: str + data_directory: str + + props: Props = ... + def __init__( + self, + cache_directory: str = ..., + data_directory: str = ..., + is_ephemeral: bool = ..., + ): ... + def allow_tls_certificate_for_host( + self, certificate: Gio.TlsCertificate, host: str + ) -> None: ... + def download_uri(self, uri: str) -> Download: ... + def get_cookie_manager(self) -> CookieManager: ... + @staticmethod + def get_default() -> NetworkSession: ... + def get_itp_enabled(self) -> bool: ... + def get_itp_summary( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_itp_summary_finish( + self, result: Gio.AsyncResult + ) -> list[ITPThirdParty]: ... + def get_persistent_credential_storage_enabled(self) -> bool: ... + def get_tls_errors_policy(self) -> TLSErrorsPolicy: ... + def get_website_data_manager(self) -> WebsiteDataManager: ... + def is_ephemeral(self) -> bool: ... + @classmethod + def new( + cls, data_directory: Optional[str] = None, cache_directory: Optional[str] = None + ) -> NetworkSession: ... + @classmethod + def new_ephemeral(cls) -> NetworkSession: ... + def prefetch_dns(self, hostname: str) -> None: ... + def set_itp_enabled(self, enabled: bool) -> None: ... + @staticmethod + def set_memory_pressure_settings(settings: MemoryPressureSettings) -> None: ... + def set_persistent_credential_storage_enabled(self, enabled: bool) -> None: ... + def set_proxy_settings( + self, + proxy_mode: NetworkProxyMode, + proxy_settings: Optional[NetworkProxySettings] = None, + ) -> None: ... + def set_tls_errors_policy(self, policy: TLSErrorsPolicy) -> None: ... + +class NetworkSessionClass(GObject.GPointer): + """ + :Constructors: + + :: + + NetworkSessionClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Notification(GObject.Object): + """ + :Constructors: + + :: + + Notification(**properties) + + Object WebKitNotification + + Signals from WebKitNotification: + closed () + clicked () + + Properties from WebKitNotification: + id -> guint64: id + title -> gchararray: title + body -> gchararray: body + tag -> gchararray: tag + + Signals from GObject: + notify (GParam) + """ + + class Props: + body: str + id: int + tag: Optional[str] + title: str + + props: Props = ... + def clicked(self) -> None: ... + def close(self) -> None: ... + def get_body(self) -> str: ... + def get_id(self) -> int: ... + def get_tag(self) -> Optional[str]: ... + def get_title(self) -> str: ... + +class NotificationClass(GObject.GPointer): + """ + :Constructors: + + :: + + NotificationClass() + """ + + parent_class: GObject.ObjectClass = ... + +class NotificationPermissionRequest(GObject.Object, PermissionRequest): ... + +class NotificationPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + NotificationPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class OptionMenu(GObject.Object): + """ + :Constructors: + + :: + + OptionMenu(**properties) + + Object WebKitOptionMenu + + Signals from WebKitOptionMenu: + close () + + Signals from GObject: + notify (GParam) + """ + + def activate_item(self, index: int) -> None: ... + def close(self) -> None: ... + def get_event(self) -> Gdk.Event: ... + def get_item(self, index: int) -> OptionMenuItem: ... + def get_n_items(self) -> int: ... + def select_item(self, index: int) -> None: ... + +class OptionMenuClass(GObject.GPointer): + """ + :Constructors: + + :: + + OptionMenuClass() + """ + + parent_class: GObject.ObjectClass = ... + +class OptionMenuItem(GObject.GBoxed): + def copy(self) -> OptionMenuItem: ... + def free(self) -> None: ... + def get_label(self) -> str: ... + def get_tooltip(self) -> str: ... + def is_enabled(self) -> bool: ... + def is_group_child(self) -> bool: ... + def is_group_label(self) -> bool: ... + def is_selected(self) -> bool: ... + +class PermissionRequest(GObject.GInterface): + """ + Interface WebKitPermissionRequest + + Signals from GObject: + notify (GParam) + """ + + def allow(self) -> None: ... + def deny(self) -> None: ... + +class PermissionRequestInterface(GObject.GPointer): + """ + :Constructors: + + :: + + PermissionRequestInterface() + """ + + parent_interface: GObject.TypeInterface = ... + allow: Callable[[PermissionRequest], None] = ... + deny: Callable[[PermissionRequest], None] = ... + +class PermissionStateQuery(GObject.GBoxed): + def finish(self, state: PermissionState) -> None: ... + def get_name(self) -> str: ... + def get_security_origin(self) -> SecurityOrigin: ... + def ref(self) -> PermissionStateQuery: ... + def unref(self) -> None: ... + +class PointerLockPermissionRequest(GObject.Object, PermissionRequest): ... + +class PointerLockPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + PointerLockPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class PolicyDecision(GObject.Object): + """ + :Constructors: + + :: + + PolicyDecision(**properties) + + Object WebKitPolicyDecision + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + priv: PolicyDecisionPrivate = ... + def download(self) -> None: ... + def ignore(self) -> None: ... + def use(self) -> None: ... + def use_with_policies(self, policies: WebsitePolicies) -> None: ... + +class PolicyDecisionClass(GObject.GPointer): + """ + :Constructors: + + :: + + PolicyDecisionClass() + """ + + parent_class: GObject.ObjectClass = ... + _webkit_reserved0: None = ... + _webkit_reserved1: None = ... + _webkit_reserved2: None = ... + _webkit_reserved3: None = ... + _webkit_reserved4: None = ... + _webkit_reserved5: None = ... + _webkit_reserved6: None = ... + _webkit_reserved7: None = ... + +class PolicyDecisionPrivate(GObject.GPointer): ... + +class PrintOperation(GObject.Object): + """ + :Constructors: + + :: + + PrintOperation(**properties) + new(web_view:WebKit.WebView) -> WebKit.PrintOperation + + Object WebKitPrintOperation + + Signals from WebKitPrintOperation: + finished () + failed (GError) + + Properties from WebKitPrintOperation: + web-view -> WebKitWebView: web-view + print-settings -> GtkPrintSettings: print-settings + page-setup -> GtkPageSetup: page-setup + + Signals from GObject: + notify (GParam) + """ + + class Props: + page_setup: Gtk.PageSetup + print_settings: Gtk.PrintSettings + web_view: WebView + + props: Props = ... + def __init__( + self, + page_setup: Gtk.PageSetup = ..., + print_settings: Gtk.PrintSettings = ..., + web_view: WebView = ..., + ): ... + def get_page_setup(self) -> Gtk.PageSetup: ... + def get_print_settings(self) -> Gtk.PrintSettings: ... + @classmethod + def new(cls, web_view: WebView) -> PrintOperation: ... + def print_(self) -> None: ... + def run_dialog( + self, parent: Optional[Gtk.Window] = None + ) -> PrintOperationResponse: ... + def set_page_setup(self, page_setup: Gtk.PageSetup) -> None: ... + def set_print_settings(self, print_settings: Gtk.PrintSettings) -> None: ... + +class PrintOperationClass(GObject.GPointer): + """ + :Constructors: + + :: + + PrintOperationClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ResponsePolicyDecision(PolicyDecision): + """ + :Constructors: + + :: + + ResponsePolicyDecision(**properties) + + Object WebKitResponsePolicyDecision + + Properties from WebKitResponsePolicyDecision: + request -> WebKitURIRequest: request + response -> WebKitURIResponse: response + + Signals from GObject: + notify (GParam) + """ + + class Props: + request: URIRequest + response: URIResponse + + props: Props = ... + def get_request(self) -> URIRequest: ... + def get_response(self) -> URIResponse: ... + def is_main_frame_main_resource(self) -> bool: ... + def is_mime_type_supported(self) -> bool: ... + +class ResponsePolicyDecisionClass(GObject.GPointer): + """ + :Constructors: + + :: + + ResponsePolicyDecisionClass() + """ + + parent_class: PolicyDecisionClass = ... + +class ScriptDialog(GObject.GBoxed): + def close(self) -> None: ... + def confirm_set_confirmed(self, confirmed: bool) -> None: ... + def get_dialog_type(self) -> ScriptDialogType: ... + def get_message(self) -> str: ... + def prompt_get_default_text(self) -> str: ... + def prompt_set_text(self, text: str) -> None: ... + def ref(self) -> ScriptDialog: ... + def unref(self) -> None: ... + +class ScriptMessageReply(GObject.GBoxed): + def ref(self) -> ScriptMessageReply: ... + def return_error_message(self, error_message: str) -> None: ... + def return_value(self, reply_value: JavaScriptCore.Value) -> None: ... + def unref(self) -> None: ... + +class SecurityManager(GObject.Object): + """ + :Constructors: + + :: + + SecurityManager(**properties) + + Object WebKitSecurityManager + + Signals from GObject: + notify (GParam) + """ + + def register_uri_scheme_as_cors_enabled(self, scheme: str) -> None: ... + def register_uri_scheme_as_display_isolated(self, scheme: str) -> None: ... + def register_uri_scheme_as_empty_document(self, scheme: str) -> None: ... + def register_uri_scheme_as_local(self, scheme: str) -> None: ... + def register_uri_scheme_as_no_access(self, scheme: str) -> None: ... + def register_uri_scheme_as_secure(self, scheme: str) -> None: ... + def uri_scheme_is_cors_enabled(self, scheme: str) -> bool: ... + def uri_scheme_is_display_isolated(self, scheme: str) -> bool: ... + def uri_scheme_is_empty_document(self, scheme: str) -> bool: ... + def uri_scheme_is_local(self, scheme: str) -> bool: ... + def uri_scheme_is_no_access(self, scheme: str) -> bool: ... + def uri_scheme_is_secure(self, scheme: str) -> bool: ... + +class SecurityManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + SecurityManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + +class SecurityOrigin(GObject.GBoxed): + """ + :Constructors: + + :: + + new(protocol:str, host:str, port:int) -> WebKit.SecurityOrigin + new_for_uri(uri:str) -> WebKit.SecurityOrigin + """ + + def get_host(self) -> Optional[str]: ... + def get_port(self) -> int: ... + def get_protocol(self) -> Optional[str]: ... + @classmethod + def new(cls, protocol: str, host: str, port: int) -> SecurityOrigin: ... + @classmethod + def new_for_uri(cls, uri: str) -> SecurityOrigin: ... + def ref(self) -> SecurityOrigin: ... + def to_string(self) -> Optional[str]: ... + def unref(self) -> None: ... + +class Settings(GObject.Object): + """ + :Constructors: + + :: + + Settings(**properties) + new() -> WebKit.Settings + + Object WebKitSettings + + Properties from WebKitSettings: + enable-javascript -> gboolean: Enable JavaScript + Enable JavaScript. + auto-load-images -> gboolean: Auto load images + Load images automatically. + load-icons-ignoring-image-load-setting -> gboolean: Load icons ignoring image load setting + Whether to load site icons ignoring image load setting. + enable-offline-web-application-cache -> gboolean: Enable offline web application cache + Whether to enable offline web application cache. + enable-html5-local-storage -> gboolean: Enable HTML5 local storage + Whether to enable HTML5 Local Storage support. + enable-html5-database -> gboolean: Enable HTML5 database + Whether to enable HTML5 database support. + javascript-can-open-windows-automatically -> gboolean: JavaScript can open windows automatically + Whether JavaScript can open windows automatically. + enable-hyperlink-auditing -> gboolean: Enable hyperlink auditing + Whether should be able to send pings. + default-font-family -> gchararray: Default font family + The font family to use as the default for content that does not specify a font. + monospace-font-family -> gchararray: Monospace font family + The font family used as the default for content using monospace font. + serif-font-family -> gchararray: Serif font family + The font family used as the default for content using serif font. + sans-serif-font-family -> gchararray: Sans-serif font family + The font family used as the default for content using sans-serif font. + cursive-font-family -> gchararray: Cursive font family + The font family used as the default for content using cursive font. + fantasy-font-family -> gchararray: Fantasy font family + The font family used as the default for content using fantasy font. + pictograph-font-family -> gchararray: Pictograph font family + The font family used as the default for content using pictograph font. + default-font-size -> guint: Default font size + The default font size used to display text. + default-monospace-font-size -> guint: Default monospace font size + The default font size used to display monospace text. + minimum-font-size -> guint: Minimum font size + The minimum font size used to display text. + default-charset -> gchararray: Default charset + The default text charset used when interpreting content with unspecified charset. + enable-developer-extras -> gboolean: Enable developer extras + Whether to enable developer extras + enable-resizable-text-areas -> gboolean: Enable resizable text areas + Whether to enable resizable text areas + enable-tabs-to-links -> gboolean: Enable tabs to links + Whether to enable tabs to links + enable-dns-prefetching -> gboolean: Enable DNS prefetching + Whether to enable DNS prefetching + enable-caret-browsing -> gboolean: Enable Caret Browsing + Whether to enable accessibility enhanced keyboard navigation + enable-fullscreen -> gboolean: Enable Fullscreen + Whether to enable the Javascript Fullscreen API + print-backgrounds -> gboolean: Print Backgrounds + Whether background images should be drawn during printing + enable-webaudio -> gboolean: Enable WebAudio + Whether WebAudio content should be handled + enable-webgl -> gboolean: Enable WebGL + Whether WebGL content should be rendered + allow-modal-dialogs -> gboolean: Allow modal dialogs + Whether it is possible to create modal dialogs + zoom-text-only -> gboolean: Zoom Text Only + Whether zoom level of web view changes only the text size + javascript-can-access-clipboard -> gboolean: JavaScript can access clipboard + Whether JavaScript can access Clipboard + media-playback-requires-user-gesture -> gboolean: Media playback requires user gesture + Whether media playback requires user gesture + media-playback-allows-inline -> gboolean: Media playback allows inline + Whether media playback allows inline + draw-compositing-indicators -> gboolean: Draw compositing indicators + Whether to draw compositing borders and repaint counters + enable-site-specific-quirks -> gboolean: Enable Site Specific Quirks + Enables the site-specific compatibility workarounds + enable-page-cache -> gboolean: Enable page cache + Whether the page cache should be used + user-agent -> gchararray: User agent string + The user agent string + enable-smooth-scrolling -> gboolean: Enable smooth scrolling + Whether to enable smooth scrolling + enable-write-console-messages-to-stdout -> gboolean: Write console messages on stdout + Whether to write console messages on stdout + enable-media-stream -> gboolean: Enable MediaStream + Whether MediaStream content should be handled + enable-mock-capture-devices -> gboolean: Enable mock capture devices + Whether we expose mock capture devices or not + enable-spatial-navigation -> gboolean: Enable Spatial Navigation + Whether to enable Spatial Navigation support. + enable-mediasource -> gboolean: Enable MediaSource + Whether MediaSource should be enabled. + enable-encrypted-media -> gboolean: Enable EncryptedMedia + Whether EncryptedMedia should be enabled. + enable-media-capabilities -> gboolean: Enable MediaCapabilities + Whether MediaCapabilities should be enabled. + allow-file-access-from-file-urls -> gboolean: Allow file access from file URLs + Whether file access is allowed from file URLs. + allow-universal-access-from-file-urls -> gboolean: Allow universal access from the context of file scheme URLs + Whether or not universal access is allowed from the context of file scheme URLs + allow-top-navigation-to-data-urls -> gboolean: Allow top frame navigation to data URLs + Whether or not top frame navigation is allowed to data URLs + hardware-acceleration-policy -> WebKitHardwareAccelerationPolicy: Hardware Acceleration Policy + The policy to decide how to enable and disable hardware acceleration + enable-back-forward-navigation-gestures -> gboolean: Enable back-forward navigation gestures + Whether horizontal swipe gesture will trigger back-forward navigation + enable-javascript-markup -> gboolean: Enable JavaScript Markup + Enable JavaScript in document markup. + enable-media -> gboolean: Enable media + Whether media content should be handled + media-content-types-requiring-hardware-support -> gchararray: Media content types requiring hardware support + List of media content types requiring hardware support. + enable-webrtc -> gboolean: Enable WebRTC + Whether WebRTC content should be handled + disable-web-security -> gboolean: Disable web security + Whether web security should be disabled. + + Signals from GObject: + notify (GParam) + """ + + class Props: + allow_file_access_from_file_urls: bool + allow_modal_dialogs: bool + allow_top_navigation_to_data_urls: bool + allow_universal_access_from_file_urls: bool + auto_load_images: bool + cursive_font_family: str + default_charset: str + default_font_family: str + default_font_size: int + default_monospace_font_size: int + disable_web_security: bool + draw_compositing_indicators: bool + enable_back_forward_navigation_gestures: bool + enable_caret_browsing: bool + enable_developer_extras: bool + enable_dns_prefetching: bool + enable_encrypted_media: bool + enable_fullscreen: bool + enable_html5_database: bool + enable_html5_local_storage: bool + enable_hyperlink_auditing: bool + enable_javascript: bool + enable_javascript_markup: bool + enable_media: bool + enable_media_capabilities: bool + enable_media_stream: bool + enable_mediasource: bool + enable_mock_capture_devices: bool + enable_offline_web_application_cache: bool + enable_page_cache: bool + enable_resizable_text_areas: bool + enable_site_specific_quirks: bool + enable_smooth_scrolling: bool + enable_spatial_navigation: bool + enable_tabs_to_links: bool + enable_webaudio: bool + enable_webgl: bool + enable_webrtc: bool + enable_write_console_messages_to_stdout: bool + fantasy_font_family: str + hardware_acceleration_policy: HardwareAccelerationPolicy + javascript_can_access_clipboard: bool + javascript_can_open_windows_automatically: bool + load_icons_ignoring_image_load_setting: bool + media_content_types_requiring_hardware_support: str + media_playback_allows_inline: bool + media_playback_requires_user_gesture: bool + minimum_font_size: int + monospace_font_family: str + pictograph_font_family: str + print_backgrounds: bool + sans_serif_font_family: str + serif_font_family: str + user_agent: str + zoom_text_only: bool + + props: Props = ... + def __init__( + self, + allow_file_access_from_file_urls: bool = ..., + allow_modal_dialogs: bool = ..., + allow_top_navigation_to_data_urls: bool = ..., + allow_universal_access_from_file_urls: bool = ..., + auto_load_images: bool = ..., + cursive_font_family: str = ..., + default_charset: str = ..., + default_font_family: str = ..., + default_font_size: int = ..., + default_monospace_font_size: int = ..., + disable_web_security: bool = ..., + draw_compositing_indicators: bool = ..., + enable_back_forward_navigation_gestures: bool = ..., + enable_caret_browsing: bool = ..., + enable_developer_extras: bool = ..., + enable_dns_prefetching: bool = ..., + enable_encrypted_media: bool = ..., + enable_fullscreen: bool = ..., + enable_html5_database: bool = ..., + enable_html5_local_storage: bool = ..., + enable_hyperlink_auditing: bool = ..., + enable_javascript: bool = ..., + enable_javascript_markup: bool = ..., + enable_media: bool = ..., + enable_media_capabilities: bool = ..., + enable_media_stream: bool = ..., + enable_mediasource: bool = ..., + enable_mock_capture_devices: bool = ..., + enable_offline_web_application_cache: bool = ..., + enable_page_cache: bool = ..., + enable_resizable_text_areas: bool = ..., + enable_site_specific_quirks: bool = ..., + enable_smooth_scrolling: bool = ..., + enable_spatial_navigation: bool = ..., + enable_tabs_to_links: bool = ..., + enable_webaudio: bool = ..., + enable_webgl: bool = ..., + enable_webrtc: bool = ..., + enable_write_console_messages_to_stdout: bool = ..., + fantasy_font_family: str = ..., + hardware_acceleration_policy: HardwareAccelerationPolicy = ..., + javascript_can_access_clipboard: bool = ..., + javascript_can_open_windows_automatically: bool = ..., + load_icons_ignoring_image_load_setting: bool = ..., + media_content_types_requiring_hardware_support: Optional[str] = ..., + media_playback_allows_inline: bool = ..., + media_playback_requires_user_gesture: bool = ..., + minimum_font_size: int = ..., + monospace_font_family: str = ..., + pictograph_font_family: str = ..., + print_backgrounds: bool = ..., + sans_serif_font_family: str = ..., + serif_font_family: str = ..., + user_agent: Optional[str] = ..., + zoom_text_only: bool = ..., + ): ... + @staticmethod + def font_size_to_pixels(points: int) -> int: ... + @staticmethod + def font_size_to_points(pixels: int) -> int: ... + @staticmethod + def get_all_features() -> FeatureList: ... + def get_allow_file_access_from_file_urls(self) -> bool: ... + def get_allow_modal_dialogs(self) -> bool: ... + def get_allow_top_navigation_to_data_urls(self) -> bool: ... + def get_allow_universal_access_from_file_urls(self) -> bool: ... + def get_auto_load_images(self) -> bool: ... + def get_cursive_font_family(self) -> str: ... + def get_default_charset(self) -> str: ... + def get_default_font_family(self) -> str: ... + def get_default_font_size(self) -> int: ... + def get_default_monospace_font_size(self) -> int: ... + @staticmethod + def get_development_features() -> FeatureList: ... + def get_disable_web_security(self) -> bool: ... + def get_draw_compositing_indicators(self) -> bool: ... + def get_enable_back_forward_navigation_gestures(self) -> bool: ... + def get_enable_caret_browsing(self) -> bool: ... + def get_enable_developer_extras(self) -> bool: ... + def get_enable_dns_prefetching(self) -> bool: ... + def get_enable_encrypted_media(self) -> bool: ... + def get_enable_fullscreen(self) -> bool: ... + def get_enable_html5_database(self) -> bool: ... + def get_enable_html5_local_storage(self) -> bool: ... + def get_enable_hyperlink_auditing(self) -> bool: ... + def get_enable_javascript(self) -> bool: ... + def get_enable_javascript_markup(self) -> bool: ... + def get_enable_media(self) -> bool: ... + def get_enable_media_capabilities(self) -> bool: ... + def get_enable_media_stream(self) -> bool: ... + def get_enable_mediasource(self) -> bool: ... + def get_enable_mock_capture_devices(self) -> bool: ... + def get_enable_offline_web_application_cache(self) -> bool: ... + def get_enable_page_cache(self) -> bool: ... + def get_enable_resizable_text_areas(self) -> bool: ... + def get_enable_site_specific_quirks(self) -> bool: ... + def get_enable_smooth_scrolling(self) -> bool: ... + def get_enable_spatial_navigation(self) -> bool: ... + def get_enable_tabs_to_links(self) -> bool: ... + def get_enable_webaudio(self) -> bool: ... + def get_enable_webgl(self) -> bool: ... + def get_enable_webrtc(self) -> bool: ... + def get_enable_write_console_messages_to_stdout(self) -> bool: ... + @staticmethod + def get_experimental_features() -> FeatureList: ... + def get_fantasy_font_family(self) -> str: ... + def get_feature_enabled(self, feature: Feature) -> bool: ... + def get_hardware_acceleration_policy(self) -> HardwareAccelerationPolicy: ... + def get_javascript_can_access_clipboard(self) -> bool: ... + def get_javascript_can_open_windows_automatically(self) -> bool: ... + def get_load_icons_ignoring_image_load_setting(self) -> bool: ... + def get_media_content_types_requiring_hardware_support(self) -> str: ... + def get_media_playback_allows_inline(self) -> bool: ... + def get_media_playback_requires_user_gesture(self) -> bool: ... + def get_minimum_font_size(self) -> int: ... + def get_monospace_font_family(self) -> str: ... + def get_pictograph_font_family(self) -> str: ... + def get_print_backgrounds(self) -> bool: ... + def get_sans_serif_font_family(self) -> str: ... + def get_serif_font_family(self) -> str: ... + def get_user_agent(self) -> str: ... + def get_zoom_text_only(self) -> bool: ... + @classmethod + def new(cls) -> Settings: ... + def set_allow_file_access_from_file_urls(self, allowed: bool) -> None: ... + def set_allow_modal_dialogs(self, allowed: bool) -> None: ... + def set_allow_top_navigation_to_data_urls(self, allowed: bool) -> None: ... + def set_allow_universal_access_from_file_urls(self, allowed: bool) -> None: ... + def set_auto_load_images(self, enabled: bool) -> None: ... + def set_cursive_font_family(self, cursive_font_family: str) -> None: ... + def set_default_charset(self, default_charset: str) -> None: ... + def set_default_font_family(self, default_font_family: str) -> None: ... + def set_default_font_size(self, font_size: int) -> None: ... + def set_default_monospace_font_size(self, font_size: int) -> None: ... + def set_disable_web_security(self, disabled: bool) -> None: ... + def set_draw_compositing_indicators(self, enabled: bool) -> None: ... + def set_enable_back_forward_navigation_gestures(self, enabled: bool) -> None: ... + def set_enable_caret_browsing(self, enabled: bool) -> None: ... + def set_enable_developer_extras(self, enabled: bool) -> None: ... + def set_enable_dns_prefetching(self, enabled: bool) -> None: ... + def set_enable_encrypted_media(self, enabled: bool) -> None: ... + def set_enable_fullscreen(self, enabled: bool) -> None: ... + def set_enable_html5_database(self, enabled: bool) -> None: ... + def set_enable_html5_local_storage(self, enabled: bool) -> None: ... + def set_enable_hyperlink_auditing(self, enabled: bool) -> None: ... + def set_enable_javascript(self, enabled: bool) -> None: ... + def set_enable_javascript_markup(self, enabled: bool) -> None: ... + def set_enable_media(self, enabled: bool) -> None: ... + def set_enable_media_capabilities(self, enabled: bool) -> None: ... + def set_enable_media_stream(self, enabled: bool) -> None: ... + def set_enable_mediasource(self, enabled: bool) -> None: ... + def set_enable_mock_capture_devices(self, enabled: bool) -> None: ... + def set_enable_offline_web_application_cache(self, enabled: bool) -> None: ... + def set_enable_page_cache(self, enabled: bool) -> None: ... + def set_enable_resizable_text_areas(self, enabled: bool) -> None: ... + def set_enable_site_specific_quirks(self, enabled: bool) -> None: ... + def set_enable_smooth_scrolling(self, enabled: bool) -> None: ... + def set_enable_spatial_navigation(self, enabled: bool) -> None: ... + def set_enable_tabs_to_links(self, enabled: bool) -> None: ... + def set_enable_webaudio(self, enabled: bool) -> None: ... + def set_enable_webgl(self, enabled: bool) -> None: ... + def set_enable_webrtc(self, enabled: bool) -> None: ... + def set_enable_write_console_messages_to_stdout(self, enabled: bool) -> None: ... + def set_fantasy_font_family(self, fantasy_font_family: str) -> None: ... + def set_feature_enabled(self, feature: Feature, enabled: bool) -> None: ... + def set_hardware_acceleration_policy( + self, policy: HardwareAccelerationPolicy + ) -> None: ... + def set_javascript_can_access_clipboard(self, enabled: bool) -> None: ... + def set_javascript_can_open_windows_automatically(self, enabled: bool) -> None: ... + def set_load_icons_ignoring_image_load_setting(self, enabled: bool) -> None: ... + def set_media_content_types_requiring_hardware_support( + self, content_types: Optional[str] = None + ) -> None: ... + def set_media_playback_allows_inline(self, enabled: bool) -> None: ... + def set_media_playback_requires_user_gesture(self, enabled: bool) -> None: ... + def set_minimum_font_size(self, font_size: int) -> None: ... + def set_monospace_font_family(self, monospace_font_family: str) -> None: ... + def set_pictograph_font_family(self, pictograph_font_family: str) -> None: ... + def set_print_backgrounds(self, print_backgrounds: bool) -> None: ... + def set_sans_serif_font_family(self, sans_serif_font_family: str) -> None: ... + def set_serif_font_family(self, serif_font_family: str) -> None: ... + def set_user_agent(self, user_agent: Optional[str] = None) -> None: ... + def set_user_agent_with_application_details( + self, + application_name: Optional[str] = None, + application_version: Optional[str] = None, + ) -> None: ... + def set_zoom_text_only(self, zoom_text_only: bool) -> None: ... + +class SettingsClass(GObject.GPointer): + """ + :Constructors: + + :: + + SettingsClass() + """ + + parent_class: GObject.ObjectClass = ... + +class URIRequest(GObject.Object): + """ + :Constructors: + + :: + + URIRequest(**properties) + new(uri:str) -> WebKit.URIRequest + + Object WebKitURIRequest + + Properties from WebKitURIRequest: + uri -> gchararray: uri + + Signals from GObject: + notify (GParam) + """ + + class Props: + uri: str + + props: Props = ... + def __init__(self, uri: str = ...): ... + def get_http_headers(self) -> Soup.MessageHeaders: ... + def get_http_method(self) -> str: ... + def get_uri(self) -> str: ... + @classmethod + def new(cls, uri: str) -> URIRequest: ... + def set_uri(self, uri: str) -> None: ... + +class URIRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + URIRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class URIResponse(GObject.Object): + """ + :Constructors: + + :: + + URIResponse(**properties) + + Object WebKitURIResponse + + Properties from WebKitURIResponse: + uri -> gchararray: uri + status-code -> guint: status-code + content-length -> guint64: content-length + mime-type -> gchararray: mime-type + suggested-filename -> gchararray: suggested-filename + http-headers -> SoupMessageHeaders: http-headers + + Signals from GObject: + notify (GParam) + """ + + class Props: + content_length: int + http_headers: Soup.MessageHeaders + mime_type: str + status_code: int + suggested_filename: str + uri: str + + props: Props = ... + def get_content_length(self) -> int: ... + def get_http_headers(self) -> Soup.MessageHeaders: ... + def get_mime_type(self) -> str: ... + def get_status_code(self) -> int: ... + def get_suggested_filename(self) -> str: ... + def get_uri(self) -> str: ... + +class URIResponseClass(GObject.GPointer): + """ + :Constructors: + + :: + + URIResponseClass() + """ + + parent_class: GObject.ObjectClass = ... + +class URISchemeRequest(GObject.Object): + """ + :Constructors: + + :: + + URISchemeRequest(**properties) + + Object WebKitURISchemeRequest + + Signals from GObject: + notify (GParam) + """ + + def finish( + self, + stream: Gio.InputStream, + stream_length: int, + content_type: Optional[str] = None, + ) -> None: ... + def finish_error(self, error: GLib.Error) -> None: ... + def finish_with_response(self, response: URISchemeResponse) -> None: ... + def get_http_body(self) -> Gio.InputStream: ... + def get_http_headers(self) -> Soup.MessageHeaders: ... + def get_http_method(self) -> str: ... + def get_path(self) -> str: ... + def get_scheme(self) -> str: ... + def get_uri(self) -> str: ... + def get_web_view(self) -> WebView: ... + +class URISchemeRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + URISchemeRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class URISchemeResponse(GObject.Object): + """ + :Constructors: + + :: + + URISchemeResponse(**properties) + new(input_stream:Gio.InputStream, stream_length:int) -> WebKit.URISchemeResponse + + Object WebKitURISchemeResponse + + Properties from WebKitURISchemeResponse: + stream -> GInputStream: stream + stream-length -> gint64: stream-length + + Signals from GObject: + notify (GParam) + """ + + class Props: + stream: Gio.InputStream + stream_length: int + + props: Props = ... + def __init__(self, stream: Gio.InputStream = ..., stream_length: int = ...): ... + @classmethod + def new( + cls, input_stream: Gio.InputStream, stream_length: int + ) -> URISchemeResponse: ... + def set_content_type(self, content_type: str) -> None: ... + def set_http_headers(self, headers: Soup.MessageHeaders) -> None: ... + def set_status( + self, status_code: int, reason_phrase: Optional[str] = None + ) -> None: ... + +class URISchemeResponseClass(GObject.GPointer): + """ + :Constructors: + + :: + + URISchemeResponseClass() + """ + + parent_class: GObject.ObjectClass = ... + +class UserContentFilter(GObject.GBoxed): + def get_identifier(self) -> str: ... + def ref(self) -> UserContentFilter: ... + def unref(self) -> None: ... + +class UserContentFilterStore(GObject.Object): + """ + :Constructors: + + :: + + UserContentFilterStore(**properties) + new(storage_path:str) -> WebKit.UserContentFilterStore + + Object WebKitUserContentFilterStore + + Properties from WebKitUserContentFilterStore: + path -> gchararray: path + + Signals from GObject: + notify (GParam) + """ + + class Props: + path: str + + props: Props = ... + def __init__(self, path: str = ...): ... + def fetch_identifiers( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def fetch_identifiers_finish(self, result: Gio.AsyncResult) -> list[str]: ... + def get_path(self) -> str: ... + def load( + self, + identifier: str, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def load_finish(self, result: Gio.AsyncResult) -> UserContentFilter: ... + @classmethod + def new(cls, storage_path: str) -> UserContentFilterStore: ... + def remove( + self, + identifier: str, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def remove_finish(self, result: Gio.AsyncResult) -> bool: ... + def save( + self, + identifier: str, + source: GLib.Bytes, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def save_finish(self, result: Gio.AsyncResult) -> UserContentFilter: ... + def save_from_file( + self, + identifier: str, + file: Gio.File, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def save_from_file_finish(self, result: Gio.AsyncResult) -> UserContentFilter: ... + +class UserContentFilterStoreClass(GObject.GPointer): + """ + :Constructors: + + :: + + UserContentFilterStoreClass() + """ + + parent_class: GObject.ObjectClass = ... + +class UserContentManager(GObject.Object): + """ + :Constructors: + + :: + + UserContentManager(**properties) + new() -> WebKit.UserContentManager + + Object WebKitUserContentManager + + Signals from WebKitUserContentManager: + script-message-received (JSCValue) + script-message-with-reply-received (JSCValue, WebKitScriptMessageReply) -> gboolean + + Signals from GObject: + notify (GParam) + """ + + def add_filter(self, filter: UserContentFilter) -> None: ... + def add_script(self, script: UserScript) -> None: ... + def add_style_sheet(self, stylesheet: UserStyleSheet) -> None: ... + @classmethod + def new(cls) -> UserContentManager: ... + def register_script_message_handler( + self, name: str, world_name: Optional[str] = None + ) -> bool: ... + def register_script_message_handler_with_reply( + self, name: str, world_name: str + ) -> bool: ... + def remove_all_filters(self) -> None: ... + def remove_all_scripts(self) -> None: ... + def remove_all_style_sheets(self) -> None: ... + def remove_filter(self, filter: UserContentFilter) -> None: ... + def remove_filter_by_id(self, filter_id: str) -> None: ... + def remove_script(self, script: UserScript) -> None: ... + def remove_style_sheet(self, stylesheet: UserStyleSheet) -> None: ... + def unregister_script_message_handler( + self, name: str, world_name: Optional[str] = None + ) -> None: ... + +class UserContentManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + UserContentManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + +class UserMediaPermissionRequest(GObject.Object, PermissionRequest): + """ + :Constructors: + + :: + + UserMediaPermissionRequest(**properties) + + Object WebKitUserMediaPermissionRequest + + Properties from WebKitUserMediaPermissionRequest: + is-for-audio-device -> gboolean: is-for-audio-device + is-for-video-device -> gboolean: is-for-video-device + + Signals from GObject: + notify (GParam) + """ + + class Props: + is_for_audio_device: bool + is_for_video_device: bool + + props: Props = ... + +class UserMediaPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + UserMediaPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class UserMessage(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + UserMessage(**properties) + new(name:str, parameters:GLib.Variant=None) -> WebKit.UserMessage + new_with_fd_list(name:str, parameters:GLib.Variant=None, fd_list:Gio.UnixFDList=None) -> WebKit.UserMessage + + Object WebKitUserMessage + + Properties from WebKitUserMessage: + name -> gchararray: name + parameters -> GVariant: parameters + fd-list -> GUnixFDList: fd-list + + Signals from GObject: + notify (GParam) + """ + + class Props: + fd_list: Optional[Gio.UnixFDList] + name: str + parameters: Optional[GLib.Variant] + + props: Props = ... + def __init__( + self, + fd_list: Gio.UnixFDList = ..., + name: str = ..., + parameters: GLib.Variant = ..., + ): ... + def get_fd_list(self) -> Optional[Gio.UnixFDList]: ... + def get_name(self) -> str: ... + def get_parameters(self) -> Optional[GLib.Variant]: ... + @classmethod + def new( + cls, name: str, parameters: Optional[GLib.Variant] = None + ) -> UserMessage: ... + @classmethod + def new_with_fd_list( + cls, + name: str, + parameters: Optional[GLib.Variant] = None, + fd_list: Optional[Gio.UnixFDList] = None, + ) -> UserMessage: ... + def send_reply(self, reply: UserMessage) -> None: ... + +class UserMessageClass(GObject.GPointer): + """ + :Constructors: + + :: + + UserMessageClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + +class UserScript(GObject.GBoxed): + """ + :Constructors: + + :: + + new(source:str, injected_frames:WebKit.UserContentInjectedFrames, injection_time:WebKit.UserScriptInjectionTime, allow_list:list=None, block_list:list=None) -> WebKit.UserScript + new_for_world(source:str, injected_frames:WebKit.UserContentInjectedFrames, injection_time:WebKit.UserScriptInjectionTime, world_name:str, allow_list:list=None, block_list:list=None) -> WebKit.UserScript + """ + + @classmethod + def new( + cls, + source: str, + injected_frames: UserContentInjectedFrames, + injection_time: UserScriptInjectionTime, + allow_list: Optional[Sequence[str]] = None, + block_list: Optional[Sequence[str]] = None, + ) -> UserScript: ... + @classmethod + def new_for_world( + cls, + source: str, + injected_frames: UserContentInjectedFrames, + injection_time: UserScriptInjectionTime, + world_name: str, + allow_list: Optional[Sequence[str]] = None, + block_list: Optional[Sequence[str]] = None, + ) -> UserScript: ... + def ref(self) -> UserScript: ... + def unref(self) -> None: ... + +class UserStyleSheet(GObject.GBoxed): + """ + :Constructors: + + :: + + new(source:str, injected_frames:WebKit.UserContentInjectedFrames, level:WebKit.UserStyleLevel, allow_list:list=None, block_list:list=None) -> WebKit.UserStyleSheet + new_for_world(source:str, injected_frames:WebKit.UserContentInjectedFrames, level:WebKit.UserStyleLevel, world_name:str, allow_list:list=None, block_list:list=None) -> WebKit.UserStyleSheet + """ + + @classmethod + def new( + cls, + source: str, + injected_frames: UserContentInjectedFrames, + level: UserStyleLevel, + allow_list: Optional[Sequence[str]] = None, + block_list: Optional[Sequence[str]] = None, + ) -> UserStyleSheet: ... + @classmethod + def new_for_world( + cls, + source: str, + injected_frames: UserContentInjectedFrames, + level: UserStyleLevel, + world_name: str, + allow_list: Optional[Sequence[str]] = None, + block_list: Optional[Sequence[str]] = None, + ) -> UserStyleSheet: ... + def ref(self) -> UserStyleSheet: ... + def unref(self) -> None: ... + +class WebContext(GObject.Object): + """ + :Constructors: + + :: + + WebContext(**properties) + new() -> WebKit.WebContext + + Object WebKitWebContext + + Signals from WebKitWebContext: + initialize-web-process-extensions () + initialize-notification-permissions () + automation-started (WebKitAutomationSession) + user-message-received (WebKitUserMessage) -> gboolean + + Properties from WebKitWebContext: + memory-pressure-settings -> WebKitMemoryPressureSettings: memory-pressure-settings + time-zone-override -> gchararray: time-zone-override + + Signals from GObject: + notify (GParam) + """ + + class Props: + time_zone_override: str + memory_pressure_settings: MemoryPressureSettings + + props: Props = ... + def __init__( + self, + memory_pressure_settings: MemoryPressureSettings = ..., + time_zone_override: str = ..., + ): ... + def add_path_to_sandbox(self, path: str, read_only: bool) -> None: ... + def get_cache_model(self) -> CacheModel: ... + @staticmethod + def get_default() -> WebContext: ... + def get_geolocation_manager(self) -> GeolocationManager: ... + def get_network_session_for_automation(self) -> Optional[NetworkSession]: ... + def get_security_manager(self) -> SecurityManager: ... + def get_spell_checking_enabled(self) -> bool: ... + def get_spell_checking_languages(self) -> list[str]: ... + def get_time_zone_override(self) -> str: ... + def initialize_notification_permissions( + self, + allowed_origins: list[SecurityOrigin], + disallowed_origins: list[SecurityOrigin], + ) -> None: ... + def is_automation_allowed(self) -> bool: ... + @classmethod + def new(cls) -> WebContext: ... + def register_uri_scheme( + self, scheme: str, callback: Callable[..., None], *user_data: Any + ) -> None: ... + def send_message_to_all_extensions(self, message: UserMessage) -> None: ... + def set_automation_allowed(self, allowed: bool) -> None: ... + def set_cache_model(self, cache_model: CacheModel) -> None: ... + def set_preferred_languages( + self, languages: Optional[Sequence[str]] = None + ) -> None: ... + def set_spell_checking_enabled(self, enabled: bool) -> None: ... + def set_spell_checking_languages(self, languages: Sequence[str]) -> None: ... + def set_web_process_extensions_directory(self, directory: str) -> None: ... + def set_web_process_extensions_initialization_user_data( + self, user_data: GLib.Variant + ) -> None: ... + +class WebContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebContextClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WebInspector(GObject.Object): + """ + :Constructors: + + :: + + WebInspector(**properties) + + Object WebKitWebInspector + + Signals from WebKitWebInspector: + closed () + open-window () -> gboolean + bring-to-front () -> gboolean + attach () -> gboolean + detach () -> gboolean + + Properties from WebKitWebInspector: + inspected-uri -> gchararray: inspected-uri + attached-height -> guint: attached-height + can-attach -> gboolean: can-attach + + Signals from GObject: + notify (GParam) + """ + + class Props: + attached_height: int + can_attach: bool + inspected_uri: str + + props: Props = ... + def attach(self) -> None: ... + def close(self) -> None: ... + def detach(self) -> None: ... + def get_attached_height(self) -> int: ... + def get_can_attach(self) -> bool: ... + def get_inspected_uri(self) -> str: ... + def get_web_view(self) -> WebViewBase: ... + def is_attached(self) -> bool: ... + def show(self) -> None: ... + +class WebInspectorClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebInspectorClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WebResource(GObject.Object): + """ + :Constructors: + + :: + + WebResource(**properties) + + Object WebKitWebResource + + Signals from WebKitWebResource: + finished () + failed (GError) + sent-request (WebKitURIRequest, WebKitURIResponse) + failed-with-tls-errors (GTlsCertificate, GTlsCertificateFlags) + + Properties from WebKitWebResource: + uri -> gchararray: uri + response -> WebKitURIResponse: response + + Signals from GObject: + notify (GParam) + """ + + class Props: + response: URIResponse + uri: str + + props: Props = ... + def get_data( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_data_finish(self, result: Gio.AsyncResult) -> bytes: ... + def get_response(self) -> URIResponse: ... + def get_uri(self) -> str: ... + +class WebResourceClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebResourceClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WebView(WebViewBase, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + """ + :Constructors: + + :: + + WebView(**properties) + new() -> Gtk.Widget + + Object WebKitWebView + + Signals from WebKitWebView: + close () + user-message-received (WebKitUserMessage) -> gboolean + load-changed (WebKitLoadEvent) + load-failed (WebKitLoadEvent, gchararray, GError) -> gboolean + load-failed-with-tls-errors (gchararray, GTlsCertificate, GTlsCertificateFlags) -> gboolean + create (WebKitNavigationAction) -> GtkWidget + ready-to-show () + run-as-modal () + script-dialog (WebKitScriptDialog) -> gboolean + decide-policy (WebKitPolicyDecision, WebKitPolicyDecisionType) -> gboolean + permission-request (WebKitPermissionRequest) -> gboolean + mouse-target-changed (WebKitHitTestResult, guint) + print (WebKitPrintOperation) -> gboolean + resource-load-started (WebKitWebResource, WebKitURIRequest) + enter-fullscreen () -> gboolean + leave-fullscreen () -> gboolean + run-file-chooser (WebKitFileChooserRequest) -> gboolean + context-menu (WebKitContextMenu, WebKitHitTestResult) -> gboolean + context-menu-dismissed () + submit-form (WebKitFormSubmissionRequest) + insecure-content-detected (WebKitInsecureContentEvent) + web-process-terminated (WebKitWebProcessTerminationReason) + authenticate (WebKitAuthenticationRequest) -> gboolean + show-notification (WebKitNotification) -> gboolean + run-color-chooser (WebKitColorChooserRequest) -> gboolean + show-option-menu (WebKitOptionMenu, GdkRectangle) -> gboolean + query-permission-state (WebKitPermissionStateQuery) -> gboolean + + Properties from WebKitWebView: + web-context -> WebKitWebContext: web-context + related-view -> WebKitWebView: related-view + settings -> WebKitSettings: settings + user-content-manager -> WebKitUserContentManager: user-content-manager + network-session -> WebKitNetworkSession: network-session + title -> gchararray: title + estimated-load-progress -> gdouble: estimated-load-progress + favicon -> GdkTexture: favicon + uri -> gchararray: uri + zoom-level -> gdouble: zoom-level + is-loading -> gboolean: is-loading + is-playing-audio -> gboolean: is-playing-audio + is-controlled-by-automation -> gboolean: is-controlled-by-automation + automation-presentation-type -> WebKitAutomationBrowsingContextPresentation: automation-presentation-type + editable -> gboolean: editable + page-id -> guint64: page-id + is-muted -> gboolean: is-muted + website-policies -> WebKitWebsitePolicies: website-policies + is-web-process-responsive -> gboolean: is-web-process-responsive + camera-capture-state -> WebKitMediaCaptureState: camera-capture-state + microphone-capture-state -> WebKitMediaCaptureState: microphone-capture-state + display-capture-state -> WebKitMediaCaptureState: display-capture-state + web-extension-mode -> WebKitWebExtensionMode: web-extension-mode + default-content-security-policy -> gchararray: default-content-security-policy + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + automation_presentation_type: AutomationBrowsingContextPresentation + camera_capture_state: MediaCaptureState + default_content_security_policy: Optional[str] + display_capture_state: MediaCaptureState + editable: bool + estimated_load_progress: float + favicon: Gdk.Texture + is_controlled_by_automation: bool + is_loading: bool + is_muted: bool + is_playing_audio: bool + is_web_process_responsive: bool + microphone_capture_state: MediaCaptureState + network_session: NetworkSession + page_id: int + title: str + uri: str + user_content_manager: UserContentManager + web_context: WebContext + web_extension_mode: WebExtensionMode + website_policies: WebsitePolicies + zoom_level: float + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[Gtk.LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Optional[Gtk.Widget] + receives_default: bool + root: Optional[Gtk.Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + related_view: WebView + settings: Settings + + props: Props = ... + parent_instance: WebViewBase = ... + priv: WebViewPrivate = ... + def __init__( + self, + automation_presentation_type: AutomationBrowsingContextPresentation = ..., + camera_capture_state: MediaCaptureState = ..., + default_content_security_policy: str = ..., + display_capture_state: MediaCaptureState = ..., + editable: bool = ..., + is_controlled_by_automation: bool = ..., + is_muted: bool = ..., + microphone_capture_state: MediaCaptureState = ..., + network_session: NetworkSession = ..., + related_view: WebView = ..., + settings: Settings = ..., + user_content_manager: UserContentManager = ..., + web_context: WebContext = ..., + web_extension_mode: WebExtensionMode = ..., + website_policies: WebsitePolicies = ..., + zoom_level: float = ..., + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + def call_async_javascript_function( + self, + body: str, + length: int, + arguments: Optional[GLib.Variant] = None, + world_name: Optional[str] = None, + source_uri: Optional[str] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def call_async_javascript_function_finish( + self, result: Gio.AsyncResult + ) -> JavaScriptCore.Value: ... + def can_execute_editing_command( + self, + command: str, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def can_execute_editing_command_finish(self, result: Gio.AsyncResult) -> bool: ... + def can_go_back(self) -> bool: ... + def can_go_forward(self) -> bool: ... + def can_show_mime_type(self, mime_type: str) -> bool: ... + def do_authenticate(self, request: AuthenticationRequest) -> bool: ... + def do_close(self) -> None: ... + def do_context_menu( + self, context_menu: ContextMenu, hit_test_result: HitTestResult + ) -> bool: ... + def do_context_menu_dismissed(self) -> None: ... + def do_decide_policy( + self, decision: PolicyDecision, type: PolicyDecisionType + ) -> bool: ... + def do_enter_fullscreen(self) -> bool: ... + def do_insecure_content_detected(self, event: InsecureContentEvent) -> None: ... + def do_leave_fullscreen(self) -> bool: ... + def do_load_changed(self, load_event: LoadEvent) -> None: ... + def do_load_failed( + self, load_event: LoadEvent, failing_uri: str, error: GLib.Error + ) -> bool: ... + def do_load_failed_with_tls_errors( + self, + failing_uri: str, + certificate: Gio.TlsCertificate, + errors: Gio.TlsCertificateFlags, + ) -> bool: ... + def do_mouse_target_changed( + self, hit_test_result: HitTestResult, modifiers: int + ) -> None: ... + def do_permission_request(self, permission_request: PermissionRequest) -> bool: ... + def do_print_(self, print_operation: PrintOperation) -> bool: ... + def do_query_permission_state(self, query: PermissionStateQuery) -> bool: ... + def do_ready_to_show(self) -> None: ... + def do_resource_load_started( + self, resource: WebResource, request: URIRequest + ) -> None: ... + def do_run_as_modal(self) -> None: ... + def do_run_color_chooser(self, request: ColorChooserRequest) -> bool: ... + def do_run_file_chooser(self, request: FileChooserRequest) -> bool: ... + def do_script_dialog(self, dialog: ScriptDialog) -> bool: ... + def do_show_notification(self, notification: Notification) -> bool: ... + def do_show_option_menu( + self, menu: OptionMenu, rectangle: Gdk.Rectangle + ) -> bool: ... + def do_submit_form(self, request: FormSubmissionRequest) -> None: ... + def do_user_message_received(self, message: UserMessage) -> bool: ... + def do_web_process_crashed(self) -> bool: ... + def do_web_process_terminated( + self, reason: WebProcessTerminationReason + ) -> None: ... + def download_uri(self, uri: str) -> Download: ... + def evaluate_javascript( + self, + script: str, + length: int, + world_name: Optional[str] = None, + source_uri: Optional[str] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def evaluate_javascript_finish( + self, result: Gio.AsyncResult + ) -> JavaScriptCore.Value: ... + def execute_editing_command(self, command: str) -> None: ... + def execute_editing_command_with_argument( + self, command: str, argument: str + ) -> None: ... + def get_automation_presentation_type( + self, + ) -> AutomationBrowsingContextPresentation: ... + def get_back_forward_list(self) -> BackForwardList: ... + def get_background_color(self) -> Gdk.RGBA: ... + def get_camera_capture_state(self) -> MediaCaptureState: ... + def get_context(self) -> WebContext: ... + def get_custom_charset(self) -> str: ... + def get_default_content_security_policy(self) -> Optional[str]: ... + def get_display_capture_state(self) -> MediaCaptureState: ... + def get_editor_state(self) -> EditorState: ... + def get_estimated_load_progress(self) -> float: ... + def get_favicon(self) -> Gdk.Texture: ... + def get_find_controller(self) -> FindController: ... + def get_input_method_context(self) -> Optional[InputMethodContext]: ... + def get_inspector(self) -> WebInspector: ... + def get_is_muted(self) -> bool: ... + def get_is_web_process_responsive(self) -> bool: ... + def get_main_resource(self) -> WebResource: ... + def get_microphone_capture_state(self) -> MediaCaptureState: ... + def get_network_session(self) -> NetworkSession: ... + def get_page_id(self) -> int: ... + def get_session_state(self) -> WebViewSessionState: ... + def get_settings(self) -> Settings: ... + def get_snapshot( + self, + region: SnapshotRegion, + options: SnapshotOptions, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_snapshot_finish(self, result: Gio.AsyncResult) -> Gdk.Texture: ... + def get_title(self) -> str: ... + def get_tls_info( + self, + ) -> Tuple[bool, Gio.TlsCertificate, Gio.TlsCertificateFlags]: ... + def get_uri(self) -> str: ... + def get_user_content_manager(self) -> UserContentManager: ... + def get_web_extension_mode(self) -> WebExtensionMode: ... + def get_website_policies(self) -> WebsitePolicies: ... + def get_window_properties(self) -> WindowProperties: ... + def get_zoom_level(self) -> float: ... + def go_back(self) -> None: ... + def go_forward(self) -> None: ... + def go_to_back_forward_list_item(self, list_item: BackForwardListItem) -> None: ... + def is_controlled_by_automation(self) -> bool: ... + def is_editable(self) -> bool: ... + def is_loading(self) -> bool: ... + def is_playing_audio(self) -> bool: ... + def load_alternate_html( + self, content: str, content_uri: str, base_uri: Optional[str] = None + ) -> None: ... + def load_bytes( + self, + bytes: GLib.Bytes, + mime_type: Optional[str] = None, + encoding: Optional[str] = None, + base_uri: Optional[str] = None, + ) -> None: ... + def load_html(self, content: str, base_uri: Optional[str] = None) -> None: ... + def load_plain_text(self, plain_text: str) -> None: ... + def load_request(self, request: URIRequest) -> None: ... + def load_uri(self, uri: str) -> None: ... + @classmethod + def new(cls) -> WebView: ... + def reload(self) -> None: ... + def reload_bypass_cache(self) -> None: ... + def restore_session_state(self, state: WebViewSessionState) -> None: ... + def save( + self, + save_mode: SaveMode, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def save_finish(self, result: Gio.AsyncResult) -> Gio.InputStream: ... + def save_to_file( + self, + file: Gio.File, + save_mode: SaveMode, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def save_to_file_finish(self, result: Gio.AsyncResult) -> bool: ... + def send_message_to_page( + self, + message: UserMessage, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def send_message_to_page_finish(self, result: Gio.AsyncResult) -> UserMessage: ... + def set_background_color(self, rgba: Gdk.RGBA) -> None: ... + def set_camera_capture_state(self, state: MediaCaptureState) -> None: ... + def set_cors_allowlist(self, allowlist: Optional[Sequence[str]] = None) -> None: ... + def set_custom_charset(self, charset: Optional[str] = None) -> None: ... + def set_display_capture_state(self, state: MediaCaptureState) -> None: ... + def set_editable(self, editable: bool) -> None: ... + def set_input_method_context( + self, context: Optional[InputMethodContext] = None + ) -> None: ... + def set_is_muted(self, muted: bool) -> None: ... + def set_microphone_capture_state(self, state: MediaCaptureState) -> None: ... + def set_settings(self, settings: Settings) -> None: ... + def set_zoom_level(self, zoom_level: float) -> None: ... + def stop_loading(self) -> None: ... + def terminate_web_process(self) -> None: ... + def try_close(self) -> None: ... + +class WebViewBase(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + """ + :Constructors: + + :: + + WebViewBase(**properties) + + Object WebKitWebViewBase + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + can_focus: bool + can_target: bool + css_classes: list[str] + css_name: str + cursor: Optional[Gdk.Cursor] + focus_on_click: bool + focusable: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + layout_manager: Optional[Gtk.LayoutManager] + margin_bottom: int + margin_end: int + margin_start: int + margin_top: int + name: str + opacity: float + overflow: Gtk.Overflow + parent: Optional[Gtk.Widget] + receives_default: bool + root: Optional[Gtk.Root] + scale_factor: int + sensitive: bool + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + accessible_role: Gtk.AccessibleRole + + props: Props = ... + parent_instance: Gtk.Widget = ... + priv: WebViewBasePrivate = ... + def __init__( + self, + can_focus: bool = ..., + can_target: bool = ..., + css_classes: Sequence[str] = ..., + css_name: str = ..., + cursor: Optional[Gdk.Cursor] = ..., + focus_on_click: bool = ..., + focusable: bool = ..., + halign: Gtk.Align = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + opacity: float = ..., + overflow: Gtk.Overflow = ..., + receives_default: bool = ..., + sensitive: bool = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + accessible_role: Gtk.AccessibleRole = ..., + ): ... + +class WebViewBaseClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebViewBaseClass() + """ + + parentClass: Gtk.WidgetClass = ... + _webkit_reserved0: None = ... + _webkit_reserved1: None = ... + _webkit_reserved2: None = ... + _webkit_reserved3: None = ... + +class WebViewBasePrivate(GObject.GPointer): ... + +class WebViewClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebViewClass() + """ + + parent: WebViewBaseClass = ... + load_changed: Callable[[WebView, LoadEvent], None] = ... + load_failed: Callable[[WebView, LoadEvent, str, GLib.Error], bool] = ... + create: None = ... + ready_to_show: Callable[[WebView], None] = ... + run_as_modal: Callable[[WebView], None] = ... + close: Callable[[WebView], None] = ... + script_dialog: Callable[[WebView, ScriptDialog], bool] = ... + decide_policy: Callable[[WebView, PolicyDecision, PolicyDecisionType], bool] = ... + permission_request: Callable[[WebView, PermissionRequest], bool] = ... + mouse_target_changed: Callable[[WebView, HitTestResult, int], None] = ... + print_: Callable[[WebView, PrintOperation], bool] = ... + resource_load_started: Callable[[WebView, WebResource, URIRequest], None] = ... + enter_fullscreen: Callable[[WebView], bool] = ... + leave_fullscreen: Callable[[WebView], bool] = ... + run_file_chooser: Callable[[WebView, FileChooserRequest], bool] = ... + context_menu: Callable[[WebView, ContextMenu, HitTestResult], bool] = ... + context_menu_dismissed: Callable[[WebView], None] = ... + submit_form: Callable[[WebView, FormSubmissionRequest], None] = ... + insecure_content_detected: Callable[[WebView, InsecureContentEvent], None] = ... + web_process_crashed: Callable[[WebView], bool] = ... + authenticate: Callable[[WebView, AuthenticationRequest], bool] = ... + load_failed_with_tls_errors: Callable[ + [WebView, str, Gio.TlsCertificate, Gio.TlsCertificateFlags], bool + ] = ... + show_notification: Callable[[WebView, Notification], bool] = ... + run_color_chooser: Callable[[WebView, ColorChooserRequest], bool] = ... + show_option_menu: Callable[[WebView, OptionMenu, Gdk.Rectangle], bool] = ... + web_process_terminated: Callable[[WebView, WebProcessTerminationReason], None] = ... + user_message_received: Callable[[WebView, UserMessage], bool] = ... + query_permission_state: Callable[[WebView, PermissionStateQuery], bool] = ... + _webkit_reserved0: None = ... + _webkit_reserved1: None = ... + _webkit_reserved2: None = ... + _webkit_reserved3: None = ... + _webkit_reserved4: None = ... + _webkit_reserved5: None = ... + _webkit_reserved6: None = ... + _webkit_reserved7: None = ... + _webkit_reserved8: None = ... + _webkit_reserved9: None = ... + _webkit_reserved10: None = ... + _webkit_reserved11: None = ... + _webkit_reserved12: None = ... + _webkit_reserved13: None = ... + _webkit_reserved14: None = ... + _webkit_reserved15: None = ... + _webkit_reserved16: None = ... + _webkit_reserved17: None = ... + _webkit_reserved18: None = ... + _webkit_reserved19: None = ... + _webkit_reserved20: None = ... + _webkit_reserved21: None = ... + _webkit_reserved22: None = ... + _webkit_reserved23: None = ... + _webkit_reserved24: None = ... + _webkit_reserved25: None = ... + _webkit_reserved26: None = ... + _webkit_reserved27: None = ... + _webkit_reserved28: None = ... + _webkit_reserved29: None = ... + _webkit_reserved30: None = ... + +class WebViewPrivate(GObject.GPointer): ... + +class WebViewSessionState(GObject.GBoxed): + """ + :Constructors: + + :: + + new(data:GLib.Bytes) -> WebKit.WebViewSessionState + """ + + @classmethod + def new(cls, data: GLib.Bytes) -> WebViewSessionState: ... + def ref(self) -> WebViewSessionState: ... + def serialize(self) -> GLib.Bytes: ... + def unref(self) -> None: ... + +class WebsiteData(GObject.GBoxed): + def get_name(self) -> str: ... + def get_size(self, types: WebsiteDataTypes) -> int: ... + def get_types(self) -> WebsiteDataTypes: ... + def ref(self) -> WebsiteData: ... + def unref(self) -> None: ... + +class WebsiteDataAccessPermissionRequest(GObject.Object, PermissionRequest): + """ + :Constructors: + + :: + + WebsiteDataAccessPermissionRequest(**properties) + + Object WebKitWebsiteDataAccessPermissionRequest + + Signals from GObject: + notify (GParam) + """ + + def get_current_domain(self) -> str: ... + def get_requesting_domain(self) -> str: ... + +class WebsiteDataAccessPermissionRequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsiteDataAccessPermissionRequestClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WebsiteDataManager(GObject.Object): + """ + :Constructors: + + :: + + WebsiteDataManager(**properties) + + Object WebKitWebsiteDataManager + + Properties from WebKitWebsiteDataManager: + base-data-directory -> gchararray: base-data-directory + base-cache-directory -> gchararray: base-cache-directory + is-ephemeral -> gboolean: is-ephemeral + origin-storage-ratio -> gdouble: origin-storage-ratio + total-storage-ratio -> gdouble: total-storage-ratio + + Signals from GObject: + notify (GParam) + """ + + class Props: + base_cache_directory: Optional[str] + base_data_directory: Optional[str] + is_ephemeral: bool + origin_storage_ratio: float + total_storage_ratio: float + + props: Props = ... + def __init__( + self, + base_cache_directory: str = ..., + base_data_directory: str = ..., + is_ephemeral: bool = ..., + origin_storage_ratio: float = ..., + total_storage_ratio: float = ..., + ): ... + def clear( + self, + types: WebsiteDataTypes, + timespan: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def clear_finish(self, result: Gio.AsyncResult) -> bool: ... + def fetch( + self, + types: WebsiteDataTypes, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def fetch_finish(self, result: Gio.AsyncResult) -> list[WebsiteData]: ... + def get_base_cache_directory(self) -> Optional[str]: ... + def get_base_data_directory(self) -> Optional[str]: ... + def get_favicon_database(self) -> Optional[FaviconDatabase]: ... + def get_favicons_enabled(self) -> bool: ... + def get_itp_summary( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def get_itp_summary_finish( + self, result: Gio.AsyncResult + ) -> list[ITPThirdParty]: ... + def is_ephemeral(self) -> bool: ... + def remove( + self, + types: WebsiteDataTypes, + website_data: list[WebsiteData], + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def remove_finish(self, result: Gio.AsyncResult) -> bool: ... + def set_favicons_enabled(self, enabled: bool) -> None: ... + +class WebsiteDataManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsiteDataManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WebsitePolicies(GObject.Object): + """ + :Constructors: + + :: + + WebsitePolicies(**properties) + new() -> WebKit.WebsitePolicies + + Object WebKitWebsitePolicies + + Properties from WebKitWebsitePolicies: + autoplay -> WebKitAutoplayPolicy: autoplay + + Signals from GObject: + notify (GParam) + """ + + class Props: + autoplay: AutoplayPolicy + + props: Props = ... + def __init__(self, autoplay: AutoplayPolicy = ...): ... + def get_autoplay_policy(self) -> AutoplayPolicy: ... + @classmethod + def new(cls) -> WebsitePolicies: ... + +class WebsitePoliciesClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsitePoliciesClass() + """ + + parent_class: GObject.ObjectClass = ... + +class WindowProperties(GObject.Object): + """ + :Constructors: + + :: + + WindowProperties(**properties) + + Object WebKitWindowProperties + + Properties from WebKitWindowProperties: + geometry -> GdkRectangle: geometry + toolbar-visible -> gboolean: toolbar-visible + statusbar-visible -> gboolean: statusbar-visible + scrollbars-visible -> gboolean: scrollbars-visible + menubar-visible -> gboolean: menubar-visible + locationbar-visible -> gboolean: locationbar-visible + resizable -> gboolean: resizable + fullscreen -> gboolean: fullscreen + + Signals from GObject: + notify (GParam) + """ + + class Props: + fullscreen: bool + geometry: Gdk.Rectangle + locationbar_visible: bool + menubar_visible: bool + resizable: bool + scrollbars_visible: bool + statusbar_visible: bool + toolbar_visible: bool + + props: Props = ... + def __init__( + self, + fullscreen: bool = ..., + geometry: Gdk.Rectangle = ..., + locationbar_visible: bool = ..., + menubar_visible: bool = ..., + resizable: bool = ..., + scrollbars_visible: bool = ..., + statusbar_visible: bool = ..., + toolbar_visible: bool = ..., + ): ... + def get_fullscreen(self) -> bool: ... + def get_geometry(self) -> Gdk.Rectangle: ... + def get_locationbar_visible(self) -> bool: ... + def get_menubar_visible(self) -> bool: ... + def get_resizable(self) -> bool: ... + def get_scrollbars_visible(self) -> bool: ... + def get_statusbar_visible(self) -> bool: ... + def get_toolbar_visible(self) -> bool: ... + +class WindowPropertiesClass(GObject.GPointer): + """ + :Constructors: + + :: + + WindowPropertiesClass() + """ + + parent_class: GObject.ObjectClass = ... + +class EditorTypingAttributes(GObject.GFlags): + BOLD = 4 + ITALIC = 8 + NONE = 2 + STRIKETHROUGH = 32 + UNDERLINE = 16 + +class FindOptions(GObject.GFlags): + AT_WORD_STARTS = 2 + BACKWARDS = 8 + CASE_INSENSITIVE = 1 + NONE = 0 + TREAT_MEDIAL_CAPITAL_AS_WORD_START = 4 + WRAP_AROUND = 16 + +class HitTestResultContext(GObject.GFlags): + DOCUMENT = 2 + EDITABLE = 32 + IMAGE = 8 + LINK = 4 + MEDIA = 16 + SCROLLBAR = 64 + SELECTION = 128 + +class InputHints(GObject.GFlags): + INHIBIT_OSK = 32 + LOWERCASE = 2 + NONE = 0 + SPELLCHECK = 1 + UPPERCASE_CHARS = 4 + UPPERCASE_SENTENCES = 16 + UPPERCASE_WORDS = 8 + +class SnapshotOptions(GObject.GFlags): + INCLUDE_SELECTION_HIGHLIGHTING = 1 + NONE = 0 + TRANSPARENT_BACKGROUND = 2 + +class WebsiteDataTypes(GObject.GFlags): + ALL = 4095 + COOKIES = 64 + DEVICE_ID_HASH_SALT = 128 + DISK_CACHE = 2 + DOM_CACHE = 2048 + HSTS_CACHE = 256 + INDEXEDDB_DATABASES = 32 + ITP = 512 + LOCAL_STORAGE = 16 + MEMORY_CACHE = 1 + OFFLINE_APPLICATION_CACHE = 4 + SERVICE_WORKER_REGISTRATIONS = 1024 + SESSION_STORAGE = 8 + +class AuthenticationScheme(GObject.GEnum): + CLIENT_CERTIFICATE_PIN_REQUESTED = 9 + CLIENT_CERTIFICATE_REQUESTED = 7 + DEFAULT = 1 + HTML_FORM = 4 + HTTP_BASIC = 2 + HTTP_DIGEST = 3 + NEGOTIATE = 6 + NTLM = 5 + SERVER_TRUST_EVALUATION_REQUESTED = 8 + UNKNOWN = 100 + +class AutomationBrowsingContextPresentation(GObject.GEnum): + TAB = 1 + WINDOW = 0 + +class AutoplayPolicy(GObject.GEnum): + ALLOW = 0 + ALLOW_WITHOUT_SOUND = 1 + DENY = 2 + +class CacheModel(GObject.GEnum): + DOCUMENT_BROWSER = 2 + DOCUMENT_VIEWER = 0 + WEB_BROWSER = 1 + +class ContextMenuAction(GObject.GEnum): + BOLD = 27 + COPY = 14 + COPY_AUDIO_LINK_TO_CLIPBOARD = 35 + COPY_IMAGE_TO_CLIPBOARD = 7 + COPY_IMAGE_URL_TO_CLIPBOARD = 8 + COPY_LINK_TO_CLIPBOARD = 4 + COPY_VIDEO_LINK_TO_CLIPBOARD = 34 + CUSTOM = 10000 + CUT = 15 + DELETE = 17 + DOWNLOAD_AUDIO_TO_DISK = 43 + DOWNLOAD_IMAGE_TO_DISK = 6 + DOWNLOAD_LINK_TO_DISK = 3 + DOWNLOAD_VIDEO_TO_DISK = 42 + ENTER_VIDEO_FULLSCREEN = 38 + FONT_MENU = 26 + GO_BACK = 10 + GO_FORWARD = 11 + IGNORE_GRAMMAR = 25 + IGNORE_SPELLING = 23 + INPUT_METHODS = 19 + INSERT_EMOJI = 44 + INSPECT_ELEMENT = 31 + ITALIC = 28 + LEARN_SPELLING = 24 + MEDIA_MUTE = 41 + MEDIA_PAUSE = 40 + MEDIA_PLAY = 39 + NO_ACTION = 0 + NO_GUESSES_FOUND = 22 + OPEN_AUDIO_IN_NEW_WINDOW = 33 + OPEN_FRAME_IN_NEW_WINDOW = 9 + OPEN_IMAGE_IN_NEW_WINDOW = 5 + OPEN_LINK = 1 + OPEN_LINK_IN_NEW_WINDOW = 2 + OPEN_VIDEO_IN_NEW_WINDOW = 32 + OUTLINE = 30 + PASTE = 16 + PASTE_AS_PLAIN_TEXT = 45 + RELOAD = 13 + SELECT_ALL = 18 + SPELLING_GUESS = 21 + STOP = 12 + TOGGLE_MEDIA_CONTROLS = 36 + TOGGLE_MEDIA_LOOP = 37 + UNDERLINE = 29 + UNICODE = 20 + +class CookieAcceptPolicy(GObject.GEnum): + ALWAYS = 0 + NEVER = 1 + NO_THIRD_PARTY = 2 + +class CookiePersistentStorage(GObject.GEnum): + SQLITE = 1 + TEXT = 0 + +class CredentialPersistence(GObject.GEnum): + FOR_SESSION = 1 + NONE = 0 + PERMANENT = 2 + +class DownloadError(GObject.GEnum): + CANCELLED_BY_USER = 400 + DESTINATION = 401 + NETWORK = 499 + @staticmethod + def quark() -> int: ... + +class FaviconDatabaseError(GObject.GEnum): + FAVICON_NOT_FOUND = 1 + FAVICON_UNKNOWN = 2 + NOT_INITIALIZED = 0 + @staticmethod + def quark() -> int: ... + +class FeatureStatus(GObject.GEnum): + DEVELOPER = 3 + EMBEDDER = 0 + INTERNAL = 2 + MATURE = 7 + PREVIEW = 5 + STABLE = 6 + TESTABLE = 4 + UNSTABLE = 1 + +class HardwareAccelerationPolicy(GObject.GEnum): + ALWAYS = 0 + NEVER = 1 + +class InputPurpose(GObject.GEnum): + DIGITS = 1 + EMAIL = 5 + FREE_FORM = 0 + NUMBER = 2 + PASSWORD = 6 + PHONE = 3 + URL = 4 + +class InsecureContentEvent(GObject.GEnum): + DISPLAYED = 1 + RUN = 0 + +class JavascriptError(GObject.GEnum): + INVALID_PARAMETER = 600 + INVALID_RESULT = 601 + SCRIPT_FAILED = 699 + @staticmethod + def quark() -> int: ... + +class LoadEvent(GObject.GEnum): + COMMITTED = 2 + FINISHED = 3 + REDIRECTED = 1 + STARTED = 0 + +class MediaCaptureState(GObject.GEnum): + ACTIVE = 1 + MUTED = 2 + NONE = 0 + +class MediaError(GObject.GEnum): + LOAD = 204 + @staticmethod + def quark() -> int: ... + +class NavigationType(GObject.GEnum): + BACK_FORWARD = 2 + FORM_RESUBMITTED = 4 + FORM_SUBMITTED = 1 + LINK_CLICKED = 0 + OTHER = 5 + RELOAD = 3 + +class NetworkError(GObject.GEnum): + CANCELLED = 302 + FAILED = 399 + FILE_DOES_NOT_EXIST = 303 + TRANSPORT = 300 + UNKNOWN_PROTOCOL = 301 + @staticmethod + def quark() -> int: ... + +class NetworkProxyMode(GObject.GEnum): + CUSTOM = 2 + DEFAULT = 0 + NO_PROXY = 1 + +class PermissionState(GObject.GEnum): + DENIED = 1 + GRANTED = 0 + PROMPT = 2 + +class PolicyDecisionType(GObject.GEnum): + NAVIGATION_ACTION = 0 + NEW_WINDOW_ACTION = 1 + RESPONSE = 2 + +class PolicyError(GObject.GEnum): + CANNOT_SHOW_MIME_TYPE = 100 + CANNOT_SHOW_URI = 101 + CANNOT_USE_RESTRICTED_PORT = 103 + FAILED = 199 + FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE = 102 + @staticmethod + def quark() -> int: ... + +class PrintError(GObject.GEnum): + GENERAL = 599 + INVALID_PAGE_RANGE = 501 + PRINTER_NOT_FOUND = 500 + @staticmethod + def quark() -> int: ... + +class PrintOperationResponse(GObject.GEnum): + CANCEL = 1 + PRINT = 0 + +class SaveMode(GObject.GEnum): + MHTML = 0 + +class ScriptDialogType(GObject.GEnum): + ALERT = 0 + BEFORE_UNLOAD_CONFIRM = 3 + CONFIRM = 1 + PROMPT = 2 + +class SnapshotError(GObject.GEnum): + CREATE = 799 + @staticmethod + def quark() -> int: ... + +class SnapshotRegion(GObject.GEnum): + FULL_DOCUMENT = 1 + VISIBLE = 0 + +class TLSErrorsPolicy(GObject.GEnum): + FAIL = 1 + IGNORE = 0 + +class UserContentFilterError(GObject.GEnum): + INVALID_SOURCE = 0 + NOT_FOUND = 1 + @staticmethod + def quark() -> int: ... + +class UserContentInjectedFrames(GObject.GEnum): + ALL_FRAMES = 0 + TOP_FRAME = 1 + +class UserMessageError(GObject.GEnum): + MESSAGE = 0 + @staticmethod + def quark() -> int: ... + +class UserScriptInjectionTime(GObject.GEnum): + END = 1 + START = 0 + +class UserStyleLevel(GObject.GEnum): + AUTHOR = 1 + USER = 0 + +class WebExtensionMode(GObject.GEnum): + MANIFESTV2 = 1 + MANIFESTV3 = 2 + NONE = 0 + +class WebProcessTerminationReason(GObject.GEnum): + CRASHED = 0 + EXCEEDED_MEMORY_LIMIT = 1 + TERMINATED_BY_API = 2