Ignore:
Timestamp:
Apr 19, 2006, 12:10:58 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • More function mass-renaming: caca_attach -> caca_create_display, etc.
Location:
libcaca/trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/python/pypycaca.c

    r769 r819  
    2323    {"set_width", pycaca_set_width, METH_VARARGS, "Set width"},
    2424    {"set_height", pycaca_set_height, METH_VARARGS, "Set height"},
    25     {"set_window_title", pycaca_set_window_title, METH_VARARGS, "Set window titl"},
    26     {"get_window_width", pycaca_get_window_width, METH_NOARGS, "Get window width"},
    27     {"get_window_height", pycaca_get_window_height, METH_NOARGS, "Get Window height"},
     25    {"set_display_title", pycaca_set_display_title, METH_VARARGS, "Set window titl"},
     26    {"get_display_width", pycaca_get_display_width, METH_NOARGS, "Get window width"},
     27    {"get_display_height", pycaca_get_display_height, METH_NOARGS, "Get Window height"},
    2828    {"refresh", pycaca_refresh, METH_NOARGS, "Refresh window"},
    2929    {"end", pycaca_end, METH_NOARGS, "End libcaca"},
     
    256256
    257257static PyObject *
    258 pycaca_set_window_title(PyObject *self, PyObject *args)
     258pycaca_set_display_title(PyObject *self, PyObject *args)
    259259{
    260260  int ret;
    261261  const char *str;
    262262  if (!PyArg_ParseTuple(args, "s", &str));
    263   ret = caca_set_window_title(str);
     263  ret = caca_set_display_title(str);
    264264  return Py_BuildValue("i", ret);  /* FIXME */
    265265}
    266266
    267267static PyObject *
    268 pycaca_get_window_width(PyObject *self, PyObject *args)
    269 {
    270   int ret = caca_get_window_width();
    271   return Py_BuildValue("i", ret);
    272 }
    273 
    274 static PyObject *
    275 pycaca_get_window_height(PyObject *self, PyObject *args)
    276 {
    277   int ret = caca_get_window_height();
     268pycaca_get_display_width(PyObject *self, PyObject *args)
     269{
     270  int ret = caca_get_display_width();
     271  return Py_BuildValue("i", ret);
     272}
     273
     274static PyObject *
     275pycaca_get_display_height(PyObject *self, PyObject *args)
     276{
     277  int ret = caca_get_display_height();
    278278  return Py_BuildValue("i", ret);
    279279}
  • libcaca/trunk/python/pypycaca.h

    r769 r819  
    3939pycaca_set_height(PyObject *self, PyObject *args);
    4040static PyObject *
    41 pycaca_set_window_title(PyObject *self, PyObject *args);
     41pycaca_set_display_title(PyObject *self, PyObject *args);
    4242static PyObject *
    43 pycaca_get_window_width(PyObject *self, PyObject *args);
     43pycaca_get_display_width(PyObject *self, PyObject *args);
    4444static PyObject *
    45 pycaca_get_window_height(PyObject *self, PyObject *args);
     45pycaca_get_display_height(PyObject *self, PyObject *args);
    4646static PyObject *
    4747pycaca_refresh(PyObject *self, PyObject *args);
Note: See TracChangeset for help on using the changeset viewer.