[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/widgets pgscrollbar.cpp,1.6,1.6.2.1 pgwid
From: |
Teunis Peters <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/widgets pgscrollbar.cpp,1.6,1.6.2.1 pgwidget.cpp,1.13.2.1,1.13.2.2 pgwidgetdnd.cpp,1.3.2.1,1.3.2.2 |
Date: |
Wed, 26 Jun 2002 04:47:54 -0400 |
Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv7234/src/widgets
Modified Files:
Tag: devel-opengl
pgscrollbar.cpp pgwidget.cpp pgwidgetdnd.cpp
Log Message:
Initial OpenGL drawable creation
added a simple OpenGL test based on 'list'
abstracted mouse management functions - solved "mouse cursor not moving"
problem which was based on a zero-width and height mouse rectangle.
Index: pgscrollbar.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgscrollbar.cpp,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -r1.6 -r1.6.2.1
*** pgscrollbar.cpp 6 May 2002 10:40:50 -0000 1.6
--- pgscrollbar.cpp 26 Jun 2002 08:47:51 -0000 1.6.2.1
***************
*** 29,32 ****
--- 29,33 ----
#include "pgscrollbar.h"
#include "pgapplication.h"
+ #include "pgdraw.h"
PG_ScrollBar::PG_ScrollBar(PG_Widget* parent, int id, const PG_Rect& r, int
direction, const char* style) : PG_ThemeWidget(parent, r, style) {
***************
*** 216,220 ****
int my = dragbutton->my_ypos + dragbutton->my_height / 2;
! SDL_GetMouseState(&x, &y);
switch (button->button) {
--- 217,221 ----
int my = dragbutton->my_ypos + dragbutton->my_height / 2;
! PG_Application::GetDrawingEnvironment()->GetMouseState(&x, &y);
switch (button->button) {
***************
*** 341,345 ****
if(button->button == 1) {
! SDL_GetMouseState(&x, &y);
offset = ScreenToClient(x, y);
}
--- 342,346 ----
if(button->button == 1) {
! PG_Application::GetDrawingEnvironment()->GetMouseState(&x, &y);
offset = ScreenToClient(x, y);
}
Index: pgwidget.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgwidget.cpp,v
retrieving revision 1.13.2.1
retrieving revision 1.13.2.2
diff -C2 -r1.13.2.1 -r1.13.2.2
*** pgwidget.cpp 18 Jun 2002 22:40:39 -0000 1.13.2.1
--- pgwidget.cpp 26 Jun 2002 08:47:51 -0000 1.13.2.2
***************
*** 561,565 ****
int x, y;
! SDL_GetMouseState(&x, &y);
p.x = static_cast<Sint16>(x);
p.y = static_cast<Sint16>(y);
--- 561,565 ----
int x, y;
! PG_Application::GetDrawingEnvironment()->GetMouseState(&x, &y);
p.x = static_cast<Sint16>(x);
p.y = static_cast<Sint16>(y);
***************
*** 874,878 ****
int x, y;
! SDL_GetMouseState(&x, &y);
my_internaldata->ptDragStart.x = static_cast<Sint16>(x);
my_internaldata->ptDragStart.y = static_cast<Sint16>(y);
--- 874,878 ----
int x, y;
! PG_Application::GetDrawingEnvironment()->GetMouseState(&x, &y);
my_internaldata->ptDragStart.x = static_cast<Sint16>(x);
my_internaldata->ptDragStart.y = static_cast<Sint16>(y);
***************
*** 1052,1056 ****
switch(action) {
case PG_ACT_ACTIVATE:
! SDL_WarpMouse(x,y);
eventMouseEnter();
break;
--- 1052,1056 ----
switch(action) {
case PG_ACT_ACTIVATE:
! PG_Application::GetDrawingEnvironment()->WarpMouse(x,y);
eventMouseEnter();
break;
Index: pgwidgetdnd.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgwidgetdnd.cpp,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -r1.3.2.1 -r1.3.2.2
*** pgwidgetdnd.cpp 18 Jun 2002 22:40:39 -0000 1.3.2.1
--- pgwidgetdnd.cpp 26 Jun 2002 08:47:51 -0000 1.3.2.2
***************
*** 151,155 ****
int x,y;
! SDL_GetMouseState(&x, &y);
CheckCursorPos(x, y);
--- 151,155 ----
int x,y;
! PG_Application::GetDrawingEnvironment()->GetMouseState(&x, &y);
CheckCursorPos(x, y);
***************
*** 188,192 ****
PG_Point pt;
! SDL_GetMouseState(&x, &y);
CheckCursorPos(x, y);
pt.x = x;
--- 188,192 ----
PG_Point pt;
! PG_Application::GetDrawingEnvironment()->GetMouseState(&x, &y);
CheckCursorPos(x, y);
pt.x = x;
***************
*** 244,248 ****
PG_Point pt;
! SDL_GetMouseState(&x, &y);
CheckCursorPos(x, y);
--- 244,248 ----
PG_Point pt;
! PG_Application::GetDrawingEnvironment()->GetMouseState(&x, &y);
CheckCursorPos(x, y);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/widgets pgscrollbar.cpp,1.6,1.6.2.1 pgwidget.cpp,1.13.2.1,1.13.2.2 pgwidgetdnd.cpp,1.3.2.1,1.3.2.2,
Teunis Peters <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/include pggldraw.h,NONE,1.1.2.1 Makefile.am,1.6.2.1,1.6.2.2 pgdraw.h,1.4.2.2,1.4.2.3
- Next by Date:
[paragui-cvs] CVS: paragui/test gltest.cpp,NONE,1.1.2.1 Makefile.am,1.6.2.2,1.6.2.3
- Previous by thread:
[paragui-cvs] CVS: paragui/include pggldraw.h,NONE,1.1.2.1 Makefile.am,1.6.2.1,1.6.2.2 pgdraw.h,1.4.2.2,1.4.2.3
- Next by thread:
[paragui-cvs] CVS: paragui/test gltest.cpp,NONE,1.1.2.1 Makefile.am,1.6.2.2,1.6.2.3
- Index(es):