2015-01-02 11:03:53 -08:00
|
|
|
# Copyright (C) 2007-2015 various contributors (see AUTHORS)
|
2014-04-11 08:12:49 -07:00
|
|
|
#
|
2014-04-11 08:28:42 -07:00
|
|
|
# This file is part of Python-EFL.
|
2014-04-11 08:12:49 -07:00
|
|
|
#
|
2014-04-11 08:28:42 -07:00
|
|
|
# Python-EFL is free software; you can redistribute it and/or
|
2014-04-11 08:12:49 -07:00
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
2014-04-11 08:28:42 -07:00
|
|
|
# version 3 of the License, or (at your option) any later version.
|
2014-04-11 08:12:49 -07:00
|
|
|
#
|
2014-04-11 08:28:42 -07:00
|
|
|
# Python-EFL is distributed in the hope that it will be useful,
|
2014-04-11 08:12:49 -07:00
|
|
|
# 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
|
2014-04-11 08:28:42 -07:00
|
|
|
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
2014-04-11 08:12:49 -07:00
|
|
|
|
2015-01-04 13:46:40 -08:00
|
|
|
|
2016-01-03 07:48:13 -08:00
|
|
|
from efl.c_ethumb cimport Ethumb as cEthumb
|
2014-04-11 08:12:49 -07:00
|
|
|
|
|
|
|
cdef extern from "Ethumb.h":
|
2015-01-04 13:46:40 -08:00
|
|
|
|
|
|
|
cpdef enum Ethumb_Thumb_Orientation:
|
|
|
|
ETHUMB_THUMB_ORIENT_NONE
|
|
|
|
ETHUMB_THUMB_ROTATE_90_CW
|
|
|
|
ETHUMB_THUMB_ROTATE_180
|
|
|
|
ETHUMB_THUMB_ROTATE_90_CCW
|
|
|
|
ETHUMB_THUMB_FLIP_HORIZONTAL
|
|
|
|
ETHUMB_THUMB_FLIP_VERTICAL
|
|
|
|
ETHUMB_THUMB_FLIP_TRANSPOSE
|
|
|
|
ETHUMB_THUMB_FLIP_TRANSVERSE
|
|
|
|
ETHUMB_THUMB_ORIENT_ORIGINAL
|
|
|
|
|
|
|
|
cpdef enum Ethumb_Thumb_FDO_Size:
|
|
|
|
ETHUMB_THUMB_NORMAL
|
|
|
|
ETHUMB_THUMB_LARGE
|
|
|
|
|
|
|
|
cpdef enum Ethumb_Thumb_Format:
|
|
|
|
ETHUMB_THUMB_FDO
|
|
|
|
ETHUMB_THUMB_JPEG
|
|
|
|
ETHUMB_THUMB_EET
|
|
|
|
|
|
|
|
cpdef enum Ethumb_Thumb_Aspect:
|
|
|
|
ETHUMB_THUMB_KEEP_ASPECT
|
|
|
|
ETHUMB_THUMB_IGNORE_ASPECT
|
|
|
|
ETHUMB_THUMB_CROP
|
|
|
|
|
2014-04-11 08:12:49 -07:00
|
|
|
|
2016-01-03 07:48:13 -08:00
|
|
|
cdef class Ethumb:
|
|
|
|
cdef cEthumb *obj
|