Exemple #1
0
static void
set_font_rotate(View* view, float rotation)
{
	ServerFont font;
	font.SetRotation(rotation);
	view->CurrentState()->SetFont(font, B_FONT_ROTATION);
}
Exemple #2
0
static void
set_font_rotate(DrawingContext* context, float rotation)
{
	ServerFont font;
	font.SetRotation(rotation);
	context->CurrentState()->SetFont(font, B_FONT_ROTATION);
}
Exemple #3
0
static void
set_font_rotation(void* _context, float rotation)
{
	DrawingContext* context = reinterpret_cast<DrawingContext *>(_context);
	ServerFont font;
	font.SetRotation(rotation);
	context->CurrentState()->SetFont(font, B_FONT_ROTATION);
}
Exemple #4
0
static void
set_font_rotation(void* _canvas, float rotation)
{
	Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas);
	ServerFont font;
	font.SetRotation(rotation);
	canvas->CurrentState()->SetFont(font, B_FONT_ROTATION);
}
Exemple #5
0
void
TabDecorator::_UpdateFont(DesktopSettings& settings)
{
	ServerFont font;
	if (fTopTab->look == B_FLOATING_WINDOW_LOOK
		|| fTopTab->look == kLeftTitledWindowLook) {
		settings.GetDefaultPlainFont(font);
		if (fTopTab->look == kLeftTitledWindowLook)
			font.SetRotation(90.0f);
	} else
		settings.GetDefaultBoldFont(font);

	font.SetFlags(B_FORCE_ANTIALIASING);
	font.SetSpacing(B_STRING_SPACING);
	fDrawState.SetFont(font);
}