jnullgraphics.cpp 10.1 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
/***************************************************************************
 *   Copyright (C) 2005 by Jeff Ferr                                       *
 *   root@sat                                                              *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program 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 General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include "Stdafx.h"
#include "jnullgraphics.h"
#include "jdebug.h"

namespace jgui {

NullGraphics::NullGraphics():
	Graphics()
{
	jcommon::Object::SetClassName("jgui::NullGraphics");

	JDEBUG(JINFO, "called\n");
}

NullGraphics::~NullGraphics()
{
	JDEBUG(JINFO, "called\n");
}

void * NullGraphics::GetNativeSurface()
{
	return NULL;
}

void NullGraphics::SetNativeSurface(void *surface)
{
}

void NullGraphics::SetWorkingScreenSize(int width, int height)
{
	JDEBUG(JINFO, "called\n");
}

jsize_t NullGraphics::GetWorkingScreenSize()
{
	JDEBUG(JINFO, "called\n");

	jsize_t t;

	t.width = 0;
	t.height = 0;

	return t;
}

jregion_t NullGraphics::ClipRect(int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");

	jregion_t t;

	t.x = 0;
	t.y = 0;
	t.width = 0;
	t.height = 0;

	return t;
}

void NullGraphics::SetClip(int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");
}

jregion_t NullGraphics::GetClip()
{
	JDEBUG(JINFO, "called\n");

	jregion_t t;

	t.x = 0;
	t.y = 0;
	t.width = 0;
	t.height = 0;

	return t;
}

void NullGraphics::ReleaseClip()
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::Clear(int red, int green, int blue, int alpha)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::Idle()
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::Flip()
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::Flip(int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");
}

Color & NullGraphics::GetColor()
{
	JDEBUG(JINFO, "called\n");

	return _color;
}

void NullGraphics::SetColor(const Color &color)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetColor(uint32_t color)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetColor(int red, int green, int blue, int alpha)
{
	JDEBUG(JINFO, "called\n");
} 

bool NullGraphics::HasFont()
{
	JDEBUG(JINFO, "called\n");

	return false;
}

void NullGraphics::SetFont(Font *font)
{
	JDEBUG(JINFO, "called\n");
}

Font * NullGraphics::GetFont()
{
	JDEBUG(JINFO, "called\n");

	return NULL;
}

void NullGraphics::SetAntiAliasEnabled(bool b)
{
	JDEBUG(JINFO, "called\n");
}

jdrawing_flags_t NullGraphics::GetDrawingFlags()
{
	JDEBUG(JINFO, "called\n");
	
	return JDF_NOFX;
}

jblitting_flags_t NullGraphics::GetBlittingFlags()
{
	JDEBUG(JINFO, "called\n");

	return JBF_NOFX;
}

jporterduff_flags_t NullGraphics::GetPorterDuffFlags()
{
	JDEBUG(JINFO, "called\n");

	return JPF_NONE;
}

void NullGraphics::SetPorterDuffFlags(jporterduff_flags_t t)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetDrawingFlags(jdrawing_flags_t t)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetBlittingFlags(jblitting_flags_t t)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetPixel(int xp, int yp, uint32_t pixel)
{
	JDEBUG(JINFO, "called\n");
}

unsigned int NullGraphics::GetPixel(int xp, int yp)
{
	JDEBUG(JINFO, "called\n");

	return 0;
}

void NullGraphics::SetLineJoin(jline_join_t t)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetLineStyle(jline_style_t t)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetLineWidth(int size)
{
	JDEBUG(JINFO, "called\n");
}

jline_join_t NullGraphics::GetLineJoin()
{
	JDEBUG(JINFO, "called\n");

	return (jline_join_t)0;
}

jline_style_t NullGraphics::GetLineStyle()
{
	JDEBUG(JINFO, "called\n");

	return (jline_style_t)0;
}

int NullGraphics::GetLineWidth()
{
	return 0;
}

void NullGraphics::DrawLine(int xp, int yp, int xf, int yf)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawBezierCurve(jpoint_t *p, int npoints, int interpolation)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillRectangle(int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawRectangle(int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillBevelRectangle(int xp, int yp, int wp, int hp, int dx, int dy)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawBevelRectangle(int xp, int yp, int wp, int hp, int dx, int dy)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillRoundRectangle(int xp, int yp, int wp, int hp, int dx, int dy)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawRoundRectangle(int xp, int yp, int wp, int hp, int dx, int dy)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillCircle(int xp, int yp, int raio)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawCircle(int xp, int yp, int raio)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillEllipse(int xcp, int ycp, int rxp, int ryp)
{
	JDEBUG(JINFO, "called\n");
}
		
void NullGraphics::DrawEllipse(int xcp, int ycp, int rxp, int ryp)
{
	JDEBUG(JINFO, "called\n");
}
		
void NullGraphics::FillChord(int xcp, int ycp, int rxp, int ryp, double arc0, double arc1)
{
	JDEBUG(JINFO, "called\n");
}
		
void NullGraphics::DrawChord(int xcp, int ycp, int rxp, int ryp, double arc0, double arc1)
{
	JDEBUG(JINFO, "called\n");
}
		
void NullGraphics::FillArc(int xc, int yc, int rx, int ry, double arc0, double arc1)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawArc(int xc, int yc, int rx, int ry, double arc0, double arc1)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillPie(int xcp, int ycp, int rxp, int ryp, double arc0, double arc1)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawPie(int xcp, int ycp, int rxp, int ryp, double arc0, double arc1)
{
	JDEBUG(JINFO, "called\n");
}
		
void NullGraphics::FillTriangle(int x1p, int y1p, int x2p, int y2p, int x3p, int y3p)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawTriangle(int x1p, int y1p, int x2p, int y2p, int x3p, int y3p)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillPolygon(int xp, int yp, jpoint_t *p, int npoints)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawPolygon(int xp, int yp, jpoint_t *p, int npoints, bool close)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillRadialGradient(int xp, int yp, int wp, int hp, Color &scolor, Color &dcolor)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillHorizontalGradient(int xp, int yp, int wp, int hp, Color &scolor, Color &dcolor)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::FillVerticalGradient(int xp, int yp, int wp, int hp, Color &scolor, Color &dcolor)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::GetStringBreak(std::vector<std::string> *lines, std::string text, int wp, int hp, jhorizontal_align_t halign)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawString(std::string s, int xp, int yp)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawString(std::string full_text, int xp, int yp, int wp, int hp, jhorizontal_align_t halign, jvertical_align_t valign, bool clipped)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::DrawGlyph(int symbol, int xp, int yp)
{
	JDEBUG(JINFO, "called\n");
}

bool NullGraphics::DrawImage(std::string img, int xp, int yp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

bool NullGraphics::DrawImage(std::string img, int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

bool NullGraphics::DrawImage(std::string img, int sxp, int syp, int swp, int shp, int xp, int yp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

bool NullGraphics::DrawImage(std::string img, int sxp, int syp, int swp, int shp, int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

bool NullGraphics::DrawImage(Image *img, int xp, int yp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

bool NullGraphics::DrawImage(Image *img, int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

bool NullGraphics::DrawImage(Image *img, int sxp, int syp, int swp, int shp, int xp, int yp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

bool NullGraphics::DrawImage(Image *img, int sxp, int syp, int swp, int shp, int xp, int yp, int wp, int hp)
{
	JDEBUG(JINFO, "called\n");

	return false;
}

void NullGraphics::Rotate(double radians)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::Translate(int x, int y)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::TranslateImage(int x, int y)
{
	JDEBUG(JINFO, "called\n");
}

double NullGraphics::Rotate()
{
	JDEBUG(JINFO, "called\n");

	return 0.0;
}

jpoint_t NullGraphics::Translate()
{
	JDEBUG(JINFO, "called\n");

	jpoint_t t;

	t.x = 0;
	t.y = 0;

	return t;
}

jpoint_t NullGraphics::TranslateImage()
{
	JDEBUG(JINFO, "called\n");

	jpoint_t t;

	t.x = 0;
	t.y = 0;

	return t;
}

uint32_t NullGraphics::GetRGB(int xp, int yp, uint32_t pixel)
{
	JDEBUG(JINFO, "called\n");

	return pixel;
}

void NullGraphics::GetRGB(uint32_t **rgb, int xp, int yp, int wp, int hp, int scansize)
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetRGB(uint32_t rgb, int xp, int yp) 
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::SetRGB(uint32_t *rgb, int xp, int yp, int wp, int hp, int scanline) 
{
	JDEBUG(JINFO, "called\n");
}

void NullGraphics::Reset()
{
	JDEBUG(JINFO, "called\n");
}

}