-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for #410 - add emeus cassowary C code.
* compiles and links linux, osx, mxe (not xwin7 - needs newer glib) * doesn't run
- Loading branch information
Cecil
committed
Oct 30, 2018
1 parent
4ac78e2
commit ae75958
Showing
26 changed files
with
5,355 additions
and
42 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,35 @@ | ||
/* | ||
* Autogenerated by the Meson build system. | ||
* Do not edit, your changes will be lost. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#define ENABLE_NLS 1 | ||
|
||
#define GETTEXT_PACKAGE PACKAGE_NAME | ||
|
||
#define HAVE_STDBOOL_H | ||
|
||
#define HAVE_STDINT_H | ||
|
||
#define HAVE_STDLIB_H | ||
|
||
#define LOCALEDIR PACKAGE_LOCALE_DIR | ||
|
||
#define PACKAGE_DATADIR "/usr/local/share" | ||
|
||
#define PACKAGE_LIBDIR "/usr/local/lib/x86_64-linux-gnu" | ||
|
||
#define PACKAGE_LIBEXECDIR "/usr/local/libexec" | ||
|
||
#define PACKAGE_LOCALE_DIR "/usr/local/share/locale" | ||
|
||
#define PACKAGE_NAME "emeus" | ||
|
||
#define PACKAGE_STRING "emeus-0.99.1" | ||
|
||
#define PACKAGE_VERSION "0.99.1" | ||
|
||
#define _EMEUS_PUBLIC __attribute__((visibility("default"))) | ||
|
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,60 @@ | ||
/* emeus-constraint-private.h: The base constraint object | ||
* | ||
* Copyright 2016 Endless | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "emeus-constraint.h" | ||
//#include "emeus-constraint-layout-private.h" | ||
#include "emeus-types-private.h" | ||
|
||
G_BEGIN_DECLS | ||
|
||
struct _EmeusConstraint | ||
{ | ||
GInitiallyUnowned parent_instance; | ||
|
||
gpointer target_object; | ||
EmeusConstraintAttribute target_attribute; | ||
|
||
EmeusConstraintRelation relation; | ||
|
||
gpointer source_object; | ||
EmeusConstraintAttribute source_attribute; | ||
|
||
double multiplier; | ||
double constant; | ||
|
||
int strength; | ||
|
||
gboolean is_active; | ||
|
||
char *description; | ||
SimplexSolver *solver; | ||
Constraint *constraint; | ||
EmeusConstraintLayout *layout; | ||
}; | ||
|
||
gboolean emeus_constraint_attach (EmeusConstraint *constraint, | ||
EmeusConstraintLayout *layout); | ||
void emeus_constraint_detach (EmeusConstraint *constraint); | ||
|
||
Constraint * emeus_constraint_get_real_constraint (EmeusConstraint *constraint); | ||
|
||
const char * emeus_constraint_to_string (EmeusConstraint *constraint); | ||
|
||
G_END_DECLS |
Oops, something went wrong.