1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
/// C++ type: <span style='color: green;'>```QColorDialog```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qcolordialog.html">QColorDialog</a> class provides a dialog widget for specifying colors.</p>
/// <p>The color dialog's function is to allow users to choose colors. For example, you might use this in a drawing program to allow the user to set the brush color.</p>
/// <p>The static functions provide modal color dialogs.</p>
/// <p>The static <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">getColor</a>() function shows the dialog, and allows the user to specify a color. This function can also be used to let users choose a color with a level of transparency: pass the <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">ShowAlphaChannel</a> option as an additional argument.</p>
/// <p>The user can store <a href="http://doc.qt.io/qt-5/qcolordialog.html#customCount">customCount</a>() different custom colors. The custom colors are shared by all color dialogs, and remembered during the execution of the program. Use <a href="http://doc.qt.io/qt-5/qcolordialog.html#setCustomColor">setCustomColor</a>() to set the custom colors, and use <a href="http://doc.qt.io/qt-5/qcolordialog.html#customColor">customColor</a>() to get them.</p>
/// <p>When pressing the "Pick Screen Color" button, the cursor changes to a haircross and the colors on the screen are scanned. The user can pick up one by clicking the mouse or the Enter button. Pressing Escape restores the last color selected before entering this mode.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qtwidgets-dialogs-standarddialogs-example.html">Standard Dialogs</a> example shows how to use <a href="http://doc.qt.io/qt-5/qcolordialog.html">QColorDialog</a> as well as other built-in Qt dialogs.</p>
/// <p class="centerAlign"><img src="http://doc.qt.io/qt-5/images/fusion-colordialog.png" alt="A color dialog in the Fusion widget style."></img></p></div>
#[repr(C)]
pub struct ColorDialog(u8);
impl ColorDialog {
/// C++ method: <span style='color: green;'>```QColor QColorDialog::currentColor() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#currentColor-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the currently selected color in the dialog.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>currentColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentColor</b></span>(const QColor &<i>color</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcolordialog.html#currentColorChanged">currentColorChanged</a></b></span>(const QColor &<i>color</i>)</td></tr>
/// </tbody></table></div></div>
pub fn current_color(&self) -> ::qt_gui::color::Color {
{
let mut object: ::qt_gui::color::Color =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QColorDialog_currentColor_to_output(self as *const ::color_dialog::ColorDialog,
&mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```static QColor QColorDialog::customColor(int index)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#customColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the custom color at the given <i>index</i> as a <a href="http://doc.qt.io/qt-5/qcolor.html">QColor</a> value.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#setCustomColor">setCustomColor</a>().</p></div>
pub fn custom_color(index: ::libc::c_int) -> ::qt_gui::color::Color {
{
let mut object: ::qt_gui::color::Color =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QColorDialog_customColor_to_output(index, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```static int QColorDialog::customCount()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#customCount">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of custom colors supported by <a href="http://doc.qt.io/qt-5/qcolordialog.html">QColorDialog</a>. All color dialogs share the same custom colors.</p></div>
pub fn custom_count() -> ::libc::c_int {
unsafe { ::ffi::qt_widgets_c_QColorDialog_customCount() }
}
/// C++ method: <span style='color: green;'>```QColorDialog::getColor```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn get_color(()) -> ::qt_gui::color::Color```<br>
/// C++ method: <span style='color: green;'>```static QColor QColorDialog::getColor()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog with the given window <i>title</i> (or "Select Color" if none is specified), lets the user choose a color, and returns that color. The color is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>. It returns an invalid (see <a href="http://doc.qt.io/qt-5/qcolor.html#isValid">QColor::isValid</a>()) color if the user cancels the dialog.</p>
/// <p>The <i>options</i> argument allows you to customize the dialog.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn get_color(&::qt_gui::color::Color) -> ::qt_gui::color::Color```<br>
/// C++ method: <span style='color: green;'>```static QColor QColorDialog::getColor(const QColor& initial = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog with the given window <i>title</i> (or "Select Color" if none is specified), lets the user choose a color, and returns that color. The color is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>. It returns an invalid (see <a href="http://doc.qt.io/qt-5/qcolor.html#isValid">QColor::isValid</a>()) color if the user cancels the dialog.</p>
/// <p>The <i>options</i> argument allows you to customize the dialog.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
pub fn get_color<Args>(args: Args) -> ::qt_gui::color::Color
where Args: overloading::ColorDialogGetColorArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```QColorDialog::getColor```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn get_color_unsafe((&::qt_gui::color::Color, *mut ::widget::Widget)) -> ::qt_gui::color::Color```<br>
/// C++ method: <span style='color: green;'>```static QColor QColorDialog::getColor(const QColor& initial = ?, QWidget* parent = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog with the given window <i>title</i> (or "Select Color" if none is specified), lets the user choose a color, and returns that color. The color is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>. It returns an invalid (see <a href="http://doc.qt.io/qt-5/qcolor.html#isValid">QColor::isValid</a>()) color if the user cancels the dialog.</p>
/// <p>The <i>options</i> argument allows you to customize the dialog.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn get_color_unsafe((&::qt_gui::color::Color, *mut ::widget::Widget, &::qt_core::string::String)) -> ::qt_gui::color::Color```<br>
/// C++ method: <span style='color: green;'>```static QColor QColorDialog::getColor(const QColor& initial = ?, QWidget* parent = ?, const QString& title = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog with the given window <i>title</i> (or "Select Color" if none is specified), lets the user choose a color, and returns that color. The color is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>. It returns an invalid (see <a href="http://doc.qt.io/qt-5/qcolor.html#isValid">QColor::isValid</a>()) color if the user cancels the dialog.</p>
/// <p>The <i>options</i> argument allows you to customize the dialog.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn get_color_unsafe((&::qt_gui::color::Color, *mut ::widget::Widget, &::qt_core::string::String, ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>)) -> ::qt_gui::color::Color```<br>
/// C++ method: <span style='color: green;'>```static QColor QColorDialog::getColor(const QColor& initial = ?, QWidget* parent = ?, const QString& title = ?, QFlags<QColorDialog::ColorDialogOption> options = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog with the given window <i>title</i> (or "Select Color" if none is specified), lets the user choose a color, and returns that color. The color is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>. It returns an invalid (see <a href="http://doc.qt.io/qt-5/qcolor.html#isValid">QColor::isValid</a>()) color if the user cancels the dialog.</p>
/// <p>The <i>options</i> argument allows you to customize the dialog.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
pub unsafe fn get_color_unsafe<Args>(args: Args) -> ::qt_gui::color::Color
where Args: overloading::ColorDialogGetColorUnsafeArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```QColorDialog::getRgba```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn get_rgba(()) -> ::libc::c_uint```<br>
/// C++ method: <span style='color: green;'>```static unsigned int QColorDialog::getRgba()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog-obsolete.html#getRgba">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog to allow the user to choose a color and an alpha channel (transparency) value. The color+alpha is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>.</p>
/// <p>If <i>ok</i> is non-null, <i>*a</i> ok is set to true if the user clicked <b>OK</b>, and to false if the user clicked Cancel.</p>
/// <p>If the user clicks Cancel, the <i>initial</i> value is returned.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">QColorDialog::getColor</a>() instead, passing the <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">QColorDialog::ShowAlphaChannel</a> option.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn get_rgba(::libc::c_uint) -> ::libc::c_uint```<br>
/// C++ method: <span style='color: green;'>```static unsigned int QColorDialog::getRgba(unsigned int rgba = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog-obsolete.html#getRgba">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog to allow the user to choose a color and an alpha channel (transparency) value. The color+alpha is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>.</p>
/// <p>If <i>ok</i> is non-null, <i>*a</i> ok is set to true if the user clicked <b>OK</b>, and to false if the user clicked Cancel.</p>
/// <p>If the user clicks Cancel, the <i>initial</i> value is returned.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">QColorDialog::getColor</a>() instead, passing the <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">QColorDialog::ShowAlphaChannel</a> option.</p></div>
pub fn get_rgba<Args>(args: Args) -> ::libc::c_uint
where Args: overloading::ColorDialogGetRgbaArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```QColorDialog::getRgba```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn get_rgba_unsafe((::libc::c_uint, *mut bool)) -> ::libc::c_uint```<br>
/// C++ method: <span style='color: green;'>```static unsigned int QColorDialog::getRgba(unsigned int rgba = ?, bool* ok = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog-obsolete.html#getRgba">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog to allow the user to choose a color and an alpha channel (transparency) value. The color+alpha is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>.</p>
/// <p>If <i>ok</i> is non-null, <i>*a</i> ok is set to true if the user clicked <b>OK</b>, and to false if the user clicked Cancel.</p>
/// <p>If the user clicks Cancel, the <i>initial</i> value is returned.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">QColorDialog::getColor</a>() instead, passing the <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">QColorDialog::ShowAlphaChannel</a> option.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn get_rgba_unsafe((::libc::c_uint, *mut bool, *mut ::widget::Widget)) -> ::libc::c_uint```<br>
/// C++ method: <span style='color: green;'>```static unsigned int QColorDialog::getRgba(unsigned int rgba = ?, bool* ok = ?, QWidget* parent = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog-obsolete.html#getRgba">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Pops up a modal color dialog to allow the user to choose a color and an alpha channel (transparency) value. The color+alpha is initially set to <i>initial</i>. The dialog is a child of <i>parent</i>.</p>
/// <p>If <i>ok</i> is non-null, <i>*a</i> ok is set to true if the user clicked <b>OK</b>, and to false if the user clicked Cancel.</p>
/// <p>If the user clicks Cancel, the <i>initial</i> value is returned.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qcolordialog.html#getColor">QColorDialog::getColor</a>() instead, passing the <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">QColorDialog::ShowAlphaChannel</a> option.</p></div>
pub unsafe fn get_rgba_unsafe<Args>(args: Args) -> ::libc::c_uint
where Args: overloading::ColorDialogGetRgbaUnsafeArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```virtual const QMetaObject* QColorDialog::metaObject() const```</span>
///
///
pub fn meta_object(&self) -> *const ::qt_core::meta_object::MetaObject {
unsafe { ::ffi::qt_widgets_c_QColorDialog_metaObject(self as *const ::color_dialog::ColorDialog) }
}
/// C++ method: <span style='color: green;'>```QColorDialog::QColorDialog```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn new(()) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QColorDialog::QColorDialog()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#QColorDialog">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a color dialog with the given <i>parent</i>.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn new(&::qt_gui::color::Color) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QColorDialog::QColorDialog(const QColor& initial)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#QColorDialog-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a color dialog with the given <i>parent</i> and specified <i>initial</i> color.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
pub fn new<Args>(args: Args) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>
where Args: overloading::ColorDialogNewArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```QColorDialog::QColorDialog```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn new_unsafe(*mut ::widget::Widget) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QColorDialog::QColorDialog(QWidget* parent = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#QColorDialog">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a color dialog with the given <i>parent</i>.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn new_unsafe((&::qt_gui::color::Color, *mut ::widget::Widget)) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QColorDialog::QColorDialog(const QColor& initial, QWidget* parent = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#QColorDialog-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a color dialog with the given <i>parent</i> and specified <i>initial</i> color.</p>
/// <p>This function was introduced in Qt 4.5.</p></div>
pub unsafe fn new_unsafe<Args>(args: Args) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>
where Args: overloading::ColorDialogNewUnsafeArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```void QColorDialog::open(QObject* receiver, const char* member)```</span>
///
///
pub unsafe fn open(&mut self, receiver: *mut ::qt_core::object::Object, member: *const ::libc::c_char) {
::ffi::qt_widgets_c_QColorDialog_open(self as *mut ::color_dialog::ColorDialog, receiver, member)
}
/// C++ method: <span style='color: green;'>```QFlags<QColorDialog::ColorDialogOption> QColorDialog::options() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#options-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the various options that affect the look and feel of the dialog.</p>
/// <p>By default, all options are disabled.</p>
/// <p>Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> ColorDialogOptions </td><td class="memItemRight bottomAlign"><span class="name"><b>options</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOptions</b></span>(ColorDialogOptions <i>options</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#setOption">setOption</a>() and <a href="http://doc.qt.io/qt-5/qcolordialog.html#testOption">testOption</a>().</p></div>
pub fn options(&self) -> ::qt_core::flags::Flags<::color_dialog::ColorDialogOption> {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_options(self as *const ::color_dialog::ColorDialog) };
::qt_core::flags::Flags::from_int(ffi_result as i32)
}
/// C++ method: <span style='color: green;'>```virtual int QColorDialog::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>
///
///
pub unsafe fn qt_metacall(&mut self,
arg1: ::qt_core::meta_object::Call,
arg2: ::libc::c_int,
arg3: *mut *mut ::libc::c_void)
-> ::libc::c_int {
::ffi::qt_widgets_c_QColorDialog_qt_metacall(self as *mut ::color_dialog::ColorDialog, arg1, arg2, arg3)
}
/// C++ method: <span style='color: green;'>```virtual void* QColorDialog::qt_metacast(const char* arg1)```</span>
///
///
pub unsafe fn qt_metacast(&mut self, arg1: *const ::libc::c_char) -> *mut ::libc::c_void {
::ffi::qt_widgets_c_QColorDialog_qt_metacast(self as *mut ::color_dialog::ColorDialog, arg1)
}
/// C++ method: <span style='color: green;'>```QColor QColorDialog::selectedColor() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#selectedColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the color that the user selected by clicking the <b>OK</b> or equivalent button.</p>
/// <p><b>Note: </b>This color is not always the same as the color held by the <a href="http://doc.qt.io/qt-5/qcolordialog.html#currentColor-prop">currentColor</a> property since the user can choose different colors before finally selecting the one to use.</p></div>
pub fn selected_color(&self) -> ::qt_gui::color::Color {
{
let mut object: ::qt_gui::color::Color =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QColorDialog_selectedColor_to_output(self as *const ::color_dialog::ColorDialog,
&mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```void QColorDialog::setCurrentColor(const QColor& color)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#currentColor-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the currently selected color in the dialog.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>currentColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentColor</b></span>(const QColor &<i>color</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcolordialog.html#currentColorChanged">currentColorChanged</a></b></span>(const QColor &<i>color</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_current_color(&mut self, color: &::qt_gui::color::Color) {
unsafe {
::ffi::qt_widgets_c_QColorDialog_setCurrentColor(self as *mut ::color_dialog::ColorDialog,
color as *const ::qt_gui::color::Color)
}
}
/// C++ method: <span style='color: green;'>```static void QColorDialog::setCustomColor(int index, QColor color)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#setCustomColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the custom color at <i>index</i> to the <a href="http://doc.qt.io/qt-5/qcolor.html">QColor</a> <i>color</i> value.</p>
/// <p><b>Note: </b>This function does not apply to the Native Color Dialog on the <a href="http://doc.qt.io/qt-5/internationalization.html#macos">macOS</a> platform. If you still require this function, use the <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">QColorDialog::DontUseNativeDialog</a> option.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#customColor">customColor</a>().</p></div>
pub fn set_custom_color(index: ::libc::c_int, color: &::qt_gui::color::Color) {
unsafe { ::ffi::qt_widgets_c_QColorDialog_setCustomColor(index, color as *const ::qt_gui::color::Color) }
}
/// C++ method: <span style='color: green;'>```QColorDialog::setOption```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn set_option(&mut self, ::color_dialog::ColorDialogOption) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QColorDialog::setOption(QColorDialog::ColorDialogOption option)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#setOption">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the given <i>option</i> to be enabled if <i>on</i> is true; otherwise, clears the given <i>option</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#options-prop">options</a> and <a href="http://doc.qt.io/qt-5/qcolordialog.html#testOption">testOption</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn set_option(&mut self, (::color_dialog::ColorDialogOption, bool)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QColorDialog::setOption(QColorDialog::ColorDialogOption option, bool on = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#setOption">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the given <i>option</i> to be enabled if <i>on</i> is true; otherwise, clears the given <i>option</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#options-prop">options</a> and <a href="http://doc.qt.io/qt-5/qcolordialog.html#testOption">testOption</a>().</p></div>
pub fn set_option<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::ColorDialogSetOptionArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```void QColorDialog::setOptions(QFlags<QColorDialog::ColorDialogOption> options)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#options-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the various options that affect the look and feel of the dialog.</p>
/// <p>By default, all options are disabled.</p>
/// <p>Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> ColorDialogOptions </td><td class="memItemRight bottomAlign"><span class="name"><b>options</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOptions</b></span>(ColorDialogOptions <i>options</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#setOption">setOption</a>() and <a href="http://doc.qt.io/qt-5/qcolordialog.html#testOption">testOption</a>().</p></div>
pub fn set_options(&mut self, options: ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>) {
unsafe {
::ffi::qt_widgets_c_QColorDialog_setOptions(self as *mut ::color_dialog::ColorDialog,
options.to_int() as ::libc::c_uint)
}
}
/// C++ method: <span style='color: green;'>```static void QColorDialog::setStandardColor(int index, QColor color)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#setStandardColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the standard color at <i>index</i> to the <a href="http://doc.qt.io/qt-5/qcolor.html">QColor</a> <i>color</i> value.</p>
/// <p><b>Note: </b>This function does not apply to the Native Color Dialog on the <a href="http://doc.qt.io/qt-5/internationalization.html#macos">macOS</a> platform. If you still require this function, use the <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">QColorDialog::DontUseNativeDialog</a> option.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#standardColor">standardColor</a>().</p></div>
pub fn set_standard_color(index: ::libc::c_int, color: &::qt_gui::color::Color) {
unsafe { ::ffi::qt_widgets_c_QColorDialog_setStandardColor(index, color as *const ::qt_gui::color::Color) }
}
/// C++ method: <span style='color: green;'>```virtual void QColorDialog::setVisible(bool visible)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#setVisible">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qwidget.html#visible-prop">QWidget::setVisible</a>().</p>
/// <p>Changes the visibility of the dialog. If <i>visible</i> is true, the dialog is shown; otherwise, it is hidden.</p></div>
pub fn set_visible(&mut self, visible: bool) {
unsafe { ::ffi::qt_widgets_c_QColorDialog_setVisible(self as *mut ::color_dialog::ColorDialog, visible) }
}
/// C++ method: <span style='color: green;'>```static QColor QColorDialog::standardColor(int index)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#standardColor">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the standard color at the given <i>index</i> as a <a href="http://doc.qt.io/qt-5/qcolor.html">QColor</a> value.</p>
/// <p>This function was introduced in Qt 5.0.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#setStandardColor">setStandardColor</a>().</p></div>
pub fn standard_color(index: ::libc::c_int) -> ::qt_gui::color::Color {
{
let mut object: ::qt_gui::color::Color =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QColorDialog_standardColor_to_output(index, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```bool QColorDialog::testOption(QColorDialog::ColorDialogOption option) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#testOption">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the given <i>option</i> is enabled; otherwise, returns false.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#options-prop">options</a> and <a href="http://doc.qt.io/qt-5/qcolordialog.html#setOption">setOption</a>().</p></div>
pub fn test_option(&self, option: ::color_dialog::ColorDialogOption) -> bool {
unsafe { ::ffi::qt_widgets_c_QColorDialog_testOption(self as *const ::color_dialog::ColorDialog, option) }
}
/// C++ method: <span style='color: green;'>```static QString QColorDialog::tr(const char* s, const char* c, int n)```</span>
///
///
pub unsafe fn tr(s: *const ::libc::c_char, c: *const ::libc::c_char, n: ::libc::c_int) -> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_widgets_c_QColorDialog_tr_to_output(s, c, n, &mut object);
object
}
}
/// C++ method: <span style='color: green;'>```static QString QColorDialog::trUtf8(const char* s, const char* c, int n)```</span>
///
///
pub unsafe fn tr_utf8(s: *const ::libc::c_char,
c: *const ::libc::c_char,
n: ::libc::c_int)
-> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_widgets_c_QColorDialog_trUtf8_to_output(s, c, n, &mut object);
object
}
}
}
impl ::cpp_utils::CppDeletable for ::color_dialog::ColorDialog {
fn deleter() -> ::cpp_utils::Deleter<Self> {
::ffi::qt_widgets_c_QColorDialog_delete
}
}
/// Types for accessing built-in Qt signals and slots present in this module
pub mod connection {
use ::cpp_utils::StaticCast;
/// Provides access to built-in Qt signals of `ColorDialog`.
pub struct Signals<'a>(&'a ::color_dialog::ColorDialog);
/// Represents a built-in Qt signal `QColorDialog::finished`.
///
/// An object of this type can be created from `ColorDialog` with `object.signals().finished()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct Finished<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for Finished<'a> {
type Arguments = (::libc::c_int,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2finished(int)\0"
}
}
impl<'a> ::qt_core::connection::Signal for Finished<'a> {}
/// Represents a built-in Qt signal `QColorDialog::colorSelected`.
///
/// An object of this type can be created from `ColorDialog` with `object.signals().color_selected()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct ColorSelected<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for ColorSelected<'a> {
type Arguments = (&'static ::qt_gui::color::Color,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2colorSelected(const QColor&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for ColorSelected<'a> {}
/// Represents a built-in Qt signal `QColorDialog::currentColorChanged`.
///
/// An object of this type can be created from `ColorDialog` with `object.signals().current_color_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct CurrentColorChanged<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for CurrentColorChanged<'a> {
type Arguments = (&'static ::qt_gui::color::Color,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2currentColorChanged(const QColor&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for CurrentColorChanged<'a> {}
/// Represents a built-in Qt signal `QColorDialog::accepted`.
///
/// An object of this type can be created from `ColorDialog` with `object.signals().accepted()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct Accepted<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for Accepted<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2accepted()\0"
}
}
impl<'a> ::qt_core::connection::Signal for Accepted<'a> {}
/// Represents a built-in Qt signal `QColorDialog::rejected`.
///
/// An object of this type can be created from `ColorDialog` with `object.signals().rejected()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct Rejected<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for Rejected<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2rejected()\0"
}
}
impl<'a> ::qt_core::connection::Signal for Rejected<'a> {}
impl<'a> Signals<'a> {
/// Returns an object representing a built-in Qt signal `QColorDialog::finished`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn finished(&self) -> Finished {
Finished(self.0)
}
/// Returns an object representing a built-in Qt signal `QColorDialog::colorSelected`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn color_selected(&self) -> ColorSelected {
ColorSelected(self.0)
}
/// Returns an object representing a built-in Qt signal `QColorDialog::currentColorChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn current_color_changed(&self) -> CurrentColorChanged {
CurrentColorChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QColorDialog::accepted`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn accepted(&self) -> Accepted {
Accepted(self.0)
}
/// Returns an object representing a built-in Qt signal `QColorDialog::rejected`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn rejected(&self) -> Rejected {
Rejected(self.0)
}
}
/// Provides access to built-in Qt slots of `ColorDialog`.
pub struct Slots<'a>(&'a ::color_dialog::ColorDialog);
/// Represents a built-in Qt slot `QColorDialog::open`.
///
/// An object of this type can be created from `ColorDialog` with `object.slots().open()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct Open<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for Open<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1open()\0"
}
}
/// Represents a built-in Qt slot `QColorDialog::accept`.
///
/// An object of this type can be created from `ColorDialog` with `object.slots().accept()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct Accept<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for Accept<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1accept()\0"
}
}
/// Represents a built-in Qt slot `QColorDialog::showExtension`.
///
/// An object of this type can be created from `ColorDialog` with `object.slots().show_extension()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct ShowExtension<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for ShowExtension<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1showExtension(bool)\0"
}
}
/// Represents a built-in Qt slot `QColorDialog::exec`.
///
/// An object of this type can be created from `ColorDialog` with `object.slots().exec()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct Exec<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for Exec<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1exec()\0"
}
}
/// Represents a built-in Qt slot `QColorDialog::reject`.
///
/// An object of this type can be created from `ColorDialog` with `object.slots().reject()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ColorDialog` object.
pub struct Reject<'a>(&'a ::color_dialog::ColorDialog);
impl<'a> ::qt_core::connection::Receiver for Reject<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1reject()\0"
}
}
impl<'a> Slots<'a> {
/// Returns an object representing a built-in Qt slot `QColorDialog::open`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn open(&self) -> Open {
Open(self.0)
}
/// Returns an object representing a built-in Qt slot `QColorDialog::accept`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn accept(&self) -> Accept {
Accept(self.0)
}
/// Returns an object representing a built-in Qt slot `QColorDialog::showExtension`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn show_extension(&self) -> ShowExtension {
ShowExtension(self.0)
}
/// Returns an object representing a built-in Qt slot `QColorDialog::exec`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn exec(&self) -> Exec {
Exec(self.0)
}
/// Returns an object representing a built-in Qt slot `QColorDialog::reject`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn reject(&self) -> Reject {
Reject(self.0)
}
}
impl ::color_dialog::ColorDialog {
/// Provides access to built-in Qt signals of this type
pub fn signals(&self) -> Signals {
Signals(self)
}
/// Provides access to built-in Qt slots of this type
pub fn slots(&self) -> Slots {
Slots(self)
}
}
}
/// C++ type: <span style='color: green;'>```QColorDialog::ColorDialogOption```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcolordialog.html#ColorDialogOption-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum specifies various options that affect the look and feel of a color dialog.</p>
///
/// <p>This enum was introduced or modified in Qt 4.5.</p>
/// <p>The ColorDialogOptions type is a typedef for <a href="http://doc.qt.io/qt-5/qflags.html">QFlags</a><ColorDialogOption>. It stores an OR combination of ColorDialogOption values.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcolordialog.html#options-prop">options</a>, <a href="http://doc.qt.io/qt-5/qcolordialog.html#setOption">setOption</a>(), <a href="http://doc.qt.io/qt-5/qcolordialog.html#testOption">testOption</a>(), and <a href="http://doc.qt.io/qt-5/qwidget.html#windowModality-prop">windowModality</a>().</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum ColorDialogOption {
/// Allow the user to select the alpha component of a color. (C++ enum variant: <span style='color: green;'>```ShowAlphaChannel = 1```</span>)
ShowAlphaChannel = 1,
/// Don't display <b>OK</b> and <b>Cancel</b> buttons. (Useful for "live dialogs".) (C++ enum variant: <span style='color: green;'>```NoButtons = 2```</span>)
NoButtons = 2,
/// Use Qt's standard color dialog instead of the operating system native color dialog. (C++ enum variant: <span style='color: green;'>```DontUseNativeDialog = 4```</span>)
DontUseNativeDialog = 4,
}
impl ::qt_core::flags::FlaggableEnum for ColorDialogOption {
fn to_flag_value(self) -> ::libc::c_int {
self as ::libc::c_int
}
fn enum_name() -> &'static str {
"ColorDialogOption"
}
}
/// C++ method: <span style='color: green;'>```operator|```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn op_bit_or((::color_dialog::ColorDialogOption, ::color_dialog::ColorDialogOption)) -> ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>```<br>
/// C++ method: <span style='color: green;'>```QFlags<QColorDialog::ColorDialogOption> operator|(QColorDialog::ColorDialogOption f1, QColorDialog::ColorDialogOption f2)```</span>
///
///
///
/// ## Variant 2
///
/// Rust arguments: ```fn op_bit_or((::color_dialog::ColorDialogOption, ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>)) -> ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>```<br>
/// C++ method: <span style='color: green;'>```QFlags<QColorDialog::ColorDialogOption> operator|(QColorDialog::ColorDialogOption f1, QFlags<QColorDialog::ColorDialogOption> f2)```</span>
///
///
pub fn op_bit_or<Args>(args: Args) -> ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>
where Args: overloading::OpBitOrArgs
{
args.exec()
}
impl ::cpp_utils::DynamicCast<::color_dialog::ColorDialog> for ::dialog::Dialog {
fn dynamic_cast_mut(&mut self) -> ::std::option::Option<&mut ::color_dialog::ColorDialog> {
let ffi_result =
unsafe {
::ffi::qt_widgets_c_QColorDialog_G_dynamic_cast_QColorDialog_ptr_QDialog(self as *mut ::dialog::Dialog)
};
unsafe { ffi_result.as_mut() }
}
fn dynamic_cast(&self) -> ::std::option::Option<&::color_dialog::ColorDialog> {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_dynamic_cast_QColorDialog_ptr_QDialog(self as *const ::dialog::Dialog as *mut ::dialog::Dialog) };
unsafe { ffi_result.as_ref() }
}
}
impl ::cpp_utils::DynamicCast<::color_dialog::ColorDialog> for ::widget::Widget {
fn dynamic_cast_mut(&mut self) -> ::std::option::Option<&mut ::color_dialog::ColorDialog> {
let ffi_result =
unsafe {
::ffi::qt_widgets_c_QColorDialog_G_dynamic_cast_QColorDialog_ptr_QWidget(self as *mut ::widget::Widget)
};
unsafe { ffi_result.as_mut() }
}
fn dynamic_cast(&self) -> ::std::option::Option<&::color_dialog::ColorDialog> {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_dynamic_cast_QColorDialog_ptr_QWidget(self as *const ::widget::Widget as *mut ::widget::Widget) };
unsafe { ffi_result.as_ref() }
}
}
impl ::cpp_utils::StaticCast<::qt_core::object::Object> for ::color_dialog::ColorDialog {
fn static_cast_mut(&mut self) -> &mut ::qt_core::object::Object {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QObject_ptr(self as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_core::object::Object {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QObject_ptr(self as *const ::color_dialog::ColorDialog as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::qt_gui::paint_device::PaintDevice> for ::color_dialog::ColorDialog {
fn static_cast_mut(&mut self) -> &mut ::qt_gui::paint_device::PaintDevice {
let ffi_result =
unsafe {
::ffi::qt_widgets_c_QColorDialog_G_static_cast_QPaintDevice_ptr(self as *mut ::color_dialog::ColorDialog)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_gui::paint_device::PaintDevice {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QPaintDevice_ptr(self as *const ::color_dialog::ColorDialog as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::dialog::Dialog> for ::color_dialog::ColorDialog {
fn static_cast_mut(&mut self) -> &mut ::dialog::Dialog {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QDialog_ptr(self as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::dialog::Dialog {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QDialog_ptr(self as *const ::color_dialog::ColorDialog as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::widget::Widget> for ::color_dialog::ColorDialog {
fn static_cast_mut(&mut self) -> &mut ::widget::Widget {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QWidget_ptr(self as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::widget::Widget {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QWidget_ptr(self as *const ::color_dialog::ColorDialog as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::color_dialog::ColorDialog> for ::dialog::Dialog {
unsafe fn static_cast_mut(&mut self) -> &mut ::color_dialog::ColorDialog {
let ffi_result =
::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QDialog(self as *mut ::dialog::Dialog);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::color_dialog::ColorDialog {
let ffi_result = ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QDialog(self as *const ::dialog::Dialog as *mut ::dialog::Dialog);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::color_dialog::ColorDialog> for ::qt_core::object::Object {
unsafe fn static_cast_mut(&mut self) -> &mut ::color_dialog::ColorDialog {
let ffi_result =
::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QObject(self as *mut ::qt_core::object::Object);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::color_dialog::ColorDialog {
let ffi_result = ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QObject(self as *const ::qt_core::object::Object as *mut ::qt_core::object::Object);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::color_dialog::ColorDialog> for ::qt_gui::paint_device::PaintDevice {
unsafe fn static_cast_mut(&mut self) -> &mut ::color_dialog::ColorDialog {
let ffi_result = ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QPaintDevice(self as *mut ::qt_gui::paint_device::PaintDevice);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::color_dialog::ColorDialog {
let ffi_result = ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QPaintDevice(self as *const ::qt_gui::paint_device::PaintDevice as *mut ::qt_gui::paint_device::PaintDevice);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::color_dialog::ColorDialog> for ::widget::Widget {
unsafe fn static_cast_mut(&mut self) -> &mut ::color_dialog::ColorDialog {
let ffi_result =
::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QWidget(self as *mut ::widget::Widget);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::color_dialog::ColorDialog {
let ffi_result = ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QColorDialog_ptr_QWidget(self as *const ::widget::Widget as *mut ::widget::Widget);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::Deref for ::color_dialog::ColorDialog {
type Target = ::dialog::Dialog;
fn deref(&self) -> &::dialog::Dialog {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QDialog_ptr(self as *const ::color_dialog::ColorDialog as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for ::color_dialog::ColorDialog {
fn deref_mut(&mut self) -> &mut ::dialog::Dialog {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QColorDialog_G_static_cast_QDialog_ptr(self as *mut ::color_dialog::ColorDialog) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
/// Types for emulating overloading for overloaded functions in this module
pub mod overloading {
/// This trait represents a set of arguments accepted by [ColorDialog::get_color](../struct.ColorDialog.html#method.get_color) method.
pub trait ColorDialogGetColorArgs {
fn exec(self) -> ::qt_gui::color::Color;
}
impl<'a> ColorDialogGetColorArgs for &'a ::qt_gui::color::Color {
fn exec(self) -> ::qt_gui::color::Color {
let initial = self;
{
let mut object: ::qt_gui::color::Color =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QColorDialog_getColor_to_output_initial(initial as *const ::qt_gui::color::Color,
&mut object);
}
object
}
}
}
impl ColorDialogGetColorArgs for () {
fn exec(self) -> ::qt_gui::color::Color {
{
let mut object: ::qt_gui::color::Color =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QColorDialog_getColor_to_output_no_args(&mut object);
}
object
}
}
}
/// This trait represents a set of arguments accepted by [ColorDialog::get_color_unsafe](../struct.ColorDialog.html#method.get_color_unsafe) method.
pub trait ColorDialogGetColorUnsafeArgs {
unsafe fn exec(self) -> ::qt_gui::color::Color;
}
impl<'a> ColorDialogGetColorUnsafeArgs for (&'a ::qt_gui::color::Color, *mut ::widget::Widget) {
unsafe fn exec(self) -> ::qt_gui::color::Color {
let initial = self.0;
let parent = self.1;
{
let mut object: ::qt_gui::color::Color =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_widgets_c_QColorDialog_getColor_to_output_initial_parent(initial as *const ::qt_gui::color::Color,
parent,
&mut object);
object
}
}
}
impl<'a> ColorDialogGetColorUnsafeArgs
for (&'a ::qt_gui::color::Color, *mut ::widget::Widget, &'a ::qt_core::string::String) {
unsafe fn exec(self) -> ::qt_gui::color::Color {
let initial = self.0;
let parent = self.1;
let title = self.2;
{
let mut object: ::qt_gui::color::Color =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_widgets_c_QColorDialog_getColor_to_output_initial_parent_title(initial as *const ::qt_gui::color::Color, parent, title as *const ::qt_core::string::String, &mut object);
object
}
}
}
impl<'a> ColorDialogGetColorUnsafeArgs
for (&'a ::qt_gui::color::Color,
*mut ::widget::Widget,
&'a ::qt_core::string::String,
::qt_core::flags::Flags<::color_dialog::ColorDialogOption>) {
unsafe fn exec(self) -> ::qt_gui::color::Color {
let initial = self.0;
let parent = self.1;
let title = self.2;
let options = self.3;
{
let mut object: ::qt_gui::color::Color =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_widgets_c_QColorDialog_getColor_to_output_initial_parent_title_options(initial as *const ::qt_gui::color::Color, parent, title as *const ::qt_core::string::String, options.to_int() as ::libc::c_uint, &mut object);
object
}
}
}
/// This trait represents a set of arguments accepted by [ColorDialog::get_rgba](../struct.ColorDialog.html#method.get_rgba) method.
pub trait ColorDialogGetRgbaArgs {
fn exec(self) -> ::libc::c_uint;
}
impl ColorDialogGetRgbaArgs for () {
fn exec(self) -> ::libc::c_uint {
unsafe { ::ffi::qt_widgets_c_QColorDialog_getRgba_no_args() }
}
}
impl ColorDialogGetRgbaArgs for ::libc::c_uint {
fn exec(self) -> ::libc::c_uint {
let rgba = self;
unsafe { ::ffi::qt_widgets_c_QColorDialog_getRgba_rgba(rgba) }
}
}
/// This trait represents a set of arguments accepted by [ColorDialog::get_rgba_unsafe](../struct.ColorDialog.html#method.get_rgba_unsafe) method.
pub trait ColorDialogGetRgbaUnsafeArgs {
unsafe fn exec(self) -> ::libc::c_uint;
}
impl ColorDialogGetRgbaUnsafeArgs for (::libc::c_uint, *mut bool) {
unsafe fn exec(self) -> ::libc::c_uint {
let rgba = self.0;
let ok = self.1;
::ffi::qt_widgets_c_QColorDialog_getRgba_rgba_ok(rgba, ok)
}
}
impl ColorDialogGetRgbaUnsafeArgs for (::libc::c_uint, *mut bool, *mut ::widget::Widget) {
unsafe fn exec(self) -> ::libc::c_uint {
let rgba = self.0;
let ok = self.1;
let parent = self.2;
::ffi::qt_widgets_c_QColorDialog_getRgba_rgba_ok_parent(rgba, ok, parent)
}
}
/// This trait represents a set of arguments accepted by [ColorDialog::new](../struct.ColorDialog.html#method.new) method.
pub trait ColorDialogNewArgs {
fn exec(self) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>;
}
impl<'a> ColorDialogNewArgs for &'a ::qt_gui::color::Color {
fn exec(self) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog> {
let initial = self;
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QColorDialog_new_initial(initial as *const ::qt_gui::color::Color) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl ColorDialogNewArgs for () {
fn exec(self) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog> {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_new_no_args() };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
/// This trait represents a set of arguments accepted by [ColorDialog::new_unsafe](../struct.ColorDialog.html#method.new_unsafe) method.
pub trait ColorDialogNewUnsafeArgs {
unsafe fn exec(self) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog>;
}
impl<'a> ColorDialogNewUnsafeArgs for (&'a ::qt_gui::color::Color, *mut ::widget::Widget) {
unsafe fn exec(self) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog> {
let initial = self.0;
let parent = self.1;
let ffi_result = ::ffi::qt_widgets_c_QColorDialog_new_initial_parent(initial as *const ::qt_gui::color::Color,
parent);
::cpp_utils::CppBox::new(ffi_result)
}
}
impl ColorDialogNewUnsafeArgs for *mut ::widget::Widget {
unsafe fn exec(self) -> ::cpp_utils::CppBox<::color_dialog::ColorDialog> {
let parent = self;
let ffi_result = ::ffi::qt_widgets_c_QColorDialog_new_parent(parent);
::cpp_utils::CppBox::new(ffi_result)
}
}
/// This trait represents a set of arguments accepted by [ColorDialog::set_option](../struct.ColorDialog.html#method.set_option) method.
pub trait ColorDialogSetOptionArgs<'largs> {
fn exec(self, original_self: &'largs mut ::color_dialog::ColorDialog) -> ();
}
impl<'largs> ColorDialogSetOptionArgs<'largs> for ::color_dialog::ColorDialogOption {
fn exec(self, original_self: &'largs mut ::color_dialog::ColorDialog) -> () {
let option = self;
unsafe {
::ffi::qt_widgets_c_QColorDialog_setOption_option(original_self as *mut ::color_dialog::ColorDialog, option)
}
}
}
impl<'largs> ColorDialogSetOptionArgs<'largs> for (::color_dialog::ColorDialogOption, bool) {
fn exec(self, original_self: &'largs mut ::color_dialog::ColorDialog) -> () {
let option = self.0;
let on = self.1;
unsafe {
::ffi::qt_widgets_c_QColorDialog_setOption_option_on(original_self as *mut ::color_dialog::ColorDialog,
option,
on)
}
}
}
/// This trait represents a set of arguments accepted by [op_bit_or](../fn.op_bit_or.html) method.
pub trait OpBitOrArgs {
fn exec(self) -> ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>;
}
impl OpBitOrArgs for (::color_dialog::ColorDialogOption, ::color_dialog::ColorDialogOption) {
fn exec(self) -> ::qt_core::flags::Flags<::color_dialog::ColorDialogOption> {
let f1 = self.0;
let f2 = self.1;
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_operator_bit_or_QColorDialog_ColorDialogOption_QColorDialog_ColorDialogOption(f1, f2) };
::qt_core::flags::Flags::from_int(ffi_result as i32)
}
}
impl OpBitOrArgs for (::color_dialog::ColorDialogOption, ::qt_core::flags::Flags<::color_dialog::ColorDialogOption>) {
fn exec(self) -> ::qt_core::flags::Flags<::color_dialog::ColorDialogOption> {
let f1 = self.0;
let f2 = self.1;
let ffi_result = unsafe { ::ffi::qt_widgets_c_QColorDialog_G_operator_bit_or_QColorDialog_ColorDialogOption_QFlags_QColorDialog_ColorDialogOption(f1, f2.to_int() as ::libc::c_uint) };
::qt_core::flags::Flags::from_int(ffi_result as i32)
}
}
}