Skip to content
Permalink
Browse files

Added GtkCheckButton

  • Loading branch information...
scorninpc committed May 21, 2019
1 parent d08294b commit a561ee0ffb690eddd6af5f4a6fcb8f61f336b959
Showing with 18 additions and 3 deletions.
  1. +3 −3 Objects.md
  2. +10 −0 main.cpp
  3. +1 −0 main.h
  4. +4 −0 test.php
@@ -35,9 +35,9 @@ _GObject
│ │ │ │ ├── GtkFrame
│ │ │ │ │ ╰── GtkAspectFrame
│ │ │ │ ├── #GtkButton
│ │ │ │ │ ├── GtkToggleButton
│ │ │ │ │ │ ├── GtkCheckButton
│ │ │ │ │ │ │ ╰── GtkRadioButton
│ │ │ │ │ ├── *GtkToggleButton
│ │ │ │ │ │ ├── *GtkCheckButton
│ │ │ │ │ │ │ ╰── *GtkRadioButton
│ │ │ │ │ │ ╰── GtkMenuButton
│ │ │ │ │ ├── GtkColorButton
│ │ │ │ │ ├── GtkFontButton
@@ -438,6 +438,15 @@ extern "C"
gtktogglebutton.method<&GtkToggleButton_::get_inconsistent>("get_inconsistent");
gtktogglebutton.method<&GtkToggleButton_::set_inconsistent>("set_inconsistent");


// GtkCheckButton
Php::Class<GtkCheckButton_> gtkcheckbutton("GtkCheckButton");
gtkcheckbutton.extends(gtktogglebutton);
gtkcheckbutton.method<&GtkCheckButton_::__construct>("__construct");
gtkcheckbutton.method<&GtkCheckButton_::new_with_label>("new_with_label");
gtkcheckbutton.method<&GtkCheckButton_::new_with_mnemonic>("new_with_mnemonic");


// GtkAdjustment
Php::Class<GtkAdjustment_> gtkadjustment("GtkAdjustment");
gtkadjustment.extends(gobject);
@@ -1341,6 +1350,7 @@ extern "C"
extension.add(std::move(gtkfilechooserdialog));
extension.add(std::move(gtkbutton));
extension.add(std::move(gtktogglebutton));
extension.add(std::move(gtkcheckbutton));
extension.add(std::move(gtkadjustment));
extension.add(std::move(gtkscrolledwindow));
extension.add(std::move(gtkentrybuffer));
1 main.h
@@ -27,6 +27,7 @@
#include "src/GtkWindow.h"
#include "src/GtkButton.h"
#include "src/GtkToggleButton.h"
#include "src/GtkCheckButton.h"

#include "src/GtkAdjustment.h"
#include "src/GtkScrolledWindow.h"
@@ -106,6 +106,10 @@ function GtkCellRendererToggled($renderer=NULL, $path=NULL)
$btn3 = GtkToggleButton::new_with_label("Button 3");
$hbox->pack_start($btn3, TRUE, TRUE, 5);
// Button 4
$btn4 = GtkCheckButton::new_with_label("Button 4");
$hbox->pack_start($btn4, TRUE, TRUE, 5);
// ----------------------
// Vertical box
$vbox = new GtkVBox(FALSE, 5);

0 comments on commit a561ee0

Please sign in to comment.
You can’t perform that action at this time.