-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added GtkSeparatorToolItem and some GtkWindow
- Loading branch information
Showing
5 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
#include "GtkSeparatorToolItem.h" | ||
|
||
/** | ||
* Constructor | ||
*/ | ||
GtkSeparatorToolItem_::GtkSeparatorToolItem_() = default; | ||
|
||
/** | ||
* Destructor | ||
*/ | ||
GtkSeparatorToolItem_::~GtkSeparatorToolItem_() = default; | ||
|
||
void GtkSeparatorToolItem_::__construct() | ||
{ | ||
instance = (gpointer *)gtk_separator_tool_item_new (); | ||
|
||
} | ||
|
||
void GtkSeparatorToolItem_::set_draw(Php::Parameters ¶meters) | ||
{ | ||
gboolean homogeneous = (gboolean)parameters[0]; | ||
|
||
gtk_separator_tool_item_set_draw (GTK_SEPARATOR_TOOL_ITEM(instance), homogeneous); | ||
|
||
} | ||
|
||
Php::Value GtkSeparatorToolItem_::get_draw() | ||
{ | ||
gboolean ret = gtk_separator_tool_item_get_draw (GTK_SEPARATOR_TOOL_ITEM(instance)); | ||
|
||
return ret; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
#ifndef _PHPGTK_GTKSEPARATORTOOLITEM_H_ | ||
#define _PHPGTK_GTKSEPARATORTOOLITEM_H_ | ||
|
||
#include <phpcpp.h> | ||
#include <gtk/gtk.h> | ||
|
||
#include "GtkToolItem.h" | ||
|
||
/** | ||
* GtkSeparatorToolItem_ | ||
* | ||
* https://developer.gnome.org/gtk3/stable/GtkSeparatorToolItem.html | ||
*/ | ||
class GtkSeparatorToolItem_ : public GtkToolItem_ | ||
{ | ||
/** | ||
* Publics | ||
*/ | ||
public: | ||
|
||
/** | ||
* C++ constructor and destructor | ||
*/ | ||
GtkSeparatorToolItem_(); | ||
~GtkSeparatorToolItem_(); | ||
|
||
void __construct(); | ||
|
||
void set_draw(Php::Parameters ¶meters); | ||
|
||
Php::Value get_draw(); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters