Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7b52e6b9
Kaydet (Commit)
7b52e6b9
authored
May 27, 2012
tarafından
Ruslan Kabatsayev
Kaydeden (comit)
Michael Meeks
May 31, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GTK theming: implement rendering window background
Change-Id: I34c6c38f383fce54aa0b2a61a5e88ee9a8cff4e7
üst
71056d59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
gtkgdi.hxx
vcl/inc/unx/gtk/gtkgdi.hxx
+5
-0
salnativewidgets-gtk.cxx
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+29
-1
No files found.
vcl/inc/unx/gtk/gtkgdi.hxx
Dosyayı görüntüle @
7b52e6b9
...
...
@@ -165,6 +165,11 @@ protected:
GdkPixmap
*
NWGetPixmapFromScreen
(
Rectangle
srcRect
);
sal_Bool
NWRenderPixmapToScreen
(
GdkPixmap
*
pPixmap
,
Rectangle
dstRect
);
sal_Bool
NWPaintGTKWindowBackground
(
GdkDrawable
*
gdkDrawable
,
ControlType
nType
,
ControlPart
nPart
,
const
Rectangle
&
rControlRectangle
,
const
clipList
&
rClipList
,
ControlState
nState
,
const
ImplControlValue
&
aValue
,
const
OUString
&
rCaption
);
sal_Bool
NWPaintGTKButtonReal
(
GtkWidget
*
button
,
GdkDrawable
*
gdkDrawable
,
ControlType
nType
,
ControlPart
nPart
,
const
Rectangle
&
rControlRectangle
,
const
clipList
&
rClipList
,
...
...
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
Dosyayı görüntüle @
7b52e6b9
...
...
@@ -614,7 +614,8 @@ sal_Bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPar
(
(
nPart
==
PART_TRACK_HORZ_AREA
)
||
(
nPart
==
PART_TRACK_VERT_AREA
)
)
)
)
||
(
nType
==
CTRL_WINDOW_BACKGROUND
)
)
return
(
sal_True
);
return
(
sal_False
);
...
...
@@ -898,6 +899,10 @@ sal_Bool GtkSalGraphics::drawNativeControl( ControlType nType,
{
returnVal
=
NWPaintGTKSlider
(
gdkDrawable
,
nType
,
nPart
,
aCtrlRect
,
aClip
,
nState
,
aValue
,
rCaption
);
}
else
if
(
nType
==
CTRL_WINDOW_BACKGROUND
)
{
returnVal
=
NWPaintGTKWindowBackground
(
gdkDrawable
,
nType
,
nPart
,
aCtrlRect
,
aClip
,
nState
,
aValue
,
rCaption
);
}
if
(
pixmap
)
{
...
...
@@ -1132,6 +1137,29 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
/************************************************************************
* Individual control drawing functions
************************************************************************/
sal_Bool
GtkSalGraphics
::
NWPaintGTKWindowBackground
(
GdkDrawable
*
gdkDrawable
,
ControlType
,
ControlPart
,
const
Rectangle
&
rControlRectangle
,
const
clipList
&
rClipList
,
ControlState
nState
,
const
ImplControlValue
&
,
const
OUString
&
)
{
int
w
,
h
;
gtk_window_get_size
(
GTK_WINDOW
(
m_pWindow
),
&
w
,
&
h
);
GdkRectangle
clipRect
;
for
(
clipList
::
const_iterator
it
=
rClipList
.
begin
();
it
!=
rClipList
.
end
();
++
it
)
{
clipRect
.
x
=
it
->
Left
();
clipRect
.
y
=
it
->
Top
();
clipRect
.
width
=
it
->
GetWidth
();
clipRect
.
height
=
it
->
GetHeight
();
gtk_paint_flat_box
(
m_pWindow
->
style
,
gdkDrawable
,
GTK_STATE_NORMAL
,
GTK_SHADOW_NONE
,
&
clipRect
,
m_pWindow
,
"base"
,
0
,
0
,
w
,
h
);
}
return
sal_True
;
}
sal_Bool
GtkSalGraphics
::
NWPaintGTKButtonReal
(
GtkWidget
*
button
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment